/*! * Carbon — an Apple-style LuCI theme for everyday users * Licensed under the Apache License 2.0. * * Widget behaviour rules (dropdowns, dynlists, tabs, modals, tooltips …) * mirror luci-theme-bootstrap so all LuCI views keep working; only the * visual layer is redesigned. */ /* Generated by scripts/build-css.py from styles/*.css. Do not edit. */ /* ========================================================================== 1. Design tokens ========================================================================== */ :root { /* Carbon palette — status & data colours */ --cb-blue: #3b82f6; --cb-green: #16a34a; --cb-orange: #e8870b; --cb-red: #e5484d; --cb-purple: #8b5cf6; --cb-teal: #0d9f9b; --cb-indigo: #4f5bea; --cb-pink: #e2367f; --cb-yellow: #eab308; --cb-gray: #8b91a1; --cb-green-t: rgba(22, 163, 74, .12); --cb-orange-t: rgba(232, 135, 11, .13); --cb-red-t: rgba(229, 72, 77, .11); /* Carbon indigo — the one accent used for actions, focus and selection */ --cb-accent: #4f5bea; --cb-accent-strong: #3d49d6; --cb-accent-t: rgba(79, 91, 234, .11); --cb-focus: rgba(79, 91, 234, .26); --cb-on-accent: #ffffff; /* surfaces */ --cb-bg: #f3f4f8; --cb-card: rgba(255, 255, 255, .84); --cb-card-solid: #ffffff; --cb-card-2: rgba(15, 23, 42, .025); --cb-card-edge: rgba(15, 23, 42, .06); --cb-field: #ffffff; --cb-fill: rgba(15, 23, 42, .06); --cb-fill-2: rgba(15, 23, 42, .035); --cb-hover: rgba(79, 91, 234, .05); --cb-text: #1a1f36; --cb-text-2: rgba(26, 31, 54, .62); --cb-text-3: rgba(26, 31, 54, .36); --cb-sep: rgba(15, 23, 42, .07); --cb-border: rgba(15, 23, 42, .08); --cb-border-strong: rgba(15, 23, 42, .15); --cb-toolbar: rgba(243, 244, 248, .74); --cb-popover: rgba(255, 255, 255, .88); --cb-shadow: 0 0 0 1px var(--cb-card-edge), 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(30, 41, 90, .22); --cb-shadow-pop: 0 0 0 1px var(--cb-card-edge), 0 22px 50px -14px rgba(30, 41, 90, .3); --cb-radius: 18px; --cb-radius-md: 12px; --cb-radius-sm: 10px; --cb-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif; --cb-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace; --cb-ease: cubic-bezier(.25, .1, .25, 1); --cb-content-max: 1240px; /* dashboards and table pages grow with the screen (see 16-responsive) */ --cb-content-wide: 1240px; color-scheme: light; } :root[data-darkmode="true"] { --cb-blue: #60a5fa; --cb-green: #34d399; --cb-orange: #fbb03b; --cb-red: #f87171; --cb-purple: #a78bfa; --cb-teal: #2dd4bf; --cb-indigo: #8b95ff; --cb-pink: #f472b6; --cb-yellow: #facc15; --cb-gray: #9aa1b2; --cb-green-t: rgba(52, 211, 153, .14); --cb-orange-t: rgba(251, 176, 59, .15); --cb-red-t: rgba(248, 113, 113, .15); --cb-accent: #8b95ff; --cb-accent-strong: #aab3ff; --cb-accent-t: rgba(139, 149, 255, .16); --cb-focus: rgba(139, 149, 255, .32); --cb-on-accent: #0e1024; --cb-bg: #0c0d12; --cb-card: rgba(24, 26, 34, .8); --cb-card-solid: #181a22; --cb-card-2: rgba(255, 255, 255, .03); --cb-card-edge: rgba(255, 255, 255, .06); --cb-field: rgba(255, 255, 255, .045); --cb-fill: rgba(255, 255, 255, .08); --cb-fill-2: rgba(255, 255, 255, .05); --cb-hover: rgba(255, 255, 255, .04); --cb-text: #e9ebf5; --cb-text-2: rgba(233, 235, 245, .6); --cb-text-3: rgba(233, 235, 245, .32); --cb-sep: rgba(255, 255, 255, .07); --cb-border: rgba(255, 255, 255, .08); --cb-border-strong: rgba(255, 255, 255, .15); --cb-toolbar: rgba(12, 13, 18, .7); --cb-popover: rgba(30, 32, 42, .9); --cb-shadow: 0 0 0 1px var(--cb-card-edge), 0 10px 30px -18px rgba(0, 0, 0, .7); --cb-shadow-pop: 0 0 0 1px var(--cb-card-edge), 0 24px 56px -14px rgba(0, 0, 0, .75); color-scheme: dark; } /* ========================================================================== 2. Base ========================================================================== */ *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { margin: 0; min-height: 100vh; background: var(--cb-bg); color: var(--cb-text); font: 14px/1.5 var(--cb-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern"; } a { color: var(--cb-accent); text-decoration: none; } /* :where() keeps hover underline at class specificity, so button-like links can opt out without !important */ :where(a):hover { text-decoration: underline; text-underline-offset: 2px; } h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.25; color: var(--cb-text); } h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; } h3 { font-size: 17px; } h4 { font-size: 15px; } h5 { font-size: 14px; } p { margin: 0 0 .75em; } hr { border: 0; border-top: 1px solid var(--cb-sep); margin: 16px 0; } small { font-size: 12px; } code, kbd, pre, samp, var, tt { font-family: var(--cb-mono); font-size: 12.5px; } pre { background: var(--cb-card-2); border: 1px solid var(--cb-sep); border-radius: var(--cb-radius-sm); padding: 10px 12px; overflow: auto; white-space: pre-wrap; } img { max-width: 100%; } ul, ol { padding-left: 1.4em; } abbr[title] { text-decoration: underline dotted; cursor: help; } strong, b { font-weight: 600; } em { font-style: normal; color: var(--cb-text-2); } fieldset { border: 0; margin: 0 0 16px; padding: 0; } legend { font-size: 17px; font-weight: 600; padding: 0 0 8px; } ::selection { background: var(--cb-accent-t); } :focus-visible { outline: 3px solid var(--cb-focus); outline-offset: 1px; } .hidden { display: none !important; } .left { text-align: left !important; } .right { text-align: right !important; } .center { text-align: center !important; } .top { vertical-align: top !important; } .middle { vertical-align: middle !important; } .bottom { vertical-align: bottom !important; } .pull-right { float: right; } .pull-left { float: left; } form.inline { display: inline; margin: 0; } .nowrap { white-space: nowrap; } /* ========================================================================== 3. App shell — sidebar, toolbar, content ========================================================================== */ .cb-app { display: flex; min-height: 100vh; } /* ---- Carbon glass sidebar ------------------------------------------- A floating frosted panel over a soft ambient backdrop. Monochrome line icons sit in small glass chips; the active page gets a solid Carbon indigo chip, a soft glow and an edge indicator. No gradients on controls. ---------------------------------------------------------------------- */ :root { --cb-side-w: 264px; --cb-side-w-mini: 76px; --cb-gutter: 12px; --cb-amb-1: rgba(79, 91, 234, .16); --cb-amb-2: rgba(139, 92, 246, .13); --cb-amb-3: rgba(45, 212, 191, .13); --cb-glass: rgba(255, 255, 255, .56); --cb-glass-solid: #f6f7fb; --cb-glass-edge: rgba(255, 255, 255, .8); --cb-glass-line: rgba(15, 23, 42, .07); --cb-glass-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 50px -12px rgba(30, 41, 90, .22), 0 2px 8px rgba(30, 41, 90, .06); --cb-chip: rgba(255, 255, 255, .7); --cb-chip-edge: rgba(15, 23, 42, .07); --cb-nav-fg: #27304a; --cb-nav-fg-2: rgba(39, 48, 74, .62); --cb-nav-hover: rgba(79, 91, 234, .06); --cb-nav-active-fg: var(--cb-accent-strong); --cb-seg-track: rgba(15, 23, 42, .06); --cb-seg-thumb: #ffffff; } :root[data-darkmode="true"] { --cb-amb-1: rgba(37, 99, 235, .26); --cb-amb-2: rgba(124, 58, 237, .22); --cb-amb-3: rgba(20, 184, 166, .12); --cb-glass: rgba(26, 28, 36, .58); --cb-glass-solid: #16171d; --cb-glass-edge: rgba(255, 255, 255, .08); --cb-glass-line: rgba(255, 255, 255, .07); --cb-glass-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -10px rgba(0, 0, 0, .6); --cb-chip: rgba(255, 255, 255, .06); --cb-chip-edge: rgba(255, 255, 255, .07); --cb-nav-fg: #e7e9f3; --cb-nav-fg-2: rgba(231, 233, 243, .58); --cb-nav-hover: rgba(255, 255, 255, .06); --cb-nav-active-fg: var(--cb-accent-strong); --cb-seg-track: rgba(255, 255, 255, .07); --cb-seg-thumb: rgba(255, 255, 255, .16); } /* ambient backdrop — gives the glass something to refract */ .cb-app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(620px 520px at -4% -6%, var(--cb-amb-1), transparent 70%), radial-gradient(560px 520px at -2% 104%, var(--cb-amb-2), transparent 70%), radial-gradient(700px 560px at 104% 18%, var(--cb-amb-3), transparent 70%); } .cb-sidebar { position: fixed; z-index: 300; top: var(--cb-gutter); bottom: var(--cb-gutter); left: var(--cb-gutter); width: var(--cb-side-w); display: flex; flex-direction: column; padding: 14px 10px 10px; border-radius: 22px; border: 1px solid var(--cb-glass-edge); background: var(--cb-glass-solid); box-shadow: var(--cb-glass-shadow); color: var(--cb-nav-fg); transition: width .3s var(--cb-ease), transform .3s var(--cb-ease), padding .3s var(--cb-ease); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-sidebar { background: var(--cb-glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); } } /* top sheen */ .cb-sidebar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 120px); opacity: .7; } :root[data-darkmode="true"] .cb-sidebar::before { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 120px); opacity: 1; } .cb-sidebar > * { position: relative; } /* brand */ .cb-brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 2px 6px 12px; color: var(--cb-nav-fg); text-decoration: none; } .cb-brand-logo { width: 38px; height: 38px; flex: none; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(79, 91, 234, .6); } /* uploaded logo: any aspect ratio, no brand-coloured glow */ .cb-brand-logo[data-custom] { object-fit: contain; border-radius: 10px; box-shadow: none; } .cb-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .cb-brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-brand-text small { color: var(--cb-nav-fg-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* collapse handle on the panel edge */ .cb-collapse { position: absolute !important; z-index: 2; top: 24px; right: -13px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--cb-glass-edge); border-radius: 50%; background: var(--cb-glass-solid); color: var(--cb-nav-fg-2); box-shadow: 0 4px 12px rgba(30, 41, 90, .16); cursor: pointer; opacity: 0; transition: opacity .2s var(--cb-ease), color .2s, transform .3s var(--cb-ease); } .cb-collapse svg { width: 14px; height: 14px; } .cb-sidebar:hover .cb-collapse, .cb-collapse:focus-visible { opacity: 1; } .cb-collapse:hover { color: var(--cb-nav-active-fg); } /* mode switch */ .cb-mode { padding: 0 4px 6px; } .cb-mode .cb-seg { width: 100%; } /* nav list */ .cb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -10px; padding: 2px 10px 12px; scrollbar-width: none; } .cb-nav::-webkit-scrollbar { display: none; } .cb-nav-sect { padding: 16px 12px 6px; color: var(--cb-nav-fg-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; } .cb-nav-sect:first-child { padding-top: 8px; } .cb-nav-link, .cb-nav-head { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; margin: 2px 0; padding: 0 10px 0 6px; border: 0; border-radius: 13px; background: transparent; color: var(--cb-nav-fg); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .18s var(--cb-ease), color .18s var(--cb-ease); } .cb-nav-link:hover, .cb-nav-head:hover { background: var(--cb-nav-hover); } /* plain line icon — no chip, no fill; state is shown by colour only */ .cb-nav-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 30px; color: var(--cb-nav-fg-2); transition: color .18s var(--cb-ease); } .cb-nav-ico svg { width: 18px; height: 18px; stroke-width: 1.8; } .cb-nav-link:hover .cb-nav-ico, .cb-nav-head:hover .cb-nav-ico { color: var(--cb-nav-fg); } .cb-nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* active page: colour only — no background, no edge indicator */ .cb-nav-link.active { color: var(--cb-nav-active-fg); font-weight: 600; } .cb-nav-link.active .cb-nav-ico, .cb-nav-group.active > .cb-nav-head .cb-nav-ico { color: var(--cb-accent); } .cb-nav-group.active > .cb-nav-head { color: var(--cb-nav-fg); font-weight: 600; } .cb-chev { flex: none; width: 14px; height: 14px; color: var(--cb-nav-fg-2); opacity: .7; transition: transform .25s var(--cb-ease); } .cb-chev svg { width: 14px; height: 14px; display: block; } .cb-nav-group.open > .cb-nav-head .cb-chev { transform: rotate(90deg); } /* sub pages */ .cb-nav-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--cb-ease); } .cb-nav-group.open > .cb-nav-items { grid-template-rows: 1fr; } .cb-nav-items > .cb-nav-sub { position: relative; overflow: hidden; min-height: 0; padding-left: 24px; } /* guide line under the category icon */ .cb-nav-items > .cb-nav-sub::before { content: ""; position: absolute; left: 17.5px; top: 0; bottom: 14px; width: 1px; background: var(--cb-glass-line); } .cb-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; margin: 1px 0; padding: 0 10px; border-radius: 10px; color: var(--cb-nav-fg-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .18s var(--cb-ease), color .18s var(--cb-ease); } .cb-nav-item:hover { background: var(--cb-nav-hover); color: var(--cb-nav-fg); } .cb-nav-item.active { color: var(--cb-nav-active-fg); font-weight: 600; } .cb-nav-item.active .cb-sub-ico { color: var(--cb-accent); } /* sub pages keep a short highlight on the guide line */ .cb-nav-sub > .cb-nav-item.active::before { content: ""; position: absolute; left: -7.5px; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--cb-accent); } .cb-sub-ico { display: inline-flex; flex: none; width: 16px; height: 16px; opacity: .85; } .cb-sub-ico svg { width: 16px; height: 16px; stroke-width: 1.8; } .cb-nav-item.active .cb-sub-ico { opacity: 1; } /* hint card in simple mode */ .cb-nav-hint { display: flex; gap: 10px; margin: 18px 2px 0; padding: 12px; border-radius: 14px; border: 1px solid var(--cb-chip-edge); background: var(--cb-chip); color: var(--cb-nav-fg-2); font-size: 12px; line-height: 1.5; } .cb-nav-hint a { font-weight: 600; color: var(--cb-nav-active-fg); } .cb-nav-hint-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; color: var(--cb-accent); } .cb-nav-hint-ico svg { width: 18px; height: 18px; } /* footer */ .cb-sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--cb-glass-line); } .cb-sidebar-foot .cb-seg { flex: 1; } /* language switch in the sidebar footer (bottom-left) */ .cb-lang { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; transition: opacity .2s; } .cb-lang-ico { display: inline-flex; flex: none; width: 18px; height: 18px; color: var(--cb-nav-fg-2); } .cb-lang-ico svg { width: 18px; height: 18px; } .cb-lang .cb-seg-btn { font-size: 12px; font-weight: 600; } .cb-lang.busy { opacity: .55; pointer-events: none; } .cb-lang.err .cb-seg, .cb-lang.err .cb-lb, .cb-lang.err .cb-mini { box-shadow: 0 0 0 1.5px var(--cb-red); } .cb-lang-mini { font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; } .cb-lang .cb-lb { flex: 1; min-width: 0; } .cb-logout { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9px; color: var(--cb-red); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; } .cb-logout:hover { background: var(--cb-red-t); } .cb-logout svg { width: 16px; height: 16px; } /* icon-only buttons used on the rail */ .cb-mini { display: none; align-items: center; justify-content: center; width: 40px; height: 36px; margin: 0 auto; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--cb-nav-fg-2); cursor: pointer; } .cb-mini:hover { background: var(--cb-nav-hover); color: var(--cb-nav-fg); } .cb-mini svg { width: 17px; height: 17px; } /* flyout next to the rail */ .cb-fly { position: fixed; z-index: 1000; min-width: 200px; max-width: 280px; padding: 6px; border-radius: 16px; border: 1px solid var(--cb-glass-edge); background: var(--cb-glass-solid); box-shadow: var(--cb-glass-shadow); color: var(--cb-nav-fg); opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .16s var(--cb-ease), transform .16s var(--cb-ease), visibility .16s; } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-fly { background: var(--cb-glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); } } /* visible at once when opening, so keyboard focus can move into it */ .cb-fly.show { opacity: 1; visibility: visible; transform: none; transition-property: opacity, transform; } .cb-fly-title { padding: 6px 10px 6px; color: var(--cb-nav-fg-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .cb-fly.cb-fly-tip { min-width: 0; padding: 4px; border-radius: 10px; } .cb-fly.cb-fly-tip .cb-fly-title { padding: 4px 8px; color: var(--cb-nav-fg); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; } .cb-fly .cb-nav-item.active::before { display: none; } /* ---- collapsed rail (desktop only) ---- */ @media (min-width: 1024px) { html.cb-collapsed .cb-sidebar { width: var(--cb-side-w-mini); padding-left: 8px; padding-right: 8px; } html.cb-collapsed .cb-collapse { opacity: 1; transform: rotate(180deg); } html.cb-collapsed .cb-brand { justify-content: center; padding-left: 0; padding-right: 0; } html.cb-collapsed .cb-brand-text, html.cb-collapsed .cb-sidebar .cb-nav-label, html.cb-collapsed .cb-chev, html.cb-collapsed .cb-nav-items, html.cb-collapsed .cb-nav-hint, html.cb-collapsed .cb-mode .cb-seg, html.cb-collapsed .cb-sidebar-foot .cb-seg, html.cb-collapsed .cb-lang .cb-lb, html.cb-collapsed .cb-lang-ico, html.cb-collapsed .cb-logout span { display: none; } html.cb-collapsed .cb-mini { display: inline-flex; } html.cb-collapsed .cb-mode { padding: 0 0 4px; display: flex; } html.cb-collapsed .cb-nav { margin: 0 -8px; padding: 2px 8px 12px; } html.cb-collapsed .cb-nav-sect { height: 1px; margin: 12px 14px; padding: 0; background: var(--cb-glass-line); font-size: 0; } html.cb-collapsed .cb-nav-sect:first-child { margin-top: 6px; } html.cb-collapsed .cb-nav-link, html.cb-collapsed .cb-nav-head { justify-content: center; padding: 0; } html.cb-collapsed .cb-nav-ico { width: 36px; height: 36px; } html.cb-collapsed .cb-nav-ico svg { width: 20px; height: 20px; } html.cb-collapsed .cb-sidebar-foot { flex-direction: column; gap: 6px; padding: 10px 0 2px; } html.cb-collapsed .cb-lang { flex: none; justify-content: center; } html.cb-collapsed .cb-logout { width: 40px; height: 36px; padding: 0; } html.cb-collapsed .cb-main { margin-left: calc(var(--cb-side-w-mini) + var(--cb-gutter) * 2); } } .cb-main { transition: margin-left .3s var(--cb-ease); } /* ---- segmented control ---- */ .cb-seg { --n: 2; --i: 0; position: relative; display: inline-flex; padding: 2px; border-radius: 11px; background: var(--cb-seg-track); isolation: isolate; } .cb-seg::before { content: ""; position: absolute; z-index: -1; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n)); border-radius: 9px; background: var(--cb-seg-thumb); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 .5px rgba(15, 23, 42, .04); transform: translateX(calc(var(--i) * 100%)); transition: transform .25s var(--cb-ease); } .cb-seg > .cb-seg-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 28px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--cb-text); font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer; } .cb-seg > .cb-seg-btn[aria-checked="false"] { color: var(--cb-text-2); } .cb-seg > .cb-seg-btn svg { width: 15px; height: 15px; } /* ---- main ---- */ .cb-main { flex: 1; min-width: 0; margin-left: calc(var(--cb-side-w) + var(--cb-gutter) * 2); display: flex; flex-direction: column; min-height: 100vh; } .cb-toolbar { position: sticky; z-index: 200; top: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 28px 8px 16px; background: var(--cb-bg); border-bottom: .5px solid transparent; transition: border-color .2s var(--cb-ease); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-toolbar { background: var(--cb-toolbar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } } .cb-scrolled .cb-toolbar { border-bottom-color: var(--cb-border); } .cb-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-title .cb-crumb { color: var(--cb-text-2); font-weight: 500; } .cb-title .cb-crumb-sep { width: 12px; height: 12px; color: var(--cb-text-3); flex: none; } .cb-burger { display: none; position: relative; width: 34px; height: 34px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; } .cb-burger:hover { background: var(--cb-hover); } .cb-burger span, .cb-burger span::before, .cb-burger span::after { position: absolute; left: 9px; width: 16px; height: 1.75px; border-radius: 2px; background: var(--cb-text); } .cb-burger span { top: 16px; } .cb-burger span::before, .cb-burger span::after { content: ""; left: 0; } .cb-burger span::before { top: -5px; } .cb-burger span::after { top: 5px; } /* theme switch in the toolbar (top-right) */ .cb-appearance { flex: none; } .cb-appearance:empty { display: none; } .cb-appearance .cb-seg-btn { height: 26px; min-width: 32px; padding: 0 8px; } .cb-appearance .cb-seg-btn svg { width: 15px; height: 15px; } .cb-github { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: var(--cb-text-2); transition: color .2s var(--cb-ease), background .2s var(--cb-ease); } .cb-github svg { width: 19px; height: 19px; } .cb-github:hover { color: var(--cb-accent); background: var(--cb-hover); } .cb-github:focus-visible { outline: 2px solid var(--cb-accent); outline-offset: 2px; } .cb-indicators, #indicators { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; } [data-indicator] { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--cb-fill); color: var(--cb-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; } [data-indicator][data-clickable] { cursor: pointer; } [data-indicator][data-clickable]:hover { filter: brightness(.96); } [data-indicator][data-style="active"] { background: var(--cb-orange-t); color: var(--cb-orange); } [data-indicator][data-style="active"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; } [data-indicator="poll-status"][data-style="active"] { background: var(--cb-green-t); color: var(--cb-green); } .cb-content { flex: 1; width: 100%; max-width: var(--cb-content-max); margin: 0 auto; padding: 12px 28px 28px; } .cb-footer { width: 100%; max-width: var(--cb-content-max); margin: 0 auto; padding: 8px 28px 28px; color: var(--cb-text-3); font-size: 12px; } .cb-footer a { color: var(--cb-text-2); } .cb-scrim { display: none; } /* ========================================================================== 4. Login page ========================================================================== */ body.cb-login { display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(900px 620px at 10% 0%, var(--cb-amb-1), transparent 65%), radial-gradient(800px 640px at 95% 100%, var(--cb-amb-2), transparent 65%), radial-gradient(700px 520px at 90% 10%, var(--cb-amb-3), transparent 65%), var(--cb-bg); background-attachment: fixed; } .cb-login-wrap { width: 100%; max-width: 380px; } .cb-login-brand { text-align: center; margin-bottom: 22px; } .cb-login-logo { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 12px 30px -8px rgba(79, 91, 234, .55); } .cb-login-logo[data-custom] { object-fit: contain; box-shadow: none; } .cb-login-brand h1 { margin: 16px 0 0; font-size: 24px; font-weight: 700; } .cb-login-card { padding: 22px 22px 18px; border-radius: 22px; background: var(--cb-popover); box-shadow: var(--cb-shadow-pop); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-login-card { -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); } } .cb-login-card .cbi-map { margin: 0; } .cb-login-card .cbi-map > h2 { display: none; } .cb-login-card .cbi-map-descr { margin: 0 0 14px; text-align: center; color: var(--cb-text-2); font-size: 13px; } .cb-login-card .cbi-section { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; } .cb-login-card .cbi-section-node { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; } .cb-login-card .cbi-value { display: block; padding: 0; margin: 0 0 12px; border: 0 !important; } .cb-login-card .cbi-value-title { display: block; width: auto !important; padding: 0 0 5px 2px !important; text-align: left !important; font-size: 12.5px; color: var(--cb-text-2); } .cb-login-card .cbi-value-field { margin: 0; } .cb-login-card .cbi-value-field input:where(:not([type="checkbox"]):not([type="radio"])) { width: 100%; height: 42px; font-size: 15px; border-radius: 10px; } .cb-login-card .cbi-page-actions { position: static; display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; } .cb-login-card .cbi-page-actions .cbi-button { width: 100%; height: 42px; margin: 0; font-size: 15px; border-radius: 10px; } .cb-login-card .cbi-page-actions .cbi-button-reset { display: none; } .cb-login-card .alert-message { margin-bottom: 14px; animation: cb-shake .4s var(--cb-ease); } .cb-login-foot { margin: 18px 0 0; text-align: center; color: var(--cb-text-3); font-size: 12px; } @keyframes cb-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } } /* ========================================================================== 5. LuCI page structure — maps, sections, value rows ========================================================================== */ #view > h2, .cbi-map > h2, #maincontent > h2, #view > .cbi-map > h2, h2[name="content"] { margin: 8px 0 6px; font-size: 26px; font-weight: 750; letter-spacing: -.022em; } .cbi-map-descr, .cbi-section-descr, .cbi-tab-descr { margin: 0 0 18px; color: var(--cb-text-2); font-size: 13.5px; line-height: 1.55; max-width: 760px; } .cbi-section-descr:empty, .cbi-map-descr:empty { display: none; } .cbi-map { margin-bottom: 20px; } .cbi-map > .cbi-section:first-of-type { margin-top: 10px; } .cbi-section, .cbi-tblsection { margin: 0 0 22px; } .cbi-section > h3, .cbi-section > legend, .cbi-tblsection > h3 { margin: 0 0 10px; padding: 0 4px; font-size: 11px; font-weight: 700; color: var(--cb-text-2); text-transform: uppercase; letter-spacing: .09em; } .cbi-section > h3:empty { display: none; } .cbi-section-node, .cbi-section > .table, .cbi-section > .cbi-section-table, .cbi-tblsection > .table, #view > .table, #view > .cbi-section > div:not([class]) > .table { background: var(--cb-card); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); } .cbi-section-node { padding: 4px 20px; } .cbi-section-node-tabbed { padding-top: 14px; } .cbi-section-node:empty { display: none; } .cbi-section > div:not([class]):not([id]) > .cbi-value:first-child { margin-top: 0; } /* value rows */ .cbi-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--cb-sep); } .cbi-section-node > .cbi-value:first-child, .cbi-section-node > [data-tab] > .cbi-value:first-child, .cbi-section-node > div > .cbi-value:first-child, [data-tab-title] > .cbi-value:first-of-type { border-top: 0; } .cbi-value-title, .cbi-value label.cbi-value-title { flex: 0 0 210px; padding: 0; color: var(--cb-text); font-size: 13.5px; font-weight: 600; line-height: 1.4; text-align: left; word-break: break-word; } .cbi-value-field { flex: 1 1 280px; min-width: 0; line-height: 1.5; } .cbi-value > .cbi-section, .cbi-value > .cbi-tblsection { width: 100%; } .cbi-value-field > .cbi-checkbox, .cbi-value-field > div > .cbi-radio { min-height: 32px; display: inline-flex; align-items: center; } /* inline button groups inside a field (e.g. System → Local time) */ .cbi-value-field .control-group { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .cbi-value-field .control-group > * { margin: 0 !important; } /* multi-line fields: keep the label at the top of the box */ .cbi-value[data-widget="CBI.TextValue"], .cbi-value:has(> .cbi-value-field textarea) { align-items: flex-start; } .cbi-value[data-widget="CBI.TextValue"] > .cbi-value-title, .cbi-value:has(> .cbi-value-field textarea) > .cbi-value-title { padding-top: 7px; } /* firewall zone forwarding cell: src ⇒ dest side by side (mirrors bootstrap) */ .zone-forwards { display: flex; align-items: center; gap: 8px; min-width: 10em; } .zone-forwards > * { flex: 1 1 45%; padding: 1px; } .zone-forwards > span { flex: 0 0 auto; color: var(--cb-text-3); text-align: center; } .zone-forwards .zone-src, .zone-forwards .zone-dest { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } /* zero-width text gives the switch a centred baseline for row alignment */ .cbi-checkbox::before { content: "\200b"; width: 0; line-height: 32px; overflow: hidden; } .cbi-value-description { position: relative; margin: 6px 0 0; padding-left: 0; color: var(--cb-text-2); font-size: 12.5px; line-height: 1.5; } .cbi-value-description:empty { display: none; } .cbi-value-helpicon img { display: none; } .cbi-section-error { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--cb-radius-md); background: var(--cb-red-t); color: var(--cb-red); } .cbi-section-error ul { margin: 0; padding-left: 1.2em; } .cbi-section-create { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; } .cbi-section-create > * { margin: 0 !important; } .cbi-section-create > div > input { margin: 0; } .cbi-section-remove { text-align: right; padding: 10px 0 4px; } .cbi-section-remove:empty { display: none; } .cbi-optionals { padding: 10px 0; } .cbi-title-ref { color: var(--cb-accent); } .cbi-title-ref::after { content: " →"; } /* page actions bar (Save & Apply) */ .cbi-page-actions { position: sticky; z-index: 100; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 22px 0 0; padding: 10px 12px; border-radius: var(--cb-radius); background: var(--cb-popover); box-shadow: var(--cb-shadow-pop); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cbi-page-actions { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } } .cbi-page-actions:empty { display: none; } .cbi-page-actions > * { margin: 0 !important; } .cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-negative):not(.cbi-button-save):not(.cbi-button-reset) { margin-right: auto !important; } .cbi-page-actions.control-group { justify-content: flex-start; } /* ========================================================================== 6. Form controls ========================================================================== */ input, textarea, select, button { font-family: var(--cb-font); font-size: 13.5px; } input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])), textarea, select, .cbi-select, .cbi-dropdown:not(.btn):not(.cbi-button) { display: inline-block; width: 260px; max-width: 100%; min-height: 34px; padding: 6px 12px; border: 1px solid var(--cb-border-strong); border-radius: var(--cb-radius-sm); background: var(--cb-field); color: var(--cb-text); line-height: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s var(--cb-ease), box-shadow .15s var(--cb-ease); } input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])), select, .cbi-select { height: 34px; } textarea { width: 100%; min-height: 120px; font-family: var(--cb-mono); font-size: 12.5px; resize: vertical; } select { -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none' stroke='%238b91a1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 14px; cursor: pointer; } select[multiple] { height: auto; background-image: none; padding-right: 10px; } select option { background: var(--cb-card-solid); color: var(--cb-text); } .cbi-select { position: relative; padding: 0; } .cbi-select select { width: 100%; height: 100%; border: 0; box-shadow: none; background-color: transparent; } input:focus, textarea:focus, select:focus, .cbi-select.focus, .cbi-dropdown:not(.btn):not(.cbi-button):focus, .cbi-dropdown:not(.btn):not(.cbi-button)[open] { outline: 0; border-color: var(--cb-accent) !important; box-shadow: 0 0 0 4px var(--cb-focus); } ::placeholder { color: var(--cb-text-3); opacity: 1; } input[readonly], textarea[readonly] { background: var(--cb-card-2); color: var(--cb-text-2); } input[disabled], button[disabled], select[disabled], textarea[disabled], .cbi-dropdown[disabled] { opacity: .5; pointer-events: none; cursor: default; } input[type="file"] { width: auto !important; max-width: 100%; font-size: 13px; color: var(--cb-text-2); } input[type="file"]::file-selector-button { margin-right: 10px; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--cb-fill); color: var(--cb-text); font: inherit; font-weight: 500; cursor: pointer; } .cbi-input-invalid, .cbi-input-invalid:focus, .cbi-value-error input, .cbi-dropdown.cbi-input-invalid { border-color: var(--cb-red) !important; color: var(--cb-red) !important; } .cbi-input-invalid:focus { box-shadow: 0 0 0 3.5px var(--cb-red-t) !important; } /* checkboxes & radios */ input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -4px; border: 1.5px solid var(--cb-border-strong); border-radius: 6px; background: var(--cb-field); cursor: pointer; transition: background-color .15s var(--cb-ease), border-color .15s var(--cb-ease); } input[type="radio"] { border-radius: 50%; } input[type="checkbox"]:checked, input[type="radio"]:checked { border-color: var(--cb-accent); background: var(--cb-accent); } input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); } input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; } input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 0; box-shadow: 0 0 0 3.5px var(--cb-focus); } input[type="checkbox"].cbi-input-invalid, input[type="radio"].cbi-input-invalid { border-color: var(--cb-red); } /* LuCI flag fields → iOS switch */ .cbi-checkbox { display: inline-flex; align-items: center; gap: 8px; } .cbi-checkbox > label:empty { display: none; } .cbi-checkbox > input[type="checkbox"] { width: 42px; height: 24px; margin: 0; border: 0; border-radius: 8px; background: var(--cb-border-strong); box-shadow: none; transition: background-color .22s var(--cb-ease); } /* Keep the dark off-state fill from overriding the checked accent. */ :root[data-darkmode="true"] .cbi-checkbox > input[type="checkbox"]:not(:checked) { background: rgba(255, 255, 255, .16); } .cbi-checkbox > input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transform: none; transition: transform .22s var(--cb-ease); } .cbi-checkbox > input[type="checkbox"]:checked { background: var(--cb-accent); } .cbi-checkbox > input[type="checkbox"]:checked::after { transform: translateX(18px); } .cbi-radio { display: inline-flex; align-items: center; margin-right: 14px; cursor: pointer; gap: 2px; } /* ========================================================================== 7. Buttons — solid colours only (no gradients) ========================================================================== */ /* secondary: glass chip */ .btn, .cbi-button, button:where(:not([class*="cb-"])), input[type="submit"], input[type="button"], input[type="reset"] { --btn-bg: var(--cb-card-solid); --btn-fg: var(--cb-text); --btn-ring: var(--cb-border-strong); display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 34px; padding: 6px 15px; border: 0; border-radius: var(--cb-radius-sm); background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 0 0 1px var(--btn-ring), 0 1px 2px rgba(15, 23, 42, .05); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 20px; letter-spacing: .005em; white-space: nowrap; text-decoration: none; vertical-align: middle; cursor: pointer; transition: background-color .15s var(--cb-ease), box-shadow .15s var(--cb-ease), color .15s, transform .1s var(--cb-ease); -webkit-user-select: none; user-select: none; } :root[data-darkmode="true"] .btn, :root[data-darkmode="true"] .cbi-button, :root[data-darkmode="true"] input[type="submit"], :root[data-darkmode="true"] input[type="button"], :root[data-darkmode="true"] input[type="reset"], :root[data-darkmode="true"] button:where(:not([class*="cb-"])) { --btn-bg: rgba(255, 255, 255, .06); } .btn:hover, .cbi-button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover, button:where(:not([class*="cb-"])):hover { --btn-ring: var(--cb-accent); color: var(--cb-accent-strong); } .btn:active, .cbi-button:active, button:where(:not([class*="cb-"])):active { transform: translateY(1px); } .btn:focus-visible, .cbi-button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--cb-accent), 0 0 0 4px var(--cb-focus); } /* primary: solid Carbon indigo */ .btn.primary, .btn.important, .cbi-button-apply, .cbi-button-save, .cbi-button-positive.important, .cbi-button-action.important, .cbi-button.important, .cbi-page-actions .cbi-button-apply, .cbi-section-actions .cbi-button-edit, input[type="submit"].cbi-button-apply { --btn-bg: var(--cb-accent) !important; --btn-fg: var(--cb-on-accent) !important; --btn-ring: transparent !important; color: var(--cb-on-accent) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 14px -6px rgba(79, 91, 234, .55); } .btn.primary:hover, .btn.important:hover, .cbi-button-apply:hover, .cbi-button-save:hover, .cbi-button.important:hover, .cbi-section-actions .cbi-button-edit:hover { --btn-bg: var(--cb-accent-strong) !important; } /* tinted variants */ .cbi-button-positive, .cbi-button-add, .btn.success { --btn-bg: var(--cb-green-t); --btn-fg: var(--cb-green); --btn-ring: transparent; } .cbi-button-negative, .cbi-button-remove, .btn.danger, .btn.error { --btn-bg: var(--cb-red-t); --btn-fg: var(--cb-red); --btn-ring: transparent; } .cbi-button-action, .cbi-button-edit, .cbi-button-find, .cbi-button-link, .cbi-button-download { --btn-bg: var(--cb-accent-t); --btn-fg: var(--cb-accent-strong); --btn-ring: transparent; } :root[data-darkmode="true"] .cbi-button-positive, :root[data-darkmode="true"] .cbi-button-add { --btn-bg: var(--cb-green-t); } :root[data-darkmode="true"] .cbi-button-negative, :root[data-darkmode="true"] .cbi-button-remove { --btn-bg: var(--cb-red-t); } :root[data-darkmode="true"] .cbi-button-action, :root[data-darkmode="true"] .cbi-button-edit, :root[data-darkmode="true"] .cbi-button-find, :root[data-darkmode="true"] .cbi-button-link, :root[data-darkmode="true"] .cbi-button-download { --btn-bg: var(--cb-accent-t); } .cbi-button-positive:hover, .cbi-button-add:hover { --btn-ring: var(--cb-green); color: var(--cb-green); } .cbi-button-negative:hover, .cbi-button-remove:hover { --btn-ring: var(--cb-red); color: var(--cb-red); } .cbi-button-negative.important { --btn-bg: var(--cb-red) !important; --btn-fg: #fff !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(229, 72, 77, .55); } .cbi-button-reset, .cbi-button-neutral, .cbi-button-up, .cbi-button-down, .cbi-button-fieldadd, .cbi-button-reload { --btn-bg: var(--cb-fill); --btn-ring: transparent; } :root[data-darkmode="true"] .cbi-button-reset, :root[data-darkmode="true"] .cbi-button-neutral { --btn-bg: var(--cb-fill); } .cbi-page-actions .cbi-button-apply + .cbi-button-save, .cbi-page-actions .cbi-button-negative + .cbi-button-save { --btn-bg: var(--cb-card-solid) !important; --btn-fg: var(--cb-text) !important; --btn-ring: var(--cb-border-strong) !important; color: var(--cb-text) !important; box-shadow: inset 0 0 0 1px var(--btn-ring); } :root[data-darkmode="true"] .cbi-page-actions .cbi-button-apply + .cbi-button-save { --btn-bg: rgba(255, 255, 255, .06) !important; } .cbi-button-up, .cbi-button-down { min-width: 34px; padding: 0 8px; } .btn .close, .alert-message .close { font-family: inherit; } /* ========================================================================== 8. Dropdown (ui.Dropdown / ui.ComboButton) — behaviour mirrors bootstrap ========================================================================== */ .cbi-dropdown { display: inline-flex !important; cursor: pointer; height: auto; position: relative; padding: 0 !important; } .cbi-dropdown:not(.btn):not(.cbi-button) { min-width: 260px; max-width: 100%; width: auto; padding: 0 !important; } .cbi-dropdown img { max-height: 1.6em; width: auto; } .cbi-dropdown > ul { margin: 0 !important; padding: 0; list-style: none; overflow-x: hidden; overflow-y: hidden; display: flex; width: 100%; } .cbi-dropdown.btn > ul:not(.dropdown), .cbi-dropdown.cbi-button > ul:not(.dropdown) { margin: 0 0 0 14px !important; } .cbi-dropdown.btn.spinning > ul:not(.dropdown), .cbi-dropdown.cbi-button.spinning > ul:not(.dropdown) { margin: 0 !important; } .cbi-dropdown > ul.preview { display: none; } .cbi-dropdown > .open, .cbi-dropdown > .more { flex-grow: 0; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; line-height: 2em; padding: 0 .55em; color: var(--cb-text-2); font-size: 11px; } .cbi-dropdown.btn > .open, .cbi-dropdown.cbi-button > .open { padding: 0 .7em; margin-left: .6em; border-left: 1px solid rgba(255, 255, 255, .35); color: inherit; } .cbi-dropdown > .more, .cbi-dropdown:not(.btn):not(.cbi-button) > ul > li[placeholder] { color: var(--cb-text-3); display: none; } .cbi-dropdown > ul > li { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; flex-grow: 1; align-items: center; align-self: center; color: inherit; } .cbi-dropdown > ul.dropdown > li, .cbi-dropdown:not(.btn):not(.cbi-button) > ul > li { min-height: 30px; padding: 5px 10px; color: var(--cb-text); } .cbi-dropdown > ul > li .hide-open { display: initial; } .cbi-dropdown > ul > li .hide-close { display: none; } .cbi-dropdown > ul > li[display]:not([display="0"]) { border-left: 1px solid var(--cb-sep); } .cbi-dropdown[empty] > ul { max-width: 1px; } .cbi-dropdown > ul > li > form { display: none; margin: 0; padding: 0; pointer-events: none; } .cbi-dropdown > ul > li img { vertical-align: middle; margin-right: .3em; } .cbi-dropdown > ul > li > form > input[type="checkbox"] { margin: 0 .4em 0 0; } .cbi-dropdown > ul > li input[type="text"] { height: 26px !important; min-height: 26px !important; } .cbi-dropdown[open] { position: relative; } .cbi-dropdown[open] > ul.dropdown { display: block; position: absolute; z-index: 1100; max-width: none; min-width: 100%; width: auto; padding: 6px !important; border: 1px solid var(--cb-glass-edge); border-radius: 14px; /* opaque: the list is read item by item over busy pages */ background: var(--cb-card-solid); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); transition: max-height .125s ease-in; overflow-y: auto; } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cbi-dropdown[open] > ul.dropdown { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } } .cbi-dropdown > ul > li[display], .cbi-dropdown[open] > ul.preview, .cbi-dropdown[open] > ul.dropdown > li, .cbi-dropdown[multiple] > ul > li > label, .cbi-dropdown[multiple][open] > ul.dropdown > li, .cbi-dropdown[multiple][more] > .more, .cbi-dropdown[multiple][empty] > .more { flex-grow: 1; display: flex !important; } .cbi-dropdown[empty] > ul > li, .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder] { display: block !important; } .cbi-dropdown[multiple][open] > ul.dropdown > li > form { display: flex !important; } .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; } .cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; } /* items match the Carbon listbox (.cb-lb-list): soft hover tint, accent for the selection */ .cbi-dropdown[open] > ul.dropdown > li { min-height: 34px; padding: 5px 12px; border-radius: 9px; border: 0 !important; font-size: 13px; } .cbi-dropdown[open] > ul.dropdown > li[selected] { color: var(--cb-accent); font-weight: 600; } .cbi-dropdown[open] > ul.dropdown > li.focus, .cbi-dropdown[open] > ul.dropdown > li:hover { background: var(--cb-nav-hover); } .cbi-dropdown[open] > ul.dropdown > li:last-child { margin-bottom: 0; } .cbi-dropdown[open] > ul.dropdown > li[unselectable] { opacity: .6; } .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child { width: 100%; } .cbi-dropdown[disabled] { pointer-events: none; opacity: .5; } .cbi-dropdown .zonebadge { width: 100%; } .cbi-dropdown[open] .zonebadge { width: auto; } /* ---- Carbon listbox (C.listbox): a select in the sidebar's glass style ---- */ .cb-lb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 11px; border: 0; border-radius: 11px; background-color: var(--cb-seg-track); color: var(--cb-text); font: inherit; font-size: 12.5px; font-weight: 600; text-align: start; cursor: pointer; transition: background-color .15s var(--cb-ease); } /* hover tint layered over the track colour */ .cb-lb:hover, .cb-lb[aria-expanded="true"] { background-image: linear-gradient(var(--cb-nav-hover), var(--cb-nav-hover)); } .cb-lb:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cb-focus); } .cb-lb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cb-lb-chev { display: inline-flex; flex: none; color: var(--cb-text-2); transition: transform .2s var(--cb-ease); } .cb-lb-chev svg { width: 14px; height: 14px; } .cb-lb[aria-expanded="true"] .cb-lb-chev { transform: rotate(180deg); } .cb-lb-list { position: fixed; z-index: 1000; max-height: min(70vh, 440px); min-width: 180px; max-width: min(320px, calc(100vw - 16px)); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border-radius: 14px; border: 1px solid var(--cb-glass-edge); /* opaque: the list is read item by item over busy pages */ background: var(--cb-card-solid); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); outline: none; opacity: 0; transform: translateY(4px); transition: opacity .14s var(--cb-ease), transform .14s var(--cb-ease); } .cb-lb-list.show { opacity: 1; transform: none; } .cb-lb-list > li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 8px; border-radius: 9px; font-size: 13px; white-space: nowrap; cursor: pointer; } .cb-lb-list > li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* group heading (like ): not an option, not focusable */ .cb-lb-list > li.cb-lb-group { min-height: 0; padding: 8px 10px 4px; color: var(--cb-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; cursor: default; } .cb-lb-list > li.cb-lb-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--cb-sep); padding-top: 10px; } .cb-lb-list > li.active { background: var(--cb-nav-hover); } .cb-lb-list > li[aria-selected="true"] { color: var(--cb-accent); font-weight: 600; } .cb-lb-check { display: inline-flex; flex: none; width: 16px; height: 16px; visibility: hidden; } .cb-lb-check svg { width: 16px; height: 16px; } .cb-lb-list > li[aria-selected="true"] .cb-lb-check { visibility: visible; } @media (prefers-reduced-motion: reduce) { .cb-lb-list, .cb-lb-chev { transition: none; } } /* ========================================================================== 9. Dynamic lists ========================================================================== */ .cbi-dynlist { display: inline-flex; flex-direction: column; gap: 6px; min-width: 260px; max-width: 100%; height: auto; min-height: 32px; } .cbi-dynlist > .item { position: relative; padding: 6px 36px 6px 10px; border-radius: var(--cb-radius-sm); background: var(--cb-fill-2); color: var(--cb-text); font-size: 13px; line-height: 20px; pointer-events: auto; overflow: hidden; word-break: break-all; cursor: move; user-select: text; } .cbi-dynlist > .item::after { content: "×"; position: absolute; top: 0; right: 0; bottom: 0; display: inline-flex; align-items: center; padding: 0 11px; color: var(--cb-red); font-size: 17px; font-weight: 500; pointer-events: auto; cursor: pointer; } .cbi-dynlist > .item:hover::after { background: var(--cb-red-t); } .cbi-dynlist > .item > span { pointer-events: none; } .cbi-dynlist > .item.drag-over { box-shadow: inset 0 2px 0 var(--cb-accent); } .cbi-dynlist > .item.dragging { opacity: .5; } .cbi-dynlist > .add-item { display: flex; gap: 6px; } .cbi-dynlist > .add-item > input, .cbi-dynlist > .add-item > button { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cbi-dynlist > .add-item > .cbi-button { flex: 0 0 auto; } .cbi-dynlist > .add-item > .cbi-dropdown { flex: 1; min-width: 0; width: 100%; } .cbi-dynlist > .add-item > .cbi-input-text.drag-over, .cbi-dynlist > .add-item > .cbi-button-add.drag-over { box-shadow: inset 0 2px 0 var(--cb-accent); } /* ========================================================================== 10. Tabs → Carbon pill tabs ========================================================================== */ .tabs, .cbi-tabmenu { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; margin: 0 0 18px; padding: 0 0 10px; list-style: none; border-bottom: 1px solid var(--cb-sep); } #tabmenu { margin: 4px 0 8px; } #tabmenu .tabs { margin-bottom: 10px; } .tabs > li, .cbi-tabmenu > li { position: relative; display: flex; align-items: center; margin: 0; border-radius: 9px; color: var(--cb-text-2); transition: background-color .18s var(--cb-ease), color .18s var(--cb-ease); } .tabs > li > a, .cbi-tabmenu > li > a { display: block; padding: 6px 14px; color: inherit; font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; text-decoration: none; border-radius: 9px; outline: none; } .tabs > li > a:focus-visible, .cbi-tabmenu > li > a:focus-visible { box-shadow: 0 0 0 3px var(--cb-focus); } .tabs > li:not(.active):hover, .cbi-tabmenu > .cbi-tab-disabled:hover { color: var(--cb-text); background: var(--cb-fill-2); } .tabs > li.active, .cbi-tabmenu > .cbi-tab { background: var(--cb-accent-t); color: var(--cb-accent-strong); } /* active underline sitting on the divider */ .tabs > li.active::after, .cbi-tabmenu > .cbi-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 2px; border-radius: 2px; background: var(--cb-accent); } .cbi-tab-disabled[data-errors]::after { content: attr(data-errors); display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-right: 10px; padding: 0 5px; border-radius: 6px; background: var(--cb-red); color: #fff; font-size: 11px; font-weight: 700; } .cbi-tabmenu.map { margin: 0 0 14px; } .cbi-tabmenu.map > li { font-size: 14px; } /* tab panes — keep LuCI's height-0 approach so hidden fields still validate */ [data-tab-title] { height: 0; opacity: 0; overflow: hidden; } [data-tab-active="true"] { opacity: 1; height: auto; overflow: visible; transition: opacity .25s ease-in; } /* ========================================================================== 11. Tables ========================================================================== */ table { border-collapse: collapse; border-spacing: 0; } .table { display: table; width: 100%; margin: 0 0 22px; padding: 0; font-size: 13.5px; border-collapse: separate; border-spacing: 0; position: relative; overflow: hidden; } .thead { display: table-header-group; } .tbody { display: table-row-group; } .tr { display: table-row; } .table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; } .table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; } .table .th, .table .td, .table th, .table td { display: table-cell; padding: 11px 14px; line-height: 20px; text-align: left; vertical-align: middle; border-top: 1px solid var(--cb-sep); } .table .tr:first-child > .th, .table .tr:first-child > .td, .table > .tr:first-child > .td, .table tr:first-child > th, .table tr:first-child > td { border-top: 0; } .table .th, .table th, .tr.table-titles > .th, .tr.cbi-section-table-titles > .th { color: var(--cb-text-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; } .tr.table-titles, .tr.cbi-section-table-titles { background: transparent; } .cbi-rowstyle-2 { background: transparent; } .table .tr:not(.table-titles):not(.cbi-section-table-titles):not(.placeholder):hover > .td { background: var(--cb-hover); } .tr.placeholder { height: calc(3em + 22px); } .tr.placeholder > .td { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: center; justify-content: center; color: var(--cb-text-2); border-top: 0; } .table .td > .cbi-value-field, .table .td.cbi-value-field { line-height: normal; } .table .td.cbi-value-field { display: table-cell; } .cbi-section-table-titles.named::before, .cbi-section-table-descr.named::before, .cbi-section-table-row[data-title]::before { content: attr(data-title) " "; display: table-cell; padding: 11px 14px; line-height: 20px; font-weight: 600; vertical-align: middle; border-top: .5px solid var(--cb-sep); } .cbi-section-table-titles.named::before { border-top: 0; } .cbi-section-table .tr.cbi-section-table-descr .th { font-weight: 400; } .table.cbi-section-table input[type="password"], .table.cbi-section-table input[type="text"], .table.cbi-section-table textarea, .table.cbi-section-table select, .table.cbi-section-table .cbi-select { width: 100%; min-width: 6em; } .table.cbi-section-table .td.cbi-section-table-cell { white-space: nowrap; text-align: right; } .table.cbi-section-table .td.cbi-section-table-cell select, .table.cbi-section-table .td.cbi-section-table-cell .cbi-select { width: inherit; } .td > input[type=text], .td > input[type=password], .td > select, .td > .cbi-dropdown:not(.btn):not(.cbi-button), .cbi-dynlist > .add-item > .cbi-dropdown { width: 100%; } .td.cbi-section-actions { text-align: right; vertical-align: middle; width: 1%; white-space: nowrap; } .td.cbi-section-actions > * { display: flex; gap: 6px; justify-content: flex-end; } .td.cbi-section-actions > :not(.cbi-dropdown) > *, .td.cbi-section-actions > * > form > * { flex: 0 0 auto; margin: 0; } .td.cbi-section-actions > * > form { display: inline-flex; margin: 0; } .td.cbi-section-actions .cbi-button { min-height: 28px; padding: 3px 11px; font-size: 12.5px; } .table.valign-middle .td { vertical-align: middle; } th[data-sortable-row] { cursor: pointer; } th[data-sort-direction="asc"]::after { content: "\a0\25b4"; } th[data-sort-direction="desc"]::after { content: "\a0\25be"; } table table td, .cbi-value-field table td { border: none; } /* status tables that sit directly in a section get a card */ .cbi-section > .table, .cbi-section > div > .table, .cbi-tblsection > .table { margin-bottom: 0; } /* ========================================================================== 12. Alerts, labels, badges, tooltips, progress ========================================================================== */ .alert-message { --al: var(--cb-accent); --al-t: var(--cb-accent-t); position: relative; margin: 0 0 16px; padding: 14px 18px 14px 22px; border-radius: var(--cb-radius-md); background: var(--cb-card); box-shadow: var(--cb-shadow); color: var(--cb-text); font-size: 13.5px; overflow: hidden; } .alert-message::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--al); } .alert-message::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--al-t); opacity: .55; } .alert-message > * { position: relative; z-index: 1; } .alert-message.warning { --al: var(--cb-orange); --al-t: var(--cb-orange-t); } .alert-message.error, .alert-message.danger { --al: var(--cb-red); --al-t: var(--cb-red-t); } .alert-message.success { --al: var(--cb-green); --al-t: var(--cb-green-t); } .alert-message h4, .alert-message h5 { margin: 0 0 4px; font-size: 14px; } .alert-message p, .alert-message ul, .alert-message pre { margin: 0 0 6px; } .alert-message > :last-child { margin-bottom: 0; } .alert-message .right { margin-top: 8px; } .alert-message button { margin-top: 6px; } .alert-message.fade-out { opacity: 0; transition: opacity .4s ease-in; } .alert-message.fade-in { animation: cb-fade-in .3s var(--cb-ease); } @keyframes cb-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } .label { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--cb-fill); color: var(--cb-text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; text-decoration: none; } .label.important { background: var(--cb-red-t); color: var(--cb-red); } .label.warning { background: var(--cb-orange-t); color: var(--cb-orange); } .label.success { background: var(--cb-green-t); color: var(--cb-green); } .label.notice { background: var(--cb-accent-t); color: var(--cb-accent); } .cbi-tooltip-container { cursor: help; } .cbi-tooltip { position: absolute; z-index: 1000; left: -10000px; max-width: 420px; padding: 6px 10px; border-radius: 8px; background: var(--cb-popover); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); font-size: 12.5px; line-height: 1.45; white-space: pre; opacity: 0; transition: opacity .2s ease-in; } .cbi-tooltip-container:hover .cbi-tooltip:not(:empty) { left: auto; opacity: 1; } .cbi-tooltip.error { color: var(--cb-red); } .cbi-tooltip.success { color: var(--cb-green); } .cbi-tooltip.notice, .cbi-tooltip.info { color: var(--cb-accent); } .cbi-progressbar { position: relative; min-width: 170px; height: 6px; margin: 1.6em 0 6px; border-radius: 3px; background: var(--cb-fill); } .cbi-progressbar > div { height: 100%; width: 0%; border-radius: 3px; background: var(--cb-accent); transition: width .4s var(--cb-ease); } .cbi-progressbar::before { content: attr(title); position: absolute; top: -1.6em; left: 0; right: 0; color: var(--cb-text-2); font-size: 12px; line-height: 1.4; white-space: pre; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; } /* interface & zone badges */ .ifacebadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: var(--cb-fill-2); color: var(--cb-text); font-size: 12.5px; line-height: 1.4; white-space: nowrap; } .ifacebadge img { width: 16px; height: 16px; vertical-align: middle; } :root[data-darkmode="true"] .ifacebadge img, :root[data-darkmode="true"] .ifacebox img { filter: invert(1) hue-rotate(180deg); } .ifacebadge-active { background: var(--cb-accent-t); color: var(--cb-accent); font-weight: 600; } .ifacebadge.large, .network-status-table .ifacebox-body .ifacebadge { display: inline-flex; flex: 1; padding: 6px 10px; } .ifacebadge > *, .ifacebadge.large > * { margin: 0 .1em; } .ifacebox { display: inline-flex; flex-direction: column; min-width: 120px; margin: 0 6px; border-radius: var(--cb-radius-md); background: var(--cb-card); box-shadow: var(--cb-shadow); text-align: center; white-space: nowrap; overflow: hidden; line-height: 1.4; } .ifacebox .ifacebox-head { padding: 6px 10px; background: var(--cb-fill-2); font-weight: 600; font-size: 12.5px; } .ifacebox .ifacebox-head[style] { color: #1d1d1f; } .ifacebox .ifacebox-head.active { background: var(--cb-accent); color: #fff; } .ifacebox .ifacebox-body { padding: 8px 10px; font-size: 12.5px; } :root[data-darkmode="true"] .zonebadge[style], :root[data-darkmode="true"] .ifacebox-head[style] { background-blend-mode: multiply; filter: brightness(.85) saturate(1.1); } #cbi-network-interface .ifacebox-body { justify-content: center; } .network-status-table { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; } .network-status-table .ifacebox { flex: 1 1 280px; margin: 0; text-align: left; } .network-status-table .ifacebox-body { display: flex; flex-direction: column; gap: 4px; height: 100%; } .network-status-table .ifacebox-body > * { margin: 0; } .network-status-table .ifacebox-body > div { display: flex; flex-wrap: wrap; gap: 6px; } .network-status-table .ifacebox-body > span { white-space: normal; } .zonebadge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 3px 8px; border-radius: 7px; color: #1d1d1f; font-size: 12.5px; white-space: nowrap; } .zonebadge > em, .zonebadge > strong { margin: 0 2px; display: inline-block; color: inherit; } .zonebadge input { width: 6em; } .zonebadge > .ifacebadge { margin-left: 2px; background: rgba(255, 255, 255, .55); color: #1d1d1f; } .zonebadge-empty { background: repeating-linear-gradient(45deg, var(--cb-fill-2), var(--cb-fill-2) 6px, transparent 6px, transparent 12px); color: var(--cb-text-2); } .zonebadge .cbi-tooltip { padding: 2px; background: inherit; margin: -1.6em 0 0 -5px; border-radius: 8px; } .zonebadge .cbi-tooltip > * { margin: 1px; } .td.cbi-value-field var, .td.cbi-value-field var.cbi-tooltip-container { font-style: normal; font-family: inherit; } .td.cbi-value-field var[data-tooltip], div.cbi-value var.cbi-tooltip-container, .td.cbi-value-field var.cbi-tooltip-container { cursor: help; border-bottom: 1px dotted currentColor; } div.cbi-value var.cbi-tooltip-container .cbi-tooltip, .td.cbi-value-field var.cbi-tooltip-container .cbi-tooltip { white-space: normal; } /* ========================================================================== 13. Modal dialogs & change list ========================================================================== */ #modal_overlay { position: fixed; z-index: 900; top: 0; bottom: 0; left: 0; right: 0; overflow: auto; background: rgba(0, 0, 0, .32); opacity: 0; visibility: hidden; transition: opacity .2s var(--cb-ease), visibility .2s; } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { #modal_overlay { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } } body.modal-overlay-active { overflow: hidden; height: 100vh; } body.modal-overlay-active #modal_overlay { opacity: 1; visibility: visible; } .modal { width: 92%; max-width: 600px; min-width: 270px; min-height: 32px; margin: 9vh auto 5vh; padding: 22px 24px 18px; border-radius: 20px; background: var(--cb-card); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); transform: translateY(8px) scale(.98); transition: transform .25s var(--cb-ease); } .modal { background: var(--cb-card-solid); } body.modal-overlay-active .modal { transform: none; } .modal > * { line-height: 1.5; margin-bottom: .6em; max-width: 100%; } .modal > h4 { font-size: 17px; margin-bottom: 10px; } .modal > pre, .modal > textarea { white-space: pre-wrap; overflow: auto; width: 100%; } .modal > .right, .modal > .button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 18px 0 0; } .modal > .right > *, .modal > .button-row > * { margin: 0 !important; } .modal > .button-row { justify-content: space-between; } .modal > .button-row > button:first-of-type { margin-right: auto !important; } .modal.alert-message { padding: 22px 24px 18px; } .modal.alert-message::before { display: none; } #modal_overlay > .modal.uci-dialog, #modal_overlay > .modal.cbi-modal { max-width: 900px; } #modal_overlay > .modal.login > button.important { width: 100%; font-size: 15px; margin-top: 8px; } .modal .cbi-section-node { box-shadow: none; background: var(--cb-card-2); } :root[data-darkmode="true"] .modal .cbi-section-node { background: #3a3a3c; } .uci-change-list { line-height: 1.7; white-space: pre; } .uci-dialog div > del, .uci-dialog div > ins, .uci-dialog div > var { display: block; margin-bottom: 3px; padding: 3px 8px; border-radius: 6px; background: var(--cb-fill-2); color: var(--cb-text); font-family: var(--cb-mono); font-size: 12px; font-style: normal; text-decoration: none; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; position: relative; } .uci-dialog div > ins { background: var(--cb-green-t); } .uci-dialog div > del { background: var(--cb-red-t); } .uci-dialog var > ins { background: var(--cb-green-t); text-decoration: none; } .uci-dialog var > del { background: var(--cb-red-t); } .uci-dialog del, .uci-dialog ins, .uci-dialog var { display: block; font-style: normal; text-decoration: none; } .uci-change-list > var > * { overflow: hidden; text-overflow: ellipsis; } .uci-change-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; } .uci-change-legend-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; } .uci-change-legend-label > ins, .uci-change-legend-label > del, .uci-change-legend-label > var { display: flex; width: 16px; height: 16px; margin: 0 !important; padding: 0 !important; border-radius: 4px; } .uci-change-legend-label > * > * { flex-basis: 100%; padding: 1px; } #applyreboot-section { line-height: 2.4; } /* ========================================================================== 14. Spinner, file browser, misc LuCI pieces ========================================================================== */ #view > div.spinning:first-child, #view > .spinning:only-child { display: table; margin: 18vh auto; color: var(--cb-text-2); } .spinning { position: relative; padding-left: 30px !important; } .spinning::before { content: ""; position: absolute; top: calc(50% - 9px); left: 6px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .7; animation: cb-spin .8s linear infinite; } @keyframes cb-spin { to { transform: rotate(360deg); } } .flash { animation: cb-flash .35s; } @keyframes cb-flash { 50% { opacity: .5; } } #syslog, textarea#syslog { width: 100%; min-height: 60vh; padding: 14px; border-radius: var(--cb-radius); background: var(--cb-card); box-shadow: var(--cb-shadow); border: 0; font-size: 12px; line-height: 1.55; } .cbi-filebrowser { min-width: 260px; max-width: 100%; padding: 0; border-radius: var(--cb-radius-md); background: var(--cb-card); box-shadow: var(--cb-shadow); display: none; flex-direction: column; overflow: hidden; } .cbi-filebrowser.open { display: flex; } .cbi-filebrowser > * { padding: 6px 10px; border-bottom: .5px solid var(--cb-sep); } .cbi-filebrowser > ul { margin: 0; list-style: none; max-height: 300px; overflow: auto; padding: 4px; } .cbi-filebrowser > ul > li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 6px; } .cbi-filebrowser > ul > li:hover { background: var(--cb-hover); } .cbi-filebrowser > ul > li > div:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cbi-filebrowser > ul > li > div:last-child { flex: none; } .cbi-filebrowser > ul > li > div:last-child > button { min-height: 24px; padding: 0 8px; font-size: 12px; } .cbi-filebrowser .upload { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .cbi-filebrowser .upload > div { display: flex; flex: 1; gap: 6px; } .cbi-filebrowser .upload > div > input { flex: 1; } .cbi-filebrowser > div:last-child { border-bottom: 0; display: flex; justify-content: flex-end; gap: 6px; } #cbi-network-switch_vlan .td { text-align: center; } /* overview page (LuCI status widgets) */ [data-page="admin-status-overview"] .cbi-section > h3, [data-page="admin-status"] .cbi-section > h3, [data-page="admin"] .cbi-section > h3 { margin-top: 4px; } /* ========================================================================== 15. Dashboard ========================================================================== */ .cb-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: 6px 0 18px; font-variant-numeric: tabular-nums; } .cb-dash .span-12 { grid-column: span 12; } .cb-dash .span-8 { grid-column: span 8; } .cb-dash .span-6 { grid-column: span 6; } .cb-dash .span-4 { grid-column: span 4; } .cb-dash .span-3 { grid-column: span 3; } .cb-card { position: relative; min-width: 0; padding: 18px 20px; border-radius: var(--cb-radius); background: var(--cb-card); box-shadow: var(--cb-shadow); animation: cb-rise .4s var(--cb-ease); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-card { -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); } } @keyframes cb-rise { from { transform: translateY(6px); } to { transform: none; } } .cb-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; } .cb-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; } .cb-card-head h3 .cb-count { margin-left: 6px; color: var(--cb-text-2); font-weight: 500; } .cb-card-note { color: var(--cb-text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* traffic source picker in the card head: a C.listbox, like the language switch */ .cb-card-head .cb-traffic-select { flex: 0 1 auto; align-self: center; min-width: 0; max-width: 60%; } .cb-card-link { font-size: 13px; font-weight: 500; white-space: nowrap; } /* hero */ .cb-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 20px 22px; } .cb-hero-id { display: flex; align-items: center; gap: 14px; min-width: 0; } .cb-hero-icon { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 8px 16px rgba(79, 91, 234, .32)); } .cb-hero-icon :is(svg, img) { width: 100%; height: 100%; display: block; } .cb-hero-icon.custom { filter: none; } .cb-hero-icon img { object-fit: contain; border-radius: 12px; } .cb-hero-text { min-width: 0; } .cb-hero-title { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; } .cb-hero-sub { margin: 0; color: var(--cb-text-2); font-size: 13px; } .cb-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; } .cb-meta { display: flex; flex-direction: column; line-height: 1.3; } .cb-meta-label { color: var(--cb-text-2); font-size: 11.5px; } .cb-meta-val { font-size: 14px; font-weight: 600; } .cb-meta-val.cb-ip6 { display: block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cb-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; background: var(--cb-fill); color: var(--cb-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; } .cb-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; } .cb-pill.ok { background: var(--cb-green-t); color: var(--cb-green); } .cb-pill.ok::before { box-shadow: 0 0 0 0 currentColor; animation: cb-pulse 2s infinite; } .cb-pill.bad { background: var(--cb-red-t); color: var(--cb-red); } .cb-pill.off { background: var(--cb-fill); color: var(--cb-text-2); } .cb-pill.sm { height: 22px; padding: 0 9px; font-size: 11.5px; } @keyframes cb-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .55); } 70% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } } /* traffic */ .cb-rates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 36px; margin: -4px 0 8px; } .cb-rate { display: flex; flex-direction: column; line-height: 1.15; } .cb-rate-label { display: inline-flex; align-items: center; gap: 6px; color: var(--cb-text-2); font-size: 12.5px; font-weight: 500; } .cb-rate-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); } .cb-rate-val { font-size: 30px; font-weight: 700; letter-spacing: -.02em; } .cb-rate-val small { margin-left: 4px; color: var(--cb-text-2); font-size: 14px; font-weight: 600; letter-spacing: 0; } .cb-totals { margin-left: auto; text-align: right; color: var(--cb-text-2); font-size: 12px; line-height: 1.5; } .cb-totals b { color: var(--cb-text); font-weight: 600; } .cb-chart { position: relative; height: 190px; margin: 0 -4px; touch-action: pan-y; } .cb-area-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .cb-grid-line { stroke: var(--cb-sep); stroke-width: 1; shape-rendering: crispEdges; } .cb-grid-line.base { stroke: var(--cb-border); } .cb-axis { fill: var(--cb-text-3); font-size: 10.5px; font-family: var(--cb-font); } .cb-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .cb-dot { stroke: var(--cb-card); stroke-width: 2; } .cb-cross { stroke: var(--cb-text-3); stroke-width: 1; stroke-dasharray: 3 3; } .cb-chart-foot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--cb-text-3); font-size: 11px; } .cb-tip { position: absolute; z-index: 5; top: 8px; min-width: 140px; padding: 8px 10px; border-radius: 10px; background: var(--cb-popover); box-shadow: var(--cb-shadow-pop); font-size: 12px; line-height: 1.6; pointer-events: none; opacity: 0; transition: opacity .12s; } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-tip { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } } .cb-tip.show { opacity: 1; } .cb-tip-time { color: var(--cb-text-2); font-size: 11px; } .cb-tip-row { display: flex; align-items: center; gap: 6px; } .cb-tip-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); } .cb-tip-row b { margin-left: auto; padding-left: 12px; font-weight: 600; } /* resources */ .cb-rings { display: flex; justify-content: space-around; gap: 8px; margin: 2px 0 16px; } .cb-ring { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; min-width: 0; } .cb-ring svg { width: 88px; height: 88px; transform: rotate(-90deg); } .cb-ring-track { fill: none; stroke: var(--cb-fill); stroke-width: 10; } .cb-ring-bar { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s var(--cb-ease), stroke .3s; } .cb-ring-center { position: absolute; top: 0; left: 0; right: 0; height: 88px; display: flex; align-items: center; justify-content: center; } .cb-ring-center b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; } .cb-ring-center b small { font-size: 11px; font-weight: 600; color: var(--cb-text-2); margin-left: 1px; } .cb-ring-label { margin-top: 6px; font-size: 12.5px; font-weight: 600; } .cb-ring-sub { max-width: 100%; color: var(--cb-text-2); font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-membar-wrap { margin: 0 0 12px; } .cb-membar-title { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; } .cb-membar-title span { color: var(--cb-text-2); font-weight: 500; } .cb-membar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--cb-fill); } .cb-membar > i { display: block; height: 100%; background: var(--c); transition: flex-basis .8s var(--cb-ease); } .cb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--cb-text-2); font-size: 11.5px; } .cb-legend span { display: inline-flex; align-items: center; gap: 5px; } .cb-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); } .cb-kv { margin: 0; padding: 0; list-style: none; } .cb-kv li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: .5px solid var(--cb-sep); font-size: 13px; } .cb-kv li span:first-child { color: var(--cb-text-2); } .cb-kv li span:last-child { font-weight: 500; text-align: right; } /* stat tiles */ .cb-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; } .cb-tile-head { display: flex; align-items: center; gap: 8px; color: var(--cb-text-2); font-size: 13px; font-weight: 500; } .cb-ico { --c: var(--cb-gray); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: var(--c); background: var(--cb-fill); background: color-mix(in srgb, var(--c) 13%, transparent); } .cb-ico svg { width: 17px; height: 17px; } .cb-tile-head .cb-ico { width: 30px; height: 30px; } .cb-tile-val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .cb-tile-val small { margin-left: 3px; color: var(--cb-text-2); font-size: 13px; font-weight: 600; letter-spacing: 0; } .cb-tile-sub { color: var(--cb-text-2); font-size: 12px; min-height: 18px; } .cb-tile-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; } .cb-spark { flex: 1; max-width: 120px; height: 34px; } .cb-spark svg { display: block; width: 100%; height: 100%; overflow: visible; } .cb-mini-bar { height: 5px; border-radius: 3px; background: var(--cb-fill); overflow: hidden; } .cb-mini-bar > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--c, var(--cb-teal)); transition: width .8s var(--cb-ease); } /* lists */ .cb-list { margin: 0 -8px; padding: 0; list-style: none; } .cb-list > li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; } .cb-list > li + li { box-shadow: 0 -.5px 0 var(--cb-sep); } .cb-list > li:hover { background: var(--cb-hover); box-shadow: none; } .cb-list > li:hover + li { box-shadow: none; } .cb-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; } .cb-list-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-list-sub { color: var(--cb-text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-list-aside { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; color: var(--cb-text-2); font-size: 12px; } .cb-mono { font-family: var(--cb-mono); font-size: 12px; letter-spacing: -.01em; } .cb-empty { padding: 26px 0 18px; text-align: center; color: var(--cb-text-2); font-size: 13px; } .cb-avatar { --c: var(--cb-blue); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; } .cb-avatar svg { width: 18px; height: 18px; } /* brand avatars */ .cb-avatar.cb-avatar-brand { color: var(--f, #fff); } .cb-avatar.cb-avatar-brand.inv { background-color: var(--cb-text); color: var(--cb-card); } .cb-avatar .cb-logo { width: 17px; height: 17px; fill: currentColor; } .cb-avatar b { font-size: 15px; font-weight: 700; line-height: 1; text-transform: none; } .cb-avatar.cb-type { background: var(--cb-fill); background-image: none; color: var(--cb-text-2); } /* the same avatar, smaller, beside hostnames in LuCI's lease tables */ .cb-host { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; vertical-align: middle; } .cb-host-name { min-width: 0; overflow-wrap: anywhere; } .cb-host > .cb-avatar { width: 26px; height: 26px; font-size: 12px; } .cb-host > .cb-avatar svg { width: 15px; height: 15px; } .cb-host > .cb-avatar .cb-logo { width: 14px; height: 14px; } .cb-host > .cb-avatar b { font-size: 12px; } .cb-kind { color: var(--cb-text-2); } .cb-kind::after { content: " · "; } .cb-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; background: var(--cb-fill); color: var(--cb-text-2); font-size: 10.5px; font-weight: 600; line-height: 17px; vertical-align: 1px; cursor: help; } .cb-tag-wifi { background: var(--cb-fill); background: color-mix(in srgb, var(--cb-blue) 13%, transparent); color: var(--cb-blue); cursor: default; white-space: nowrap; } .cb-tag-wifi svg { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; } .cb-subhead { margin: 18px 0 6px; color: var(--cb-text-2); font-size: 12px; font-weight: 600; } .cb-subhead:first-of-type { margin-top: 0; } .cb-more { display: block; width: 100%; margin: 8px 0 0; padding: 8px; border: 0; border-radius: 9px; background: var(--cb-fill-2); color: var(--cb-accent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; } .cb-more:hover { background: var(--cb-fill); } /* details toggle below dashboard */ .cb-details-bar { display: flex; justify-content: center; margin: 2px 0 18px; } .cb-details-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--cb-fill); color: var(--cb-text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; } .cb-details-btn:hover { filter: brightness(.97); } .cb-details-btn svg { width: 14px; height: 14px; transition: transform .2s var(--cb-ease); } .cb-show-details .cb-details-btn svg { transform: rotate(180deg); } body.cb-has-dash:not(.cb-show-details) #view, body.cb-has-dash:not(.cb-show-details) #maincontent > .includes { display: none; } /* newer LuCI renders the page

outside #view; the hero card replaces it */ body.cb-has-dash #maincontent > h2 { display: none; } /* ========================================================================== 16. Responsive ========================================================================== */ /* wide screens: pages that profit from width (the dashboard grid, tables) grow in steps; plain forms keep a readable 1240px */ @media (min-width: 1800px) { :root { --cb-content-wide: 1480px; } } @media (min-width: 2300px) { :root { --cb-content-wide: 1720px; } } body.cb-has-dash, body:has(#maincontent .table) { --cb-content-max: var(--cb-content-wide); } /* a wide devices card lays its list out in two columns */ .cb-clients { container-type: inline-size; } @container (min-width: 880px) { .cb-clients .cb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .cb-clients .cb-list > li:nth-child(2) { box-shadow: none; } .cb-clients .cb-list > li:hover + li { box-shadow: 0 -.5px 0 var(--cb-sep); } .cb-clients .cb-list > li:hover + li:nth-child(2) { box-shadow: none; } } /* columns too narrow for the MAC next to the name: keep the name readable */ @container (min-width: 880px) and (max-width: 1099px) { .cb-clients .cb-list .cb-hide-sm { display: none; } .cb-clients .cb-tag-wifi .cb-tag-text { display: none; } .cb-clients .cb-device-source { display: block; } } @media (max-width: 1180px) { .cb-dash .span-8, .cb-dash .span-4 { grid-column: span 12; } .cb-dash .span-3 { grid-column: span 6; } .cb-resources .cb-res-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; } .cb-resources .cb-rings { margin-bottom: 0; } } @media (max-width: 1023px) { .cb-sidebar { transform: translateX(calc(-100% - var(--cb-gutter) * 2)); } body.cb-nav-open .cb-sidebar { transform: none; } .cb-collapse { display: none; } .cb-scrim { display: block; position: fixed; z-index: 250; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transition: opacity .25s var(--cb-ease), visibility .25s; } body.cb-nav-open .cb-scrim { opacity: 1; visibility: visible; } .cb-main { margin-left: 0; } .cb-burger { display: inline-block; } .cb-toolbar { padding: 8px 16px; padding-left: max(16px, env(safe-area-inset-left)); } .cb-content { padding: 10px 16px 24px; } .cb-footer { padding: 8px 16px 24px; } } @media (max-width: 760px) { .cb-resources .cb-res-body { display: block; } .cb-resources .cb-rings { margin-bottom: 16px; } .cb-dash { gap: 12px; } .cb-card { padding: 16px; } .cb-hero { padding: 18px 16px; } /* hero meta becomes a tidy list: status pill on its own row, then label/value rows — no more crowding next to the badge */ .cb-hero-meta { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; } .cb-hero-meta > .cb-pill { justify-self: start; margin: 0 0 12px; } .cb-hero-meta .cb-meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 0; border-top: .5px solid var(--cb-sep); } .cb-hero-meta .cb-meta-label { flex: none; white-space: nowrap; } .cb-hero-meta .cb-meta-val { text-align: right; } .cb-rate-val { font-size: 24px; } .cb-chart { height: 160px; } .cb-totals { margin-left: 0; text-align: left; flex-basis: 100%; } .cb-ring svg { width: 74px; height: 74px; } .cb-ring-center { height: 74px; } .cb-ring-center b { font-size: 16px; } .cb-tile-val { font-size: 24px; } .cb-list .cb-hide-sm { display: none; } /* keep device names readable: Wi‑Fi tag shrinks to its icon (details stay in the tooltip) */ .cb-tag-wifi .cb-tag-text { display: none; } .cb-tag-wifi svg { margin-right: 0; } /* source/lease text gets its own line so badges cannot crowd out the name */ .cb-clients .cb-device-source { display: block; } .cb-clients .cb-list-aside { max-width: 55%; } #view > h2, .cbi-map > h2, h2[name="content"] { font-size: 24px; } .cbi-section-node { padding: 2px 14px; } .cbi-value { flex-direction: column; gap: 6px; padding: 12px 0; } .cbi-value-title, .cbi-value label.cbi-value-title { flex: none; padding-top: 0; } .cbi-value-field { flex: none; width: 100%; } /* flag values (switches) stay on one row: title left, switch right; the optional description (rendered inside the field) drops below the row */ .cbi-value[data-widget="CBI.FlagValue"] { flex-direction: row; align-items: center; } .cbi-value[data-widget="CBI.FlagValue"] > .cbi-value-title { flex: 1 1 0; min-width: 0; } .cbi-value[data-widget="CBI.FlagValue"] > .cbi-value-field { display: contents; } .cbi-value[data-widget="CBI.FlagValue"] .cbi-value-description { flex: 1 1 100%; margin-top: 0; } /* package manager (luci-app-package-manager): input + button on one line */ .controls .control-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .controls .control-group > input { flex: 1 1 12em; width: auto; min-width: 0; } .controls .control-group > .btn { flex: 0 0 auto; } input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])), textarea, select, .cbi-select, .cbi-dropdown:not(.btn):not(.cbi-button), .cbi-dynlist { width: 100%; } .tabs, .cbi-tabmenu { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar, .cbi-tabmenu::-webkit-scrollbar { display: none; } .tabs > li, .cbi-tabmenu > li { flex: none; } .cbi-page-actions { bottom: max(8px, env(safe-area-inset-bottom)); } /* tables become stacked cards (uses LuCI's data-title attributes) */ .table { display: flex; flex-direction: column; overflow: visible; } .table .tr { display: flex; flex-wrap: wrap; align-items: flex-start; padding: 8px 4px; border-top: .5px solid var(--cb-sep); } .table .tr:first-child, .table .tr.table-titles + .tr, .table .tr.cbi-section-table-titles + .tr { border-top: 0; } .table .th, .table .td, .table .tr::before { display: block; flex: 1 1 50%; min-width: 0; padding: 4px 10px; border-top: 0 !important; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; } .table .td.cbi-dropdown-open { overflow: visible; } .table .tr:hover > .td { background: transparent !important; } .tr.table-titles, .cbi-section-table-titles, .cbi-section-table-descr { display: none !important; } .tr[data-title]::before { flex: 1 1 100%; font-size: 15px; font-weight: 600; padding-bottom: 6px; } .td[data-title]::before { content: attr(data-title); display: block; margin-bottom: 2px; color: var(--cb-text-2); font-size: 11.5px; font-weight: 600; white-space: pre-line; } .td.cbi-value-field { flex-basis: 100%; } .td.cbi-value-field[data-widget="CBI.DummyValue"], .td.cbi-value-field[data-widget="CBI.Button"], .td.cbi-value-field[data-widget="CBI.FlagValue"], .td.cbi-value-field[data-widget="dvalue"], .td.cbi-value-field[data-widget="button"], .td.cbi-value-field[data-widget="fvalue"] { flex-basis: 50%; text-align: left; } /* data cells never share a wrapped row with button cells (e.g. Nikki's status table: the core state is a readout, not a button) */ .tr:has(> .td[data-widget="CBI.ButtonValue"]) > .td.cbi-value-field:not([data-widget="CBI.ButtonValue"]) { flex-basis: 100%; } /* button cells share one row when they fit (Nikki's four actions), and wrap gracefully when the labels are too long for the screen; margin-left matches the field inset above so the row aligns */ .td.cbi-value-field[data-widget="CBI.ButtonValue"] { flex: 1 0 auto; width: auto; min-width: 0; padding-left: 0; padding-right: 0; margin-left: 10px; } .td.cbi-section-actions { flex-basis: 100%; width: auto; padding-top: 8px; } .td.cbi-section-actions > * { justify-content: flex-start; flex-wrap: wrap; gap: 4px; } /* tighter action buttons so short button sets fit on one row */ .td.cbi-section-actions .btn, .td.cbi-section-actions .cbi-button { min-height: 28px; padding: 3px 9px; font-size: 12.5px; } /* stacked-table button cells keep the regular button size; only the horizontal padding is trimmed so four actions fit one row */ .td.cbi-value-field[data-widget="CBI.ButtonValue"] .cbi-button { padding-left: 8px; padding-right: 8px; } .tr.placeholder > .td { position: static; } .col-1 { flex: 1 1 30px !important; } .col-2 { flex: 2 2 60px !important; } .col-3 { flex: 3 3 90px !important; } .col-4 { flex: 4 4 120px !important; } .col-5 { flex: 5 5 150px !important; } .col-6 { flex: 6 6 180px !important; } .col-7 { flex: 7 7 210px !important; } .col-8 { flex: 8 8 240px !important; } .col-9 { flex: 9 9 270px !important; } .col-10 { flex: 10 10 300px !important; } .hide-sm, .hide-xs { display: none !important; } .modal { width: 94%; margin-top: 6vh; padding: 18px; } } @media (max-width: 480px) { .cb-dash .span-3 { grid-column: span 6; } .cb-tile { padding: 14px; } .cb-tile-val { font-size: 22px; } .cb-spark { display: none; } .cb-hero-title { font-size: 19px; } .hide-xs { display: none !important; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } } /* ========================================================================== 17. Carbon theme settings page ========================================================================== */ .cb-update [hidden] { display: none !important; } .cb-update .cb-update-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; } .cb-update .cb-update-versions { display: flex; gap: 3rem; flex-wrap: wrap; margin: 1rem 0; } /* a form field with its button and status message on one centred line */ .cb-update .cb-update-field { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; } .cb-update .cb-update-field > input { flex: 0 1 22rem; min-width: 0; margin: 0; } .cb-update .cb-update-note { color: var(--cb-text-2); font-size: 13px; overflow-wrap: anywhere; } /* Release notes: scoped Markdown typography, with local overflow on phones. */ .cb-update .cb-release-notes { max-height: 32rem; min-width: 0; overflow: auto; overflow-wrap: anywhere; line-height: 1.75; padding: 2px 12px 2px 2px; color: var(--cb-text); } .cb-release-notes > :first-child { margin-top: 0; } .cb-release-notes > :last-child { margin-bottom: 0; } .cb-release-notes :is(h1, h2, h3, h4, h5, h6) { line-height: 1.4; margin: 1.25em 0 .6em; font-weight: 650; } .cb-release-notes h1 { font-size: 1.5rem; } .cb-release-notes h2 { font-size: 1.3rem; } .cb-release-notes h3 { font-size: 1.12rem; } .cb-release-notes :is(h4, h5, h6) { font-size: 1rem; } .cb-release-notes :is(p, ul, ol, blockquote, pre, table) { margin: .8em 0; } .cb-release-notes :is(ul, ol) { padding-inline-start: 1.6em; } .cb-release-notes ul { list-style: disc outside; } .cb-release-notes ol { list-style: decimal outside; } .cb-release-notes li { display: list-item; margin: .25em 0; } .cb-release-notes li > :is(ul, ol) { margin: .25em 0; } .cb-release-notes a { color: var(--cb-accent); text-decoration: underline; text-underline-offset: 3px; } .cb-release-notes blockquote { border-inline-start: 3px solid var(--cb-accent); padding: .1em 1em; color: var(--cb-text-2); } .cb-release-notes code { font-family: var(--cb-mono); font-size: .9em; background: var(--cb-fill); border-radius: 4px; padding: .15em .35em; } .cb-release-notes pre { max-width: 100%; overflow: auto; white-space: pre; padding: 14px; background: var(--cb-fill-2); border: 1px solid var(--cb-border); border-radius: var(--cb-radius-sm); } .cb-release-notes pre code { display: block; background: none; padding: 0; white-space: pre; overflow-wrap: normal; } .cb-release-notes table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; } .cb-release-notes :is(th, td) { border: 1px solid var(--cb-border-strong); padding: 8px 12px; text-align: start; } .cb-release-notes th { background: var(--cb-fill-2); font-weight: 600; } .cb-release-notes img { max-width: 100%; height: auto; border-radius: var(--cb-radius-sm); } .cb-release-notes hr { border: 0; border-top: 1px solid var(--cb-border); margin: 1.25em 0; } /* Logo */ .cb-logo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 4px; } .cb-logo-preview { width: 72px; height: 72px; flex: none; object-fit: contain; padding: 6px; border-radius: 18px; background: var(--cb-fill); border: 1px solid var(--cb-border); } .cb-logo-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-width: 0; } /* "?" toggletip next to a heading: hover / keyboard focus shows, click pins */ .cb-update h3 .cb-hint { margin-inline-start: 6px; } .cb-hint { position: relative; display: inline-flex; } .cb-hint-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--cb-fill); color: var(--cb-text-2); font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1; cursor: help; transition: background-color .15s var(--cb-ease), color .15s var(--cb-ease); } .cb-hint-btn:hover, .cb-hint.open .cb-hint-btn { background: var(--cb-accent-t); color: var(--cb-accent); } .cb-hint-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cb-focus); } .cb-hint-bubble { position: absolute; z-index: 50; top: calc(100% + 8px); left: -12px; width: max-content; max-width: min(24rem, calc(100vw - 48px)); padding: 10px 12px; border-radius: var(--cb-radius-md); border: 1px solid var(--cb-border); background: var(--cb-card-solid); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); /* the heading is a small uppercase label: reset its text styles */ font-size: 12.5px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-transform: none; white-space: normal; overflow-wrap: anywhere; opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: opacity .14s var(--cb-ease), transform .14s var(--cb-ease), visibility .14s; } /* bridge the gap so the pointer can move from the icon into the bubble */ .cb-hint-bubble::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } .cb-hint:hover .cb-hint-bubble, .cb-hint:has(.cb-hint-btn:focus-visible) .cb-hint-bubble, .cb-hint.open .cb-hint-bubble { opacity: 1; visibility: visible; transform: none; pointer-events: auto; } /* narrow screens: anchor the bubble to the heading so it spans the section */ .cb-update .cbi-section > h3 { position: relative; } @media (max-width: 600px) { .cb-update h3 .cb-hint { position: static; } .cb-update h3 .cb-hint-bubble { left: 0; right: 0; width: auto; max-width: none; } } @media (prefers-reduced-motion: reduce) { .cb-hint-bubble { transition: none; } } /* ========================================================================== 18. Third-party plugin adapters One section per plugin package, scoped by body[data-page] (admin--…, 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 , which Carbon sets like Argon does. ========================================================================== */ /* --- luci-app-diskman: partition bar under each disk --------------------- A bare 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 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; } /* ========================================================================== 19. Print ========================================================================== */ @media print { .cb-sidebar, .cb-toolbar, .cb-scrim, .cbi-page-actions, .cb-footer { display: none !important; } .cb-main { margin: 0; } body { background: #fff; } }