-
Notifications
You must be signed in to change notification settings - Fork 236
Expand file tree
/
Copy pathcustom.css
More file actions
246 lines (214 loc) Β· 7.99 KB
/
custom.css
File metadata and controls
246 lines (214 loc) Β· 7.99 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
.sidebar-tree p.indented-block {
padding: var(--sidebar-item-spacing-vertical)
var(--sidebar-item-spacing-horizontal) 0
var(--sidebar-item-spacing-horizontal);
margin-bottom: 0;
}
.sidebar-tree p.indented-block span.indent {
margin-left: var(--sidebar-item-spacing-horizontal);
display: block;
}
.sidebar-tree p.indented-block .project-name {
font-size: var(--sidebar-item-font-size);
font-weight: bold;
margin-right: calc(var(--sidebar-item-spacing-horizontal) / 2.5);
}
#sidebar-projects:not(.ready) {
visibility: hidden;
}
.sidebar-tree .active {
font-weight: bold;
}
/* ββ Global heading refinements βββββββββββββββββββββββββββββ
* Biome-inspired scale: medium weight (500) throughout β size
* and spacing carry hierarchy, not boldness. H4-H6 add eyebrow
* treatment (uppercase, muted). `article` prefix overrides
* Furo's bare h1-h6 selectors.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
article h1 {
font-size: 1.8em;
font-weight: 500;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
}
article h2 {
font-size: 1.6em;
font-weight: 500;
margin-top: 2.5rem;
margin-bottom: 0.5rem;
}
article h3 {
font-size: 1.15em;
font-weight: 500;
margin-top: 1.5rem;
margin-bottom: 0.375rem;
}
article h4 {
font-size: 0.85em;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-foreground-secondary);
margin-top: 1rem;
margin-bottom: 0.25rem;
}
article h5 {
font-size: 0.8em;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-foreground-secondary);
}
article h6 {
font-size: 0.75em;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-foreground-secondary);
}
/* ββ Changelog heading extras βββββββββββββββββββββββββββββββ
* Vertical spacing separates consecutive version entries.
* Category headings (h3) are muted. Item headings (h4) are
* subtle. Targets #history section from CHANGES markdown.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* Spacing between consecutive version entries */
#history > section + section {
margin-top: 2.5rem;
}
/* Category headings β muted secondary color */
#history h3 {
color: var(--color-foreground-secondary);
margin-top: 1.25rem;
}
/* Item headings β subtle, same size as body */
#history h4 {
font-size: 1em;
margin-top: 1rem;
text-transform: none;
letter-spacing: normal;
color: inherit;
}
/* ββ Right-panel TOC refinements ββββββββββββββββββββββββββββ
* Adjust Furo's table-of-contents proportions for better
* readability. Inspired by Starlight defaults (Biome docs).
* Uses Furo CSS variable overrides where possible.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* TOC font sizes: override Furo defaults (75% β 87.5%) */
:root {
--toc-font-size: var(--font-size--small); /* 87.5% = 14px */
--toc-title-font-size: var(--font-size--small); /* 87.5% = 14px */
}
/* More generous line-height for wrapped TOC entries */
.toc-tree {
line-height: 1.4;
}
/* ββ Flexible right-panel TOC (inner-panel padding) βββββββββ
* Furo hardcodes .toc-drawer to width: 15em (SASS, compiled).
* min-width: 18em overrides it; long TOC entries wrap inside
* the box instead of blowing past the viewport.
*
* Padding lives on .toc-sticky (the inner panel), not on
* .toc-drawer (the outer aside). This matches Biome/Starlight
* where the aside defines dimensions and an inner wrapper
* (.right-sidebar-panel) controls content insets. The
* scrollbar sits naturally between content and viewport edge.
*
* Content area gets flex: 1 to absorb extra space on wide
* screens. At β€82em Furo collapses the TOC to position: fixed;
* override right offset so the drawer fully hides off-screen.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.toc-drawer {
min-width: 18em;
flex-shrink: 0;
padding-right: 0;
}
.toc-sticky {
padding-right: 1.5em;
}
.content {
width: auto;
max-width: 46em;
flex: 1 1 46em;
padding: 0 2em;
}
@media (max-width: 82em) {
.toc-drawer {
right: -18em;
}
}
/* ββ Body typography refinements ββββββββββββββββββββββββββββ
* Improve paragraph readability with wider line-height and
* sharper text rendering. Furo already sets font-smoothing.
*
* IBM Plex tracks slightly wide at default spacing; -0.01em
* tightens it to feel more natural (matches tony.sh/tony.nl).
* Kerning + ligatures polish AV/To pairs and fi/fl combos.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
body {
text-rendering: optimizeLegibility;
font-kerning: normal;
font-variant-ligatures: common-ligatures;
letter-spacing: -0.01em;
}
/* ββ Code block text rendering ββββββββββββββββββββββββββββ
* Monospace needs fixed-width columns: disable kerning,
* ligatures, and letter-spacing that body sets for prose.
* optimizeSpeed skips heuristics that can shift the grid.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
pre,
code,
kbd,
samp {
text-rendering: optimizeSpeed;
font-kerning: none;
font-variant-ligatures: none;
letter-spacing: normal;
}
article {
line-height: 1.6;
}
/* ββ Image layout shift prevention ββββββββββββββββββββββββ
* Reserve space for images before they load. Furo already
* sets max-width: 100%; height: auto on img. We add
* content-visibility and badge-specific height to prevent CLS.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
img {
content-visibility: auto;
}
/* Docutils emits :width:/:height: as inline CSS (style="width: Xpx;
* height: Ypx;") rather than HTML attributes. When Furo's
* max-width: 100% constrains width below the declared value,
* the fixed height causes distortion. height: auto + aspect-ratio
* lets the browser compute the correct height from the intrinsic
* ratio once loaded; before load, aspect-ratio reserves space
* at the intended proportion β preventing both CLS and distortion. */
article img[loading="lazy"] {
height: auto !important;
}
/* Per-image aspect ratios for CLS reservation before load */
img[src*="tmuxp-demo"] {
aspect-ratio: 888 / 589;
}
img[src*="tmuxp-shell"] {
aspect-ratio: 878 / 109;
}
img[src*="tmuxp-dev-screenshot"] {
aspect-ratio: 1030 / 605;
}
img[src*="shields.io"],
img[src*="badge.svg"],
img[src*="codecov.io"] {
height: 20px;
width: auto;
min-width: 60px;
border-radius: 3px;
background: var(--color-background-secondary);
}
/* ββ View Transitions (SPA navigation) ββββββββββββββββββββ
* Crossfade between pages during SPA navigation.
* Browsers without View Transitions API get instant swap.
* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 150ms;
}