raz / site / style.css

107 lines · 6.2 KiB · raw · history · last change 38c95972

1:root {
2 --bg: #fbfaf7; --fg: #1b1b1a; --muted: #6b6a66; --line: #e2e0d9;
3 --accent: #b4401f; --code-bg: #f2f0ea; --out-bg: #1f2124; --out-fg: #d8dadc;
4 --kw: #8a2d86; --ty: #1c6c8c; --str: #3b7a2a; --com: #8b8a84; --num: #b4401f;
5}
6@media (prefers-color-scheme: dark) {
7 :root {
8 --bg: #17181a; --fg: #e6e4de; --muted: #9a988f; --line: #2d2f33;
9 --accent: #ee8a63; --code-bg: #202226; --out-bg: #0f1012; --out-fg: #cfd1d4;
10 --kw: #d291cf; --ty: #6cc1e2; --str: #9bd47f; --com: #7c7b75; --num: #ee8a63;
11 }
12}
13* { box-sizing: border-box; }
14html { -webkit-text-size-adjust: 100%; }
15body {
16 margin: 0; background: var(--bg); color: var(--fg);
17 font: 17px/1.6 Charter, "Bitstream Charter", Georgia, serif;
18}
19a { color: var(--accent); }
20header { border-bottom: 1px solid var(--line); }
21header nav, main, footer { max-width: 62rem; margin: 0 auto; padding: 0 16px; }
22header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 14px; padding-bottom: 14px;
23 font-family: system-ui, sans-serif; font-size: 15px; }
24header nav a { color: var(--fg); text-decoration: none; }
25header nav .mark { display: flex; align-items: center; gap: 8px; margin-right: 8px;
26 font: 700 20px ui-monospace, monospace; color: var(--accent); }
27header nav .mark img { display: block; }
28header nav a[aria-current] { border-bottom: 2px solid var(--accent); }
29main { padding-top: 28px; padding-bottom: 48px; }
30footer { color: var(--muted); font-size: 14px; padding-bottom: 32px; font-family: system-ui, sans-serif; }
31h1 { overflow-wrap: anywhere; font-size: 2.1rem; line-height: 1.2; margin: .2em 0 .5em; }
32h2 { font-size: 1.4rem; margin: 1.8em 0 .4em; }
33code, pre { font: 14.5px/1.5 ui-monospace, "DejaVu Sans Mono", Menlo, monospace; }
34code { background: var(--code-bg); padding: 1px 4px; border-radius: 3px; }
35pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
36pre code { background: none; padding: 0; }
37pre.code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 0 0 6px 6px; }
38.file { font: 12px ui-monospace, monospace; color: var(--muted); background: var(--code-bg);
39 border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0;
40 padding: 4px 14px; margin-top: 1.2em; }
41pre.output { background: var(--out-bg); color: var(--out-fg); border-radius: 6px; margin: 8px 0 1.2em; }
42pre.output::before { content: "output"; display: block; font: 11px system-ui, sans-serif;
43 text-transform: uppercase; letter-spacing: .08em; color: #8b8e93; margin-bottom: 6px; }
44pre .err { color: #ff9a85; }
45.kw { color: var(--kw); font-weight: 600; } .ty { color: var(--ty); }
46.string { color: var(--str); } .comment { color: var(--com); font-style: italic; }
47.number { color: var(--num); }
48
49/* the home page */
50.hero { padding: 24px 0 8px; }
51.hero h1 { font-size: 3.4rem; font-family: ui-monospace, monospace; color: var(--accent); margin: 0; }
52.hero .tag { font-size: 1.35rem; margin: .2em 0 1em; }
53.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; font-family: system-ui, sans-serif; }
54.btn { display: inline-block; padding: 9px 18px; border-radius: 6px; text-decoration: none;
55 border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 15px; }
56.btn.primary { background: var(--accent); color: var(--bg); }
57.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
58@media (min-width: 52rem) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
59.features { padding-left: 1.2em; } .features li { margin: .35em 0; }
60.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 1.4em 0; font-family: system-ui, sans-serif;
61 font-size: 15px; color: var(--muted); }
62.facts b { color: var(--fg); }
63
64/* the tour */
65.contents { max-width: 44rem; }
66.contents ol { padding-left: 1.6em; } .contents li { margin: .5em 0; }
67.contents li span { display: block; color: var(--muted); font-size: 15px; }
68.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
69@media (min-width: 56rem) { .tour { grid-template-columns: 14rem minmax(0, 1fr); gap: 40px; } }
70.tour aside { font-family: system-ui, sans-serif; font-size: 14px; }
71.tour aside h3 { margin: 1em 0 .2em; font-size: 12px; text-transform: uppercase;
72 letter-spacing: .08em; color: var(--muted); }
73.tour aside ol { margin: 0; padding-left: 1.9em; } .tour aside a { color: var(--fg); text-decoration: none; }
74.tour aside a[aria-current] { color: var(--accent); font-weight: 700; }
75@media (max-width: 55.99rem) { .tour aside { order: 2; border-top: 1px solid var(--line); } }
76.tour article { min-width: 0; }
77.kicker { font: 13px system-ui, sans-serif; color: var(--muted); text-transform: uppercase;
78 letter-spacing: .08em; margin: 0; }
79.tryit { color: var(--muted); font-size: 15px; }
80.pager { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 2em; padding-top: 14px;
81 border-top: 1px solid var(--line); font-family: system-ui, sans-serif; font-size: 15px; }
82.pager .next { margin-left: auto; font-weight: 700; }
83
84/* the report */
85.spec { max-width: 46rem; }
86.spec pre { background: var(--code-bg); border-left: 2px solid var(--line); white-space: pre-wrap; }
87.tour article table, .spec table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0; }
88.tour article td, .tour article th, .spec td, .tour article th, .spec th { border-bottom: 1px solid var(--line); padding: 5px 10px 5px 0;
89 text-align: left; vertical-align: top; }
90.tour article th, .spec th { border-bottom-width: 2px; }
91/* narrow screens: each row becomes a card, its cells labelled by column */
92@media (max-width: 39.99rem) {
93 .tour article table thead { display: none; }
94 .tour article table, .tour article tbody, .tour article tr, .tour article td { display: block; }
95 .tour article tr { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; margin: 0 0 10px; }
96 .tour article td { border: 0; padding: 3px 0; }
97 .spec table { display: block; overflow-x: auto; }
98 .tour article td::before { content: attr(data-label); display: block; font: 11px system-ui, sans-serif;
99 text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
100}
101@media (min-width: 40rem) { .spec td:first-child { white-space: nowrap; } }
102.spec nav#TOC ul { list-style: none; padding-left: 1em; }
103
104/* a shell session */
105pre.term::before { content: "terminal"; }
106pre .cmd { color: #8fd18f; }
107.sha code { font-size: 13px; word-break: break-all; }