mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-17 22:13:17 +08:00
59 lines
2.5 KiB
CSS
59 lines
2.5 KiB
CSS
/* ==========================================================================
|
|
18. Third-party plugin adapters
|
|
One section per plugin package, scoped by body[data-page]
|
|
(admin-<category>-<page>…, set by the theme header) so nothing leaks into
|
|
other pages. Only for markup that the generic LuCI styles cannot reach,
|
|
typically inline styles; prefer fixing the generic rule when one exists.
|
|
Plugins that theme themselves for dark mode should key on
|
|
[data-darkmode="true"] on <html>, which Carbon sets like Argon does.
|
|
========================================================================== */
|
|
|
|
/* --- luci-app-diskman: partition bar under each disk ---------------------
|
|
A bare <tr> with one colspan cell of inline-styled, inline-block segments
|
|
(fixed % widths, white-space: nowrap, padding: 0). As a flex row the
|
|
widths fit the card, and long labels ellipsize. */
|
|
[data-page^="admin-system-diskman"] .cbi-section-table td[colspan]:has(> div[title]) {
|
|
display: flex !important;
|
|
width: auto !important;
|
|
max-width: 100%;
|
|
padding: 2px 14px 12px !important;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
}
|
|
[data-page^="admin-system-diskman"] .cbi-section-table td[colspan] > div[title] {
|
|
box-sizing: border-box;
|
|
flex: 0 1 auto;
|
|
height: 22px;
|
|
min-width: 6px;
|
|
padding: 0 6px;
|
|
overflow: hidden;
|
|
font-size: 11.5px;
|
|
line-height: 22px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
/* the segments keep their light inline colours in dark mode too */
|
|
color: #1a1f36 !important;
|
|
border-inline-end: 1px solid rgba(255, 255, 255, .6);
|
|
}
|
|
[data-page^="admin-system-diskman"] .cbi-section-table td[colspan] > div[title]:first-child { border-radius: 7px 0 0 7px; }
|
|
[data-page^="admin-system-diskman"] .cbi-section-table td[colspan] > div[title]:last-child { border-radius: 0 7px 7px 0; border-inline-end: 0; }
|
|
/* phones: tables become cards (16-responsive.css); the bare <tr> must follow */
|
|
@media (max-width: 760px) {
|
|
[data-page^="admin-system-diskman"] .cbi-section-table tr:has(> td[colspan] > div[title]) {
|
|
display: block;
|
|
white-space: normal !important;
|
|
}
|
|
[data-page^="admin-system-diskman"] .cbi-section-table td[colspan]:has(> div[title]) { padding: 4px 10px 8px !important; }
|
|
}
|
|
|
|
/* --- luci-app-ttyd: the terminal fills the window ------------------------
|
|
The view sets an inline min-height of 500px and nothing else. */
|
|
[data-page^="admin-services-ttyd"] #view iframe {
|
|
display: block;
|
|
height: calc(100vh - 210px);
|
|
height: calc(100dvh - 210px);
|
|
min-height: 420px;
|
|
border-radius: var(--cb-radius-md) !important;
|
|
background: #000;
|
|
}
|