Repository navigation
Expand file tree
/
Copy pathsite.css
More file actions
95 lines (92 loc) · 6.69 KB
/
Copy pathsite.css
File metadata and controls
95 lines (92 loc) · 6.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* Shared by every page of codelightjs.github.io: colours, header, footer and page layout. */
:root{
--bg:#ffffff;--surface:#f6f8fa;--border:#d0d7de;--text:#1f2328;--muted:#59636e;--accent:#cf222e;--accent-2:#953800;
--user:#ddf4ff;--good:#1a7f37;--radius:12px;--header-bg:rgba(255,255,255,.86);
font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
--bg:#010409;--surface:#0d1117;--border:#30363d;--text:#e6edf3;--muted:#9198a1;--accent:#ff7b72;--accent-2:#ffa657;--user:#0c2d6b;--good:#3fb950;--header-bg:rgba(1,4,9,.82);
}}
:root[data-theme="dark"]{--bg:#010409;--surface:#0d1117;--border:#30363d;--text:#e6edf3;--muted:#9198a1;--accent:#ff7b72;--accent-2:#ffa657;--user:#0c2d6b;--good:#3fb950;--header-bg:rgba(1,4,9,.82)}
*{box-sizing:border-box}
html{scroll-padding-top:76px}
body{margin:0;background:var(--bg);color:var(--text);line-height:1.55}
a{color:inherit}
.wrap{max-width:980px;margin:0 auto;padding:0 16px}
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:7px 12px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--accent);color:#fff;padding:8px 12px;border-radius:8px}
.skip:focus{left:12px}
/* ── Header ── */
.site-header{position:sticky;top:0;z-index:50;background:var(--header-bg);backdrop-filter:saturate(1.6) blur(10px);-webkit-backdrop-filter:saturate(1.6) blur(10px);border-bottom:1px solid var(--border)}
.site-header .wrap{display:flex;align-items:center;gap:18px;height:60px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;text-decoration:none;flex:none}
.brand b{color:var(--accent)}
.brand svg{flex:none}
.version{font-size:11.5px;font-weight:600;color:var(--muted);border:1px solid var(--border);border-radius:999px;padding:1px 7px;margin-left:2px}
.site-nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.site-nav a{font-size:14.5px;color:var(--muted);text-decoration:none;padding:7px 10px;border-radius:8px}
.site-nav a:hover{color:var(--text);background:var(--surface)}
.site-nav a[aria-current="page"]{color:var(--text);font-weight:600}
.header-actions{display:flex;align-items:center;gap:8px;flex:none}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer;padding:0;font:inherit}
.icon-btn:hover{border-color:var(--muted)}
.icon-btn svg{width:18px;height:18px}
.menu-btn{display:none}
.gh{display:inline-flex;align-items:center;gap:7px}
.gh svg{width:17px;height:17px}
@media (max-width:860px){
.menu-btn{display:inline-grid}
.site-nav{display:none;position:absolute;left:0;right:0;top:60px;flex-direction:column;align-items:stretch;gap:0;background:var(--bg);border-bottom:1px solid var(--border);padding:8px 16px 14px;margin:0}
.site-nav a{padding:11px 8px;font-size:16px;border-radius:6px}
.site-header.open .site-nav{display:flex}
.header-actions{margin-left:auto}
}
@media (max-width:420px){.gh span{display:none}.version{display:none}}
/* ── Footer ── */
.site-footer{margin-top:64px;border-top:1px solid var(--border);background:var(--surface)}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:28px;padding:40px 0 28px}
.footer-grid h2{font-size:13px;font-weight:600;margin:0 0 12px;color:var(--text)}
.footer-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-grid li a{color:var(--muted);text-decoration:none;font-size:14px}
.footer-grid li a:hover{color:var(--text);text-decoration:underline}
.footer-about p{color:var(--muted);font-size:14px;margin:12px 0 14px;max-width:34ch}
.footer-install{display:inline-flex;align-items:center;gap:8px;font:13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border:1px solid var(--border);border-radius:8px;padding:9px 12px;background:var(--bg)}
.footer-install::before{content:"$";color:var(--muted)}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding:16px 0 28px;border-top:1px solid var(--border);color:var(--muted);font-size:13px}
.footer-bottom a{color:var(--muted)}
@media (max-width:760px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-about{grid-column:1/-1}}
/* ── Inner pages ── */
.page-hero{padding:48px 0 12px;text-align:center}
.page-hero h1{font-size:clamp(28px,4.4vw,40px);line-height:1.15;margin:0 0 12px;letter-spacing:-.02em;text-wrap:balance}
.page-hero h1 span{color:var(--accent)}
.page-hero p{font-size:18px;color:var(--muted);max-width:720px;margin:0 auto;text-wrap:balance}
.section{padding:36px 0 0}
.section h2{font-size:24px;margin:0 0 10px;letter-spacing:-.01em}
.section h3{font-size:17px;margin:22px 0 8px}
.section p,.section li{color:var(--muted);font-size:16px}
.section p b,.section li b{color:var(--text)}
.section .lead{font-size:17px;color:var(--muted);margin:0 0 16px;max-width:760px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:16px 18px}
.card h3{margin:0 0 6px;font-size:16px;color:var(--text)}
.card p{margin:0;font-size:14.5px}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);margin-top:14px}
.table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:560px}
.table th,.table td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:top}
.table thead th{background:var(--surface);font-weight:600;white-space:nowrap}
.table tbody tr:last-child td{border-bottom:0}
.table td:first-child{font-weight:500;color:var(--text)}
.table .us{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.yes{color:var(--good);font-weight:600}
.no{color:var(--muted)}
.part{color:var(--accent-2);font-weight:600}
.meter{height:8px;border-radius:4px;background:var(--muted);opacity:.5;margin-top:6px}
.meter.us{background:var(--accent);opacity:1}
.cta-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:26px 0 0}
.note{color:var(--muted);font-size:14px;margin-top:10px}
.section :not(pre)>code{background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:1px 5px;font-size:.88em}
@media (max-width:760px){.cards,.cards.two{grid-template-columns:minmax(0,1fr)}}