feat(webui): dark/light switch in the navbar (ui slice 1)
This commit is contained in:
1 parent
f12021c6d7
commit
545f77dd86
6 files changed
+57
-6
No files matched your search
@@ -108,3 +108,13 @@ body.signed-out #dashboard-summary,body.signed-out #dashboard-cards,body.signed-
|
||||
.cmd-right .processing-link{display:none}
|
||||
}
|
||||
@media(min-width:760px) and (max-width:1100px){.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}.kpi:nth-child(4){border-right:0}}
|
||||
|
||||
/* Appearance toggle shares the existing saved appearance setting. */
|
||||
.theme-switch{display:inline-flex;align-items:center;justify-content:center;width:56px;min-width:56px;height:44px;padding:0;border:0;border-radius:var(--r);background:transparent;color:var(--muted);cursor:pointer}
|
||||
.theme-switch:hover{background:var(--raised)}
|
||||
.theme-switch:focus-visible{outline:2px solid var(--action);outline-offset:2px}
|
||||
.theme-track{position:relative;display:flex;align-items:center;justify-content:space-between;width:42px;height:24px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--raised)}
|
||||
.theme-track svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
|
||||
.theme-thumb{position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--action);transition:transform .15s ease}
|
||||
.theme-switch[aria-checked="true"] .theme-thumb{transform:translateX(18px)}
|
||||
@media(max-width:759px){.theme-switch{width:48px;min-width:48px}.cmd-right #refresh{display:none}}
|
||||
Reference in new issue
Block a user