Files
myrzx_bot/frontend/src/styles/tokens.css
T

88 lines
5.5 KiB
CSS

:root {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
font-size: 14px;
color: #17243b;
background: #f4f6fa;
color-scheme: light;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
--canvas: #f4f6fa;
--surface: #fff;
--surface-subtle: #f8fafc;
--text: #17243b;
--muted: #526079;
--border: #dbe2ec;
--border-strong: #bdc9d9;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--tint: #edf3ff;
--green: #187447;
--green-tint: #edf8f1;
--danger: #bf3540;
--danger-tint: #fff1f2;
--warning: #94630e;
--warning-tint: #fff8e7;
--sidebar: #162235;
--sidebar-text: #bac6d8;
--sidebar-width: 224px;
--topbar-height: 64px;
--control-height: 34px;
--radius: 8px;
--radius-sm: 5px;
--shadow: 0 1px 3px rgb(26 42 65 / 4%);
--shadow-overlay: 0 12px 36px rgb(16 32 56 / 18%);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; scroll-padding-top: 80px; }
body { margin: 0; min-width: 0; font-size: 14px; line-height: 1.6; }
#app { min-width: 0; min-height: 100dvh; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.4; font-weight: 650; letter-spacing: -.4px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 600; }
h3, h4 { font-size: 14px; line-height: 1.5; font-weight: 600; }
p { overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]) { min-height: var(--control-height); max-width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; line-height: 1.5; font-weight: 500; text-align: center; cursor: pointer; vertical-align: middle; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
button:hover:not(:disabled) { border-color: #9bacc4; background: #f2f5fa; }
button:active:not(:disabled) { background: #e8edf5; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select { padding: 5px 9px; min-width: 0; }
input[type="number"] { width: 112px; font-variant-numeric: tabular-nums; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 0; accent-color: var(--accent); vertical-align: middle; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #68768c; opacity: 1; }
textarea { padding: 8px 10px; min-width: 0; min-height: 88px; resize: vertical; }
input, textarea { caret-color: var(--accent); }
select { overflow: hidden; text-overflow: ellipsis; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; scroll-margin-block: 12px; }
::selection { background: #dbe8ff; color: #153b7e; }
button.primary, a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled), a.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: #a32634; border-color: #e5b3b8; background: #fff; }
button.danger:hover:not(:disabled) { color: #932330; border-color: #cc7680; background: var(--danger-tint); }
.danger-text { color: #ae2d39; }
button.start-button, button.run-button { background: var(--green); border-color: var(--green); color: #fff; }
button.start-button:hover:not(:disabled), button.run-button:hover:not(:disabled) { background: #135d39; border-color: #135d39; }
button.stop-button, button.run-button.running { background: var(--danger); border-color: var(--danger); color: #fff; }
button.stop-button:hover:not(:disabled), button.run-button.running:hover:not(:disabled) { background: #a72b36; border-color: #a72b36; }
button.start-outline { color: var(--green); border-color: #a9cfb9; }
button.start-outline:hover:not(:disabled) { background: var(--green-tint); border-color: var(--green); }
button.stop-outline { color: var(--danger); border-color: #e5b3b8; }
button.stop-outline:hover:not(:disabled) { background: var(--danger-tint); border-color: var(--danger); }
button.text-button { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 5px; }
button.text-button:hover:not(:disabled) { background: var(--tint); border-color: transparent; }
button.text-button.danger-text { color: var(--danger); }
button.small, button.compact, .small, .compact { min-height: 34px; padding: 4px 9px; font-size: 13px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.icon-button { width: 34px; height: 34px; padding: 6px; flex: 0 0 34px; }
.muted { color: var(--muted); }
.error-text { color: var(--danger); white-space: pre-wrap; overflow-wrap: anywhere; }
.spacer, .flex-spacer { flex: 1 1 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}