OXYGENHUB
# ba0a55bb5b3c oxygenhub / assets / report.css
2.0 KiB · CSS · last changed Reports: cards with a kind icon and health, frames that fit and share the hub's look 24 days ago source blame history raw
1
/* OxygenHub report stylesheet (oxygenhub#127). A report's page links it
2
   to look like the hub around it, with no fonts or colours of its own:
3
4
     <link rel="stylesheet" href="/static/report.css">
5
6
   It sets the hub's fonts (Barlow; IBM Plex Mono for code) and its colour
7
   tokens, following the hub's theme as the frame script passes it on:
8
   --bg, --panel, --soft, --ink, --mute, --line, --acc, --acc-2, --ok,
9
   --bad, --warn, and --m1..--m5 for chart series. The page's background
10
   is the hub's panel. */
11
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/static/fonts/Barlow-400.woff2) format("woff2"); }
12
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/static/fonts/Barlow-500.woff2) format("woff2"); }
13
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/static/fonts/Barlow-600.woff2) format("woff2"); }
14
:root {
15
  color-scheme: dark;
16
  --bg:#070c18; --panel:#0e1526; --soft:#141d33; --ink:#e6ecf7; --mute:#8592ad; --line:#1f2b47;
17
  --acc:#00e0f0; --acc-2:#0072ff; --ok:#5fe3a1; --bad:#ff5e7a; --warn:#b48cff;
18
  --m1:#00f0ff; --m2:#d6dcea; --m3:#5aa8ff; --m4:#0072ff; --m5:#8592ad;
19
}
20
:root[data-theme="light"] {
21
  color-scheme: light;
22
  --bg:#f4f7fc; --panel:#ffffff; --soft:#e9eef8; --ink:#1b2333; --mute:#5f6a81; --line:#d6dded;
23
  --acc:#0064e0; --acc-2:#00b8d4; --ok:#1a7850; --bad:#c62d47; --warn:#6b3fd1;
24
  --m1:#0090a8; --m2:#7a8290; --m3:#2f6fcf; --m4:#0055c0; --m5:#8a8f9c;
25
}
26
html { background: var(--panel); }
27
body { margin: 0; padding: 16px; background: var(--panel); color: var(--ink); font: 15px/1.45 "Barlow", system-ui, sans-serif; }
28
code, pre, kbd { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
29
a { color: var(--acc); }
30
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
31
table { border-collapse: collapse; }
32
th, td { border-bottom: 1px solid var(--line); padding: .35em .6em; text-align: left; }
33
th { color: var(--mute); font-weight: 500; }