SPB Git

spb/akos

Public
12.1 KB · 103 lines css
1:root {2  color-scheme: light;3  --bg: #f4f4f2; --surface: #fcfcfb; --surface-2: #ededea; --border: #d9d8d3; --text: #0b0b0b; --text-2: #52514e; --muted: #7a7974;4  --accent: #2a78d6; --accent-ink: #ffffff; --focus: #2a78d6;5  --good: #008300; --warn: #c98500; --serious: #d95926; --critical: #c7302f;6  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;7  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06);8  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;9  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;10}11@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { color-scheme: dark; --bg: #121211; --surface: #1a1a19; --surface-2: #252524; --border: #343431; --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --accent: #3987e5; --good: #2fb344; --warn: #e0a023; --serious: #e36f3d; --critical: #e66767; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --shadow: none; } }12:root[data-theme="dark"] { color-scheme: dark; --bg: #121211; --surface: #1a1a19; --surface-2: #252524; --border: #343431; --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --accent: #3987e5; --good: #2fb344; --warn: #e0a023; --serious: #e36f3d; --critical: #e66767; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --shadow: none; }1314* { box-sizing: border-box; }15html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }16a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }17code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }18pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow: auto; max-height: 70vh; white-space: pre-wrap; word-break: break-word; margin: 0; }19h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 18px 0 8px; } h3 { font-size: 14px; margin: 12px 0 6px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }20p { margin: 6px 0; }21:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }22button, input, select, textarea { font: inherit; color: inherit; }23button { cursor: pointer; }24.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 38px; }25.btn:hover { background: var(--surface-2); } .btn:disabled { opacity: .55; cursor: not-allowed; }26.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .btn.primary:hover { filter: brightness(1.08); }27.btn.danger { border-color: var(--critical); color: var(--critical); }28.btn.sm { padding: 4px 9px; min-height: 30px; font-size: 13px; }29input, select, textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px; }30textarea { min-height: 80px; font-family: var(--mono); font-size: 12.5px; }31label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }32.field { margin-bottom: 10px; }33.form-grid { display: grid; grid-template-columns: 1fr; gap: 10px 14px; } @media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: span 2; } }34.hint { font-size: 12px; color: var(--muted); }3536/* layout */37.app { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }38.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--border); }39.topbar .brand { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }40.topbar form { flex: 1; display: flex; } .topbar input { min-height: 36px; }41.iconbtn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }42.body { display: grid; grid-template-columns: 1fr; }43.sidebar { display: none; }44.drawer { position: fixed; inset: 0; z-index: 30; display: none; } .drawer.open { display: block; }45.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }46.drawer nav { position: absolute; top: 0; left: 0; bottom: 0; width: min(82vw, 300px); background: var(--surface); padding: 14px; overflow: auto; box-shadow: 2px 0 12px rgba(0,0,0,.2); }47.nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text); } .nav a:hover { background: var(--surface-2); text-decoration: none; } .nav a.active { background: var(--accent); color: var(--accent-ink); }48.nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 10px 4px; }49.main { padding: 14px 12px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }50@media (min-width: 1024px) {51  .body { grid-template-columns: 240px 1fr; }52  .sidebar { display: block; position: sticky; top: 55px; height: calc(100vh - 55px); overflow: auto; border-right: 1px solid var(--border); padding: 12px; background: var(--surface); }53  .hamburger { display: none; }54  .main { padding: 20px 24px 60px; }55}56.userbox { font-size: 12px; color: var(--text-2); display: none; } @media (min-width: 720px) { .userbox { display: block; } }5758/* components */59.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }60.card.tight { padding: 10px 12px; }61.grid { display: grid; gap: 12px; grid-template-columns: 1fr; } @media (min-width: 720px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1100px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }62.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); } @media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } }63.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }64.tile .k { font-size: 12px; color: var(--text-2); } .tile .v { font-size: 26px; font-weight: 600; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }65.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); white-space: nowrap; }66.badge.good { color: var(--good); border-color: var(--good); background: transparent; } .badge.warn { color: var(--warn); border-color: var(--warn); background: transparent; } .badge.serious { color: var(--serious); border-color: var(--serious); background: transparent; } .badge.critical { color: var(--critical); border-color: var(--critical); background: transparent; } .badge.accent { color: var(--accent); border-color: var(--accent); background: transparent; }67.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .row.between { justify-content: space-between; }68.stack > * + * { margin-top: 8px; }69.alert { border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; } .alert.error { border-color: var(--critical); color: var(--critical); } .alert.ok { border-color: var(--good); color: var(--good); } .alert.warn { border-color: var(--warn); }70.empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }71.loading { color: var(--muted); padding: 12px; }72.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13.5px; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; word-break: break-word; } @media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }73.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 12px; } .tabs button { border: 0; background: none; padding: 8px 10px; border-bottom: 2px solid transparent; color: var(--text-2); white-space: nowrap; } .tabs button.active { color: var(--text); border-bottom-color: var(--accent); }74.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .filters > * { flex: 1 1 140px; width: auto; }75.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }76details summary { cursor: pointer; }77.jsontree { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; } .jsontree ul { list-style: none; margin: 0; padding-left: 16px; } .jsontree .key { color: var(--s7); } .jsontree .str { color: var(--s3); } .jsontree .num { color: var(--s2); } .jsontree .lit { color: var(--muted); } .jsontree summary { list-style: none; } .jsontree summary::before { content: "▸ "; color: var(--muted); } .jsontree details[open] > summary::before { content: "▾ "; }7879/* responsive table */80.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }81.tbl th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px; border-bottom: 1px solid var(--border); }82.tbl td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }83.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }84.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }85@media (max-width: 719px) {86  .tbl thead { display: none; }87  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }88  .tbl tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; padding: 6px 8px; background: var(--surface); }89  .tbl td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 38% 1fr; gap: 8px; }90  .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 12px; }91  .tbl td.num { text-align: left; }92  .tbl td.wide { grid-template-columns: 1fr; }93}94.chart { width: 100%; height: auto; display: block; } .chart text { fill: var(--text-2); font-size: 11px; font-family: var(--font); } .chart .grid line { stroke: var(--border); stroke-width: 1; } .chart .axis { stroke: var(--border); }95.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin: 4px 0; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }96.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }97.graphwrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } .graph .node { cursor: pointer; } .graph .node rect { fill: var(--surface-2); stroke: var(--border); rx: 6; } .graph .node:hover rect { stroke: var(--accent); } .graph .node text { font-size: 11px; fill: var(--text); font-family: var(--font); } .graph .edge { stroke: var(--muted); stroke-width: 1.2; fill: none; opacity: .7; } .graph .col { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .05em; }98.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .login .card { width: 100%; max-width: 380px; }99.check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; } .check .ic { width: 18px; text-align: center; font-weight: 700; } .check.ok .ic { color: var(--good); } .check.bad .ic { color: var(--critical); }100.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 13px; }101.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }102.codebox { position: relative; } .codebox .copy { position: absolute; top: 6px; right: 6px; }103
Files · da58f809c01c422e65c786b05d6ffa3079c9feba
Menu

Theme