-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
198 lines (167 loc) · 3.74 KB
/
Copy pathstyle.css
File metadata and controls
198 lines (167 loc) · 3.74 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
:root {
--bg: #fafaf9;
--fg: #1c1c1c;
--muted: #666;
/* Code block: slightly lighter than page. Output: slightly darker. */
--rust-bg: #ffffff;
--output-bg: #f2efe8;
--accent: #b25000;
--rule: #d8d4cc;
}
/* Dark vars. The .dark class is set by the inline <head> script
based on localStorage and OS preference; the same selector is used
by syntax.css to flip code-block colors. */
:root.dark {
--bg: #15181d;
--fg: #e8e8ea;
--muted: #9a9aa3;
--rust-bg: #2b303b;
--output-bg: #0d0f13;
--accent: #ff9c5a;
--rule: #2a2f37;
}
* { box-sizing: border-box; }
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
font-weight: 350;
background: var(--bg);
color: var(--fg);
line-height: 1.5;
margin: 0 auto;
padding: 2rem 1.5rem 4rem;
max-width: 1100px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
header h1 {
margin: 0;
font-family: "Commit Mono", "Recursive", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-variation-settings: "MONO" 1;
font-weight: 400;
}
header h1 .tagline {
font-family: "EB Garamond", Georgia, serif;
font-weight: 400;
font-variation-settings: normal;
color: var(--muted, inherit);
}
button.theme-toggle {
appearance: none;
background: transparent;
border: 1px solid var(--rule);
border-radius: 4px;
padding: 0.4rem 0.85rem;
color: var(--fg);
cursor: pointer;
font: inherit;
font-size: 0.875rem;
flex-shrink: 0;
}
button.theme-toggle:hover {
border-color: var(--accent);
color: var(--accent);
}
a { color: var(--accent); }
code, pre {
font-family: "Commit Mono", "Recursive", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-variation-settings: "MONO" 1;
font-size: 0.875rem;
}
nav.tabs {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin: 1rem 0 0;
border-bottom: 1px solid var(--rule);
}
nav.tabs.subtabs {
margin-top: 0.5rem;
font-size: 0.95rem;
}
/* Sub-tabs always render to keep the panel below at a stable y-position;
when the top tab isn't tracing-subscriber the row is invisible but
continues to occupy its layout space. */
nav.tabs.subtabs.inactive {
visibility: hidden;
pointer-events: none;
}
nav.tabs button {
appearance: none;
background: transparent;
border: 0;
border-bottom: 2px solid transparent;
padding: 0.5rem 0.9rem;
font: inherit;
color: var(--muted);
cursor: pointer;
margin-bottom: -1px;
}
nav.tabs button code {
font-size: 0.95em;
color: inherit;
}
nav.tabs button[aria-selected="true"] {
color: var(--fg);
border-bottom-color: var(--accent);
}
nav.tabs button:hover { color: var(--fg); }
nav.tabs .hint {
color: var(--muted);
font-size: 0.85em;
margin-left: 0.25rem;
}
.panels { margin-top: 1.25rem; }
article.cell {
margin: 0 0 1.5rem;
}
article.cell:last-child { margin-bottom: 0; }
.cell-label {
font-size: 0.95rem;
font-weight: 400;
margin: 0 0 0.5rem;
color: var(--fg);
}
.cell-label code { font-size: 0.95em; }
.pair {
display: flex;
flex-direction: column;
border-radius: 4px;
overflow: hidden;
border: 1px solid var(--rule);
}
.pair pre {
margin: 0;
padding: 0.75rem 1rem;
overflow-x: auto;
white-space: pre;
}
pre.rust {
background-color: var(--rust-bg);
color: var(--fg);
}
pre.output {
background-color: var(--output-bg);
color: var(--fg);
border-top: 1px solid var(--rule);
}
[hidden] { display: none !important; }
.site-footer {
margin-top: 3rem;
font-size: 0.875rem;
font-weight: 200;
color: var(--muted);
opacity: 0.3;
text-align: center;
}
.site-footer a {
color: var(--muted);
text-decoration: none;
}
.site-footer a:hover {
color: var(--accent);
text-decoration: underline;
}