56 lines
3.5 KiB
CSS
56 lines
3.5 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: Canvas; --fg: CanvasText; --border: ButtonBorder;
|
|
--hl: AccentColor; --hl-fg: AccentColorText;
|
|
--field: Field; --field-fg: FieldText;
|
|
--btn: ButtonFace; --btn-active: ButtonBorder; --accent: AccentColor;
|
|
font: 13px system-ui, sans-serif;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; padding: 8px; background: var(--bg); color: var(--fg); }
|
|
body.popup { width: 320px; }
|
|
body.dropdown { border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
|
|
section, form { display: flex; flex-direction: column; gap: 6px; }
|
|
[hidden] { display: none !important; }
|
|
.row { display: flex; gap: 6px; align-items: center; }
|
|
.row > input:not([type=checkbox]) { flex: 1; min-width: 0; }
|
|
.opts label, .row label { display: flex; align-items: center; gap: 3px; }
|
|
input:not([type=checkbox]), button {
|
|
font: inherit; color: var(--field-fg); background: var(--field);
|
|
border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px;
|
|
}
|
|
input[type=number] { width: 4.5em; }
|
|
button { background: var(--btn); color: var(--fg); cursor: pointer; }
|
|
button:active { background: var(--btn-active); }
|
|
button.primary { background: var(--accent); color: var(--hl-fg); border-color: transparent; }
|
|
input:focus-visible, button:focus-visible, li:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
|
|
.items { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
|
|
.items li { padding: 5px 6px; border-radius: 4px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.items li:hover, .items li:focus, .items li.sel { background: var(--hl); color: var(--hl-fg); }
|
|
.items li.sep { height: 0; padding: 0; margin: 4px 0; border-top: 1px solid var(--border); background: none !important; cursor: default; }
|
|
.items li.acct { display: flex; flex-direction: column; }
|
|
.items li.row { cursor: default; }
|
|
.items li.row:hover { background: none; color: inherit; }
|
|
.items li.row button { padding: 2px 6px; }
|
|
.dim { opacity: .65; font-size: 12px; }
|
|
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
.mono { font-family: ui-monospace, monospace; user-select: all; word-break: break-all; }
|
|
details summary { cursor: pointer; padding: 2px 0; }
|
|
details[open] { display: flex; flex-direction: column; gap: 6px; }
|
|
dialog { background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 8px; width: 340px; }
|
|
body.manager { padding: 0; height: 100vh; display: flex; flex-direction: column; font-size: 14px; }
|
|
.topbar { padding: 8px 16px; border-bottom: 1px solid var(--border); }
|
|
main { flex: 1; display: flex; min-height: 0; }
|
|
aside { width: 300px; padding: 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
|
|
aside .items { max-height: none; flex: 1; }
|
|
aside .items li { display: flex; flex-direction: column; }
|
|
#view, #editor { padding: 16px 32px; max-width: 560px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
|
|
#view > label { margin-top: 10px; opacity: .65; font-size: 12px; }
|
|
#editor label:not(.opts label) { display: flex; flex-direction: column; gap: 3px; }
|
|
h2 { margin: 0 0 6px; font-weight: 600; }
|
|
a { color: var(--accent); }
|
|
.fp { display: flex; gap: 2px; min-width: 66px; }
|
|
.fp span { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; color: #fff; }
|
|
output { font-family: ui-monospace, monospace; word-break: break-all; user-select: all; }
|
|
output.err { font-family: inherit; color: #d70022; user-select: none; }
|