Files
wekan/client/components/main/featureHelp.css
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

131 lines
3.9 KiB
CSS

/* The ? of a feature place and its popup (featureHelp.jade,
docs/Features/Help-Button.md).
Every rule here uses the LOGICAL side - inline-end, inline-start - so the ?
that is at the right of a heading in English is at its left in Arabic or
Hebrew, from the same rule and with nothing written twice. */
.feature-help-btn {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
/* WCAG 2.2 target size: at least 24 by 24 CSS pixels. */
min-width: 28px;
min-height: 28px;
margin: 0;
padding: 0 4px;
border: 0;
border-radius: 50%;
background: transparent;
color: inherit;
font: inherit;
font-size: calc(18px * var(--wekan-ui-font-scale, 1));
line-height: 1;
cursor: pointer;
opacity: 0.75;
box-shadow: none;
}
.feature-help-btn:hover {
opacity: 1;
background: rgba(127, 127, 127, 0.18);
}
/* Keyboard focus is always visible. */
.feature-help-btn:focus-visible {
opacity: 1;
outline: 2px solid currentColor;
outline-offset: 2px;
}
.feature-help-btn i.fa {
margin: 0;
font-size: inherit;
}
/* A heading with a ? at its end: a flex row, the ? pushed to the inline end. */
.feature-help-title:has(> .feature-help-btn),
.admin-pane-title:has(> .feature-help-btn),
.sidebar-view-title:has(> .feature-help-btn) {
display: flex;
align-items: center;
gap: 8px;
}
.feature-help-title > .feature-help-btn,
.admin-pane-title > .feature-help-btn,
.sidebar-view-title > .feature-help-btn {
margin-inline-start: auto;
}
/* A card section's heading: the ? takes the far end, and the section's
hamburger, which had it, follows the ? instead of splitting the space. */
.card-details h3.card-details-item-title > .feature-help-btn {
margin-inline-start: auto;
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
}
.card-details h3.card-details-item-title > .feature-help-btn ~ .card-details-section-menu {
margin-inline-start: 0;
}
/* The Board View menu in the header bar: beside the view's button. */
.board-header-btn + .feature-help-btn {
margin-inline-start: 2px;
}
/* A popup's title bar places its maximize and close buttons absolutely at its
inline end (popup.css). The ? goes just before them - never over them -
and the title gives up the room it takes. */
.pop-over .header .feature-help-btn {
position: absolute;
top: calc(6px * var(--wekan-ui-font-scale, 1));
inset-inline-end: 44px;
}
.pop-over .header:has(.popup-maximize-btn) .feature-help-btn {
inset-inline-end: 76px;
}
.pop-over .header:has(.feature-help-btn) .header-title {
margin-inline-end: 80px;
}
.pop-over .header:has(.feature-help-btn):has(.popup-maximize-btn) .header-title {
margin-inline-end: 112px;
}
@media screen and (max-width: 800px) {
/* The phone's popup header is the theme's colour with a larger close button. */
.pop-over .header .feature-help-btn {
top: calc(10px * var(--wekan-ui-font-scale, 1));
inset-inline-end: 54px;
color: #fff;
}
.pop-over .header:has(.popup-maximize-btn) .feature-help-btn {
inset-inline-end: 86px;
}
.pop-over .header:has(.feature-help-btn) .header-title {
margin-inline-end: 90px;
}
.pop-over .header:has(.feature-help-btn):has(.popup-maximize-btn) .header-title {
margin-inline-end: 122px;
}
}
/* The popup itself is 720px wide on a desktop - popup.css, with the other
wide popups, mirrored in client/lib/popupOffset.js WIDE_POPUP_WIDTHS; below
801px every popup is a full-screen sheet. */
.feature-help-content {
padding-block-end: 8px;
line-height: 1.5;
text-align: start;
overflow-wrap: anywhere;
}
.feature-help-content .feature-help-heading {
margin: 18px 0 6px;
font-size: calc(22px * var(--wekan-ui-font-scale, 1));
font-weight: bold;
color: inherit;
}
.feature-help-content .feature-help-heading:first-child {
margin-top: 0;
}
.feature-help-content .feature-help-text {
margin: 0;
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
color: inherit;
}