SPB Git

Repository Public

styles.css 9.5 KB 109 lines css

1/**2 * =============================================================================3 * SP BOUCHER | SOURCE FILE4 * =============================================================================5 * Project      : MacLustr SMS Gateway6 * File         : dashboard/src/styles.css7 * Author       : Simon-Pierre Boucher | https://spboucher.ai8 * Contact      : admin@spboucher.ai9 * Copyright    : (c) 2026 Simon-Pierre Boucher10 * License      : None specified (no license file in this repository)11 * =============================================================================12 * END OF SP BOUCHER SOURCE HEADER13 * =============================================================================14 */1516:root {17  --bg: #0f1317; --panel: #161b21; --panel-2: #1b2128; --line: #2a323b; --text: #e9ece8; --muted: #8e99a3; --faint: #5d6871;18  --ok: #5fbf8f; --warn: #d9a441; --bad: #e0685c; --info: #7fa7c9; --accent: #5fbf8f;19  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;20}21@media (prefers-color-scheme: light) {22  :root { --bg: #f4f5f2; --panel: #ffffff; --panel-2: #f0f2ee; --line: #d9ddd6; --text: #171c20; --muted: #5b666f; --faint: #8b959c; --ok: #24805a; --warn: #9a6b0c; --bad: #b83a2e; --info: #2f6492; --accent: #24805a; }23}24* { box-sizing: border-box; }25html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); }26a { color: inherit; }27h1 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }28h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }29code, .mono { font-family: var(--mono); font-size: 12.5px; }30pre { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 8px 0; white-space: pre-wrap; word-break: break-word; }3132.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }33.side { border-right: 1px solid var(--line); padding: 18px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }34.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 600; }35.brand img { width: 28px; height: 28px; }36.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }37.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 13.5px; }38.nav a:hover { color: var(--text); background: var(--panel); }39.nav a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }40.nav .count { font-family: var(--mono); font-size: 11px; color: var(--warn); }41.side .foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--faint); }42.main { padding: 26px 34px 60px; min-width: 0; max-width: 1280px; }43.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }44.head p { margin: 4px 0 0; color: var(--muted); }45.banner { background: color-mix(in srgb, var(--bad) 16%, var(--panel)); border: 1px solid var(--bad); border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }46.banner.warn { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border-color: var(--warn); }4748.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }49.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }50.tile .k { color: var(--muted); font-size: 12.5px; }51.tile .v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }52.tile .s { color: var(--faint); font-size: 12px; margin-top: 2px; }53.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }54.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }55@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .main { padding: 18px 16px 50px; } }5657table { width: 100%; border-collapse: collapse; }58.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }59th { text-align: left; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }60td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }61tr:last-child td { border-bottom: 0; }62tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel-2); }63td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }64.empty { padding: 28px; text-align: center; color: var(--muted); }65.muted { color: var(--muted); } .faint { color: var(--faint); } .nowrap { white-space: nowrap; } .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }6667.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }68.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }69.badge { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }70.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }71.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }72.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }73.badge.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, transparent); }7475button, .btn { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }76button:hover, .btn:hover { border-color: var(--muted); }77button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #0c1210; font-weight: 600; }78button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }79button.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }80button.small { padding: 3px 8px; font-size: 12px; }81button:disabled { opacity: 0.5; cursor: default; }82input, select, textarea { font: inherit; font-size: 13.5px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; width: 100%; }83input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }84input[type=checkbox] { width: auto; margin-right: 6px; }85label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }86.field { margin-bottom: 12px; }87.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }88.row > .grow { flex: 1; min-width: 140px; }89.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .filters > * { width: auto; }90.err { color: var(--bad); margin: 8px 0; } .okmsg { color: var(--ok); margin: 8px 0; }91.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }9293.overlay { position: fixed; inset: 0; background: rgba(5, 8, 10, 0.6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; z-index: 20; }94.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; width: 100%; max-width: 560px; }95.modal.wide { max-width: 820px; }96.modal h3 { margin: 0 0 14px; font-size: 16px; }97.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }98.qr { background: #fff; padding: 12px; border-radius: 8px; width: 220px; height: 220px; } .qr svg { width: 100%; height: 100%; display: block; }99.code { font-family: var(--mono); font-size: 26px; letter-spacing: 0.08em; }100.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: grid; grid-template-columns: 96px 150px 1fr; gap: 10px; padding: 4px 0; font-size: 13px; }101.bubble { max-width: 72%; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin: 6px 0; white-space: pre-wrap; word-break: break-word; }102.bubble.out { margin-left: auto; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }103.bubble small { display: block; color: var(--faint); font-size: 11px; margin-top: 3px; }104.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); }105.bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-width: 3px; height: 100%; }106.bars .col i { display: block; background: var(--text); border-radius: 1px; } .bars .col i.in { background: var(--accent); } .bars .col i.ko { background: var(--bad); }107.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }108.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .center .panel { width: 100%; max-width: 400px; text-align: center; padding: 32px 28px; }109
Files main
Menu

Theme