mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Panels shared edges: two 1px borders meeting, which reads as one tall
surface with a rule across it rather than a seam between two.
Done as `margin-bottom` on the panel first, which is the anti-pattern, and
it failed in both of the ways that rule is known to fail before the reading
was done. It compounded with the gap of every Stack that already held
panels -- four of them, spacing those lists at 35.2px against the app's
17.6px -- and the `:last-child` reset meant to keep trailing space off the
bottom of a container silently did nothing, because Media wrapping makes a
panel the only child of its own wrapper. On Status that separated four
pairs out of five and left the first touching.
So the space belongs to whatever stacks the blocks. `.wrolpi-stack` is on
PageContainer, which every page uses, and on the three wrappers that stack
blocks somewhere the page's own stack cannot reach: Settings' panel wrapper,
the block below the video player, and the Zim and Map route wrappers, which
hold their tab bar outside PageContainer.
A gap rather than `> * + * { margin-top }`, which was tried and is quietly
broken here: Media injects `.fresnel-container { margin: 0; padding: 0 }` at
runtime, same specificity, later source order, so every wrapped block threw
the margin away. A child cannot zero its parent's gap. It also means
Media's hidden half contributes nothing, where the owl selector spaced
around something invisible.
With the page owning the spacing, the blocks that owned some of it had to
give it up, or their margin was added to the gap: the tab bar (33px against
17.6 everywhere else), the shared search control bar and paginator on
Videos/Archives/Docs/Files, the card grid, the file browser's filter row and
the inventory search. Two margins deliberately stay -- the file browser's
4em, which reserves room for the sticky buttons (62645831), and heading
margins, which bind a heading to the content below it.
Tests plant each of the three failures: the wrapped block, a child that
zeroes its own margin, and a hidden Media half. Verified in the browser on
sixteen routes and in all four themes -- every stacked pair 17.6px, the
map's 85vh box and the video player unchanged, no horizontal overflow.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
731 lines
21 KiB
CSS
731 lines
21 KiB
CSS
:root {
|
|
/* Shared with the toast offset below, so the two cannot drift apart. */
|
|
--navbar-height: 3.4em;
|
|
}
|
|
|
|
/* Nav bar: a hand-rolled flexbox bar (was a Semantic Menu). The user-chosen background
|
|
and the foreground measured against it are set inline (see themes/navColors); this
|
|
stylesheet only supplies structure and hover affordances. */
|
|
.wrolpi-navbar {
|
|
display: flex;
|
|
align-items: stretch;
|
|
/*
|
|
* Wraps rather than clipping. Semantic's menu wrapped, and with this many items the
|
|
* bar overflows a 1000px viewport -- `nowrap` cut "Admin" off the right edge, which
|
|
* is the one link a user needs to reach the settings that fix a broken WROLPi.
|
|
*/
|
|
flex-wrap: wrap;
|
|
min-height: var(--navbar-height);
|
|
padding: 0 0.25em;
|
|
}
|
|
|
|
/*
|
|
* Toasts start below the navigation bar instead of on top of it.
|
|
*
|
|
* They are fixed at `top: var(--mantine-spacing-md)` -- 16px -- while the bar occupies the
|
|
* first 54px of the page, so every toast landed over the bar's right-hand corner: the search
|
|
* glyph, the hamburger, Help and Admin. For as long as the toast was up those controls could
|
|
* not be clicked, and an error toast is exactly when a user reaches for Admin.
|
|
*
|
|
* It went unnoticed until the search glyph was given a proper hit area: at 18px it sat in the
|
|
* gap under the toast, and growing it to the height of the bar moved it into the overlap.
|
|
* The toast was always covering that corner; there was just nothing there to hit.
|
|
*
|
|
* `:where()` gives Mantine's own rule zero specificity, so one class is enough to win, but
|
|
* the attribute is matched too -- only the top-anchored positions need moving, and a future
|
|
* switch to `bottom-right` should not silently inherit a top offset.
|
|
*/
|
|
html .mantine-Notifications-root[data-position^='top'] {
|
|
top: calc(var(--navbar-height) + var(--mantine-spacing-md, 1rem));
|
|
}
|
|
|
|
.wrolpi-navbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
gap: 0.2em;
|
|
}
|
|
|
|
.wrolpi-navbar-link,
|
|
.wrolpi-navbar-link-button {
|
|
display: flex;
|
|
align-items: center;
|
|
/* Tightened from 1.1em: the bar has eleven links plus nine indicators. */
|
|
padding: 0 0.8em;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
background: none;
|
|
border: none;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wrolpi-navbar-link:hover,
|
|
.wrolpi-navbar-link-button:hover {
|
|
/* A translucent black works on every navbar color, light or dark. */
|
|
background: rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
/*
|
|
* Everything in the bar takes the bar's foreground.
|
|
*
|
|
* `color: inherit` on the links alone was not enough, because two of the things in the
|
|
* corner do not inherit at all and both came out blue on every bar in every theme:
|
|
*
|
|
* - An anchor takes `a {color: var(--blue)}` from tokens.css, which outranks an inherited
|
|
* value however the bar sets it. The search glyph is an anchor, and so is every status
|
|
* icon that links to /admin -- those only looked right because they carry an inline
|
|
* color of their own, which still wins here and is meant to.
|
|
* - A Mantine ActionIcon paints `--ai-color`, its own themed blue. The hamburger and the
|
|
* theme toggle are ActionIcons. The variable is no use as a hook: Mantine writes it
|
|
* INLINE on the element, so a stylesheet declaring it loses every time (the same trap
|
|
* as `--group-justify` on Pagination). The painted property has to be set instead, and
|
|
* `html` lifts this over Mantine's own single-class rule.
|
|
*
|
|
* Measuring the foreground against the bar is worth nothing if the icons opt out of it.
|
|
*/
|
|
.wrolpi-navbar a,
|
|
html .wrolpi-navbar .mantine-ActionIcon-root {
|
|
color: inherit;
|
|
}
|
|
|
|
/* The bar's own hover, rather than a blue tint from Mantine's palette. */
|
|
html .wrolpi-navbar .mantine-ActionIcon-root:hover {
|
|
background: rgba(0, 0, 0, 0.12);
|
|
color: inherit;
|
|
}
|
|
|
|
/*
|
|
* One status indicator's slot. Laid out rather than nudged: see NavIconWrapper in Nav.js
|
|
* for the 0.8em top margin this replaces and why it looked correct on half the indicators.
|
|
*/
|
|
.wrolpi-navbar-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 1.5em;
|
|
/* Full bar height, so the anchor inside has somewhere to stretch to. */
|
|
align-self: stretch;
|
|
}
|
|
|
|
/*
|
|
* An icon-only trigger in the corner gets a link's hit area, not its glyph's.
|
|
*
|
|
* The share glyph already computed `cursor: pointer` -- it is an `<a href>` -- but the
|
|
* target was the 24px box the icon occupies, so the pointer appeared only if you found it
|
|
* exactly, and there was no hover highlight to aim at. Stretched and padded, it behaves
|
|
* like Help and Admin beside it.
|
|
*
|
|
* `align-self` rather than `align-items: stretch` on the wrapper: the IconButtons in the
|
|
* corner have an explicit height, and a stretch container places an item it cannot stretch
|
|
* at the start -- which would push the hotspot and theme glyphs back off centre.
|
|
*/
|
|
.wrolpi-navbar-icon > a {
|
|
align-self: stretch;
|
|
padding: 0 0.5em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wrolpi-navbar-icon > a:hover {
|
|
background: rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
/*
|
|
* An anchor in the corner hugs its glyph instead of a text line box.
|
|
*
|
|
* A line box reserves descender space for text that is not there, which leaves an icon
|
|
* sitting about 3px above the centre of the box being centred -- the share and search
|
|
* glyphs, but not the hotspot or theme picker, which are square ActionIcons that centre
|
|
* their own glyph. That difference is what made a single top margin look right on some
|
|
* indicators and wrong on others.
|
|
*/
|
|
.wrolpi-navbar-right a {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/*
|
|
* A link in the corner fills the bar's height, as one outside it does.
|
|
*
|
|
* Help and Admin highlighted only a box around their text while Videos and Statistics
|
|
* highlighted the full height. Same class and same rules; the difference is the parent.
|
|
* The bar stretches its children, but the corner is a nested flex container that centres
|
|
* its own, so a link inside it was sized to its content. The hover background is painted
|
|
* on the link box, so this is the hover affordance itself and not just its outline.
|
|
*/
|
|
.wrolpi-navbar-right .wrolpi-navbar-link,
|
|
.wrolpi-navbar-right .wrolpi-navbar-link-button {
|
|
align-self: stretch;
|
|
}
|
|
|
|
.channel-edit {
|
|
border-radius: 0.1875rem;
|
|
padding: 0.75em;
|
|
}
|
|
|
|
.channel-edit:hover {
|
|
background-color: #7abaff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
::-ms-clear {
|
|
display: none;
|
|
}
|
|
|
|
.form-control-clear {
|
|
z-index: 10;
|
|
pointer-events: auto;
|
|
cursor: pointer;
|
|
}
|
|
|
|
pre.wrap-text {
|
|
white-space: pre-wrap; /* Since CSS 2.1 */
|
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
|
}
|
|
|
|
.duration-overlay {
|
|
position: absolute;
|
|
top: 0.25rem;
|
|
right: 0.25rem;
|
|
color: black;
|
|
background: #ffffff;
|
|
padding: 0px 0.25rem;
|
|
border-radius: 0.1875rem;
|
|
}
|
|
|
|
.no-link-underscore {
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
/*
|
|
* A card's title and its author/channel/domain line are links, but they are the card's
|
|
* text -- they take the body color rather than the link color, so a grid of cards reads
|
|
* as titles and not as a wall of blue. This was a literal `black` until the themes
|
|
* arrived, which left every title at about 1.1:1 on the dark, night and amber panels.
|
|
*/
|
|
.card-link {
|
|
color: var(--text);
|
|
}
|
|
|
|
.center-me {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
div.inverted {
|
|
background-color: #1B1C1D;
|
|
}
|
|
|
|
/*
|
|
* The hand-rolled `.toggle` / `.slider` switch is gone.
|
|
*
|
|
* Nothing referenced either class: `Toggle` is a Mantine Switch, and the only remaining
|
|
* matches for the words were the `classList.toggle` DOM method and the controller's own
|
|
* templates, which do not load this stylesheet.
|
|
*
|
|
* It is deleted rather than finished because it was already half-converted and broken: the
|
|
* track and knob became rem while the checked-state travel stayed `translateX(26px)`, so on a
|
|
* 54px track the thumb would have stopped ~4px short. Dead CSS that is also wrong is a trap
|
|
* for whoever revives it, and it also hardcoded #6435C9 and white, which no theme can reach.
|
|
*/
|
|
|
|
.inverted-progress-text.ui.indicating.progress .bar > .progress,
|
|
.inverted-progress-text.ui.progress > .label {
|
|
color: white !important;
|
|
}
|
|
|
|
/* Light bar colors (yellow, olive) need dark text on the bar — must override inverted-progress-text. */
|
|
.light-bar-progress-text.ui.indicating.progress .bar > .progress,
|
|
.light-bar-progress-text.ui.progress .bar > .progress {
|
|
color: rgba(0, 0, 0, 0.85) !important;
|
|
}
|
|
|
|
/* File preview Modal.Actions toolbar.
|
|
Single layout that works at every viewport — buttons keep their order at any width.
|
|
On narrow screens, the tags selector wraps to its own line while the button groups stay together. */
|
|
.preview-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
.preview-toolbar-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25em;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.preview-toolbar-tags {
|
|
/* rem so the basis grows with the tags it holds. */
|
|
flex: 1 1 12.5rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Caps preview content to fit inside the file-preview Modal.
|
|
300px reserves room for pathContent <pre>, Modal.Header, Modal.Actions row,
|
|
inner content (e.g. STL dimensions banner), and modal padding.
|
|
Use 100dvh so mobile browser chrome (URL bar) is accounted for. */
|
|
.preview-fit {
|
|
width: 100%;
|
|
height: calc(100dvh - 18.75rem);
|
|
max-height: calc(100dvh - 18.75rem);
|
|
min-height: 15rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Fresnel (Media) wraps iframes in a div which would otherwise shrink to the
|
|
default iframe size; make it fill the preview so the iframe's 100% works. */
|
|
.preview-fit .fresnel-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
td.file-path {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/*
|
|
* The row is an icon followed by a filename, as inline siblings. An inline SVG
|
|
* sits on the text baseline by default, so a 24px glyph next to 13px text hangs
|
|
* well above it and the name looks like it is resting on the icon's floor.
|
|
* `middle` centres the glyph against the text instead.
|
|
*
|
|
* The margin is the gap that was never there: the folder icon touched the first
|
|
* letter of its own name, and two icons (a folder and its ignored marker) touched
|
|
* each other.
|
|
*/
|
|
td.file-path > svg {
|
|
vertical-align: middle;
|
|
margin-right: 0.35em;
|
|
}
|
|
|
|
/* Necessary until react-semantic-toasts is upgraded to Node 18 */
|
|
.ui-alerts {
|
|
position: fixed;
|
|
z-index: 2060;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.ui-alerts.top-right {
|
|
top: 1.25rem;
|
|
right: 1.25rem;
|
|
}
|
|
|
|
textarea.otp {
|
|
width: 100%;
|
|
color: #333;
|
|
}
|
|
|
|
.card-icon {
|
|
min-height: 10.1875rem;
|
|
text-align: center;
|
|
padding-top: 3.3125rem;
|
|
}
|
|
|
|
.card-icon.inverted {
|
|
background-color: #222222;
|
|
}
|
|
|
|
.modal .inverted {
|
|
border-color: #888888;
|
|
}
|
|
|
|
.modal .header.inverted {
|
|
color: #DDDDDD !important;
|
|
background-color: #171616 !important;
|
|
}
|
|
|
|
.modal .content.inverted {
|
|
color: #DDDDDD !important;
|
|
border-color: #888888 !important;
|
|
background-color: #171616 !important;
|
|
}
|
|
|
|
.modal .actions.inverted {
|
|
color: #DDDDDD !important;
|
|
border-color: #888888 !important;
|
|
background-color: #171616 !important;
|
|
}
|
|
|
|
.modal.inverted i.close {
|
|
color: #DDDDDD !important;
|
|
}
|
|
|
|
/* The accordion has no background of its own; it inherits whatever container it sits in (Modal
|
|
content #171616, Segment #1B1C1D, the page body, etc.). This matches how the light theme already
|
|
renders accordions (transparent), and avoids a darker band when the parent isn't #171616.
|
|
Direct children only, so nested components that use the `content`/`title` class names (e.g. a
|
|
Message's Message.Content) are not affected. */
|
|
.ui.inverted.accordion,
|
|
.ui.inverted.accordion > .title,
|
|
.ui.inverted.accordion > .content {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
/* Semantic UI paints a definition table's empty corner cell white (background on the inverted
|
|
variant, white box-shadows on the celled/plain variants) to fake a "cut-out" corner on a white
|
|
page. Our dark theme has a dark page, so the corner must be transparent with no shadow. */
|
|
.ui.inverted.definition.table thead:not(.full-width) th:first-child,
|
|
.ui.inverted.definition.table tfoot:not(.full-width) th:first-child,
|
|
.ui.inverted.celled.definition.table thead:not(.full-width) th:first-child,
|
|
.ui.inverted.celled.definition.table tfoot:not(.full-width) th:first-child {
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.segment.inverted {
|
|
border: 1px solid #ffffff22 !important;
|
|
}
|
|
|
|
.inverted label {
|
|
color: #DDDDDD !important;
|
|
}
|
|
|
|
.table-ellipsis td.column-ellipsis {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 0; /* Ensures the content doesn't exceed the cell's width */
|
|
min-width: 25em; /* About iPhone SE width */
|
|
}
|
|
|
|
.card-title-ellipsis {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.search-container {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.search-input {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.search-clear {
|
|
margin: 0.625rem;
|
|
}
|
|
|
|
.icon.divider {
|
|
color: rgb(0, 0, 0, 0.4) !important;
|
|
}
|
|
|
|
.divider.inverted {
|
|
color: rgb(255, 255, 255, 0.6) !important;
|
|
}
|
|
|
|
.video-player {
|
|
display: block;
|
|
margin: 0 auto; /* Center the video horizontally */
|
|
}
|
|
|
|
.audio-poster-container {
|
|
position: relative;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
.audio-poster-overlay {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
|
|
pointer-events: none;
|
|
}
|
|
|
|
table.ratio-table td.equal-width {
|
|
width: 48%;
|
|
}
|
|
|
|
table.ratio-table td.min-width {
|
|
width: auto;
|
|
}
|
|
|
|
/* CollectionEditForm styles */
|
|
.required-indicator {
|
|
color: red;
|
|
}
|
|
|
|
.action-button-spacing {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
/* Form loading skeleton */
|
|
.form-skeleton-field {
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.form-skeleton-label {
|
|
height: 0.875rem;
|
|
width: 5rem;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
border-radius: 0.1875rem;
|
|
}
|
|
|
|
.form-skeleton-input {
|
|
height: 2.375rem;
|
|
width: 100%;
|
|
background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.form-skeleton-textarea {
|
|
height: 5rem;
|
|
width: 100%;
|
|
background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.form-skeleton-button {
|
|
height: 2.625rem;
|
|
width: 6.25rem;
|
|
background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
@keyframes skeleton-shimmer {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
/* Dark mode skeleton */
|
|
.inverted .form-skeleton-label,
|
|
.inverted .form-skeleton-input,
|
|
.inverted .form-skeleton-textarea,
|
|
.inverted .form-skeleton-button {
|
|
background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
}
|
|
|
|
/*
|
|
* Sticky footer for the file browser.
|
|
*
|
|
* These were two hardcoded Semantic greys with `.inverted` selecting the dark one, but
|
|
* nothing has set `.inverted` since ThemeProvider stopped supplying it -- so the footer stayed
|
|
* at near-white `#f9fafb` in dark, night and amber. In night mode a white bar pinned to the
|
|
* bottom of the screen costs the user the dark adaptation the whole theme exists to protect.
|
|
* Tokens have no such failure mode: there is one rule and each theme fills it in.
|
|
*/
|
|
.sticky-footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0.5em 1em;
|
|
background-color: var(--panel);
|
|
border-top: 1px solid var(--border);
|
|
z-index: 100;
|
|
/*
|
|
* A row with gaps, like every other group of buttons in the app.
|
|
*
|
|
* This was a plain block, so the buttons -- inline-block elements with no whitespace
|
|
* between them, because JSX drops whitespace-only lines -- sat flush against each other
|
|
* in one unbroken slab. Everywhere else buttons are laid out with Mantine's `Group`,
|
|
* which is a flex row with a gap; the file browser's footer is hand-rolled and never got
|
|
* one. It wraps because the bar carries eight controls and a phone cannot hold them.
|
|
*/
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
/* Drag selection visual feedback for FileBrowser */
|
|
tr.drag-selecting td {
|
|
background-color: rgba(33, 133, 208, 0.15) !important;
|
|
}
|
|
|
|
.inverted tr.drag-selecting td {
|
|
background-color: rgba(33, 133, 208, 0.25) !important;
|
|
}
|
|
|
|
/* Drag deselection visual feedback (red tint) */
|
|
tr.drag-deselecting td {
|
|
background-color: rgba(219, 40, 40, 0.15) !important;
|
|
}
|
|
|
|
.inverted tr.drag-deselecting td {
|
|
background-color: rgba(219, 40, 40, 0.25) !important;
|
|
}
|
|
|
|
/* Prevent text selection during drag */
|
|
.file-browser-dragging {
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
}
|
|
|
|
/* Filter input and collapse-all button: right-aligned on desktop, full width on mobile (below). */
|
|
.file-browser-filter-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
/* No `margin-bottom`: this is a top-level block of the Files page, and the page's stack
|
|
spaces it (see `.wrolpi-stack`). Its own 0.5em was added to that. */
|
|
}
|
|
|
|
/* Double the default input width on desktop. */
|
|
.ui.input.file-browser-filter {
|
|
width: 34em;
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media only screen and (max-width: 700px) {
|
|
.hide-on-mobile {
|
|
display: none !important;
|
|
}
|
|
|
|
.file-browser-filter-container {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* Fill the row, but stay on one line with the collapse-all button. */
|
|
.ui.input.file-browser-filter {
|
|
flex: 1 1 auto;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
/* Ensure step icons are always visible, even when disabled */
|
|
.ui.steps .step.disabled > .icon,
|
|
.ui.steps .step.disabled > i.icon,
|
|
.ui.steps .disabled.step > .icon,
|
|
.ui.steps .disabled.step > i.icon {
|
|
opacity: 0.45 !important;
|
|
display: inline-block !important;
|
|
visibility: visible !important;
|
|
width: auto !important;
|
|
height: auto !important;
|
|
color: rgba(0, 0, 0, 0.87) !important;
|
|
}
|
|
|
|
/* Ensure the icon glyph (::before) is visible for disabled steps */
|
|
.ui.steps .step.disabled > .icon:before,
|
|
.ui.steps .step.disabled > i.icon:before,
|
|
.ui.steps .disabled.step > .icon:before,
|
|
.ui.steps .disabled.step > i.icon:before {
|
|
opacity: 0.45 !important;
|
|
visibility: visible !important;
|
|
color: rgba(0, 0, 0, 0.87) !important;
|
|
}
|
|
|
|
|
|
/* Inventory "PDF" export: the printable table is hidden on screen and becomes the only
|
|
visible content when printing, so a user can use the browser dialog to Save as PDF. */
|
|
.inventory-print {
|
|
display: none;
|
|
}
|
|
|
|
@media print {
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.inventory-print,
|
|
.inventory-print * {
|
|
visibility: visible;
|
|
}
|
|
|
|
.inventory-print {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
color: #000;
|
|
}
|
|
|
|
.inventory-print h1 {
|
|
font-size: 18pt;
|
|
margin: 0 0 0.25em;
|
|
}
|
|
|
|
.inventory-print h2 {
|
|
font-size: 13pt;
|
|
margin: 1.25em 0 0.5em;
|
|
}
|
|
|
|
.inventory-print-meta {
|
|
font-size: 9pt;
|
|
color: #444;
|
|
margin: 0 0 0.75em;
|
|
}
|
|
|
|
.inventory-print table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
.inventory-print th,
|
|
.inventory-print td {
|
|
border: 1px solid #999;
|
|
padding: 0.25rem 0.375rem;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
/* Repeat the header row at the top of each printed page. */
|
|
.inventory-print thead {
|
|
display: table-header-group;
|
|
}
|
|
|
|
.inventory-print tr {
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
/* The supply-plan shopping list reuses the .inventory-print element styling (h1/table/etc.) but is a separate
|
|
printable block. By default (e.g. the Export tab's whole-inventory PDF) it is hidden; it becomes the ONLY
|
|
printed block when the supply plan toggles `body.printing-shopping` just before window.print(). */
|
|
.shopping-print,
|
|
.shopping-print * {
|
|
visibility: hidden;
|
|
}
|
|
.shopping-print {
|
|
display: none;
|
|
}
|
|
body.printing-shopping .inventory-print:not(.shopping-print),
|
|
body.printing-shopping .inventory-print:not(.shopping-print) * {
|
|
visibility: hidden;
|
|
}
|
|
body.printing-shopping .inventory-print:not(.shopping-print) {
|
|
display: none;
|
|
}
|
|
body.printing-shopping .shopping-print,
|
|
body.printing-shopping .shopping-print * {
|
|
visibility: visible;
|
|
}
|
|
body.printing-shopping .shopping-print {
|
|
display: block;
|
|
}
|
|
}
|