Skip to content

Commit 643e215

Browse files
committed
style(css): Format with biome (tabs, lowercase hex, leading zeros)
1 parent 2133a0d commit 643e215

2 files changed

Lines changed: 95 additions & 94 deletions

File tree

docs/_static/css/argparse-highlight.css

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
.cli-command,
3030
.cli-default,
3131
.cli-choice {
32-
font-family: var(--font-stack--monospace);
32+
font-family: var(--font-stack--monospace);
3333
}
3434

3535
/*
@@ -39,7 +39,7 @@
3939
*/
4040
.cli-option-long,
4141
.cli-option-short {
42-
color: #56B6C2;
42+
color: #56b6c2;
4343
}
4444

4545
/*
@@ -49,8 +49,8 @@
4949
* Yellow/amber to indicate "replace me" - distinct from flags (teal).
5050
*/
5151
.cli-metavar {
52-
color: #E5C07B;
53-
font-style: italic;
52+
color: #e5c07b;
53+
font-style: italic;
5454
}
5555

5656
/*
@@ -62,11 +62,11 @@
6262
*/
6363
.cli-command,
6464
.cli-choice {
65-
color: #98C379;
65+
color: #98c379;
6666
}
6767

6868
.cli-command {
69-
font-weight: bold;
69+
font-weight: bold;
7070
}
7171

7272
/*
@@ -76,8 +76,8 @@
7676
* Subtle styling to not distract from options.
7777
*/
7878
.cli-default {
79-
color: #CCCED4;
80-
font-style: italic;
79+
color: #ccced4;
80+
font-style: italic;
8181
}
8282

8383
/* ==========================================================================
@@ -93,55 +93,55 @@
9393
.highlight-argparse .gh,
9494
.highlight-argparse-usage .gh,
9595
.highlight-argparse-help .gh {
96-
color: #61AFEF;
97-
font-weight: bold;
96+
color: #61afef;
97+
font-weight: bold;
9898
}
9999

100100
/* Section headers like "positional arguments:", "options:" - neutral bright */
101101
.highlight-argparse .gs,
102102
.highlight-argparse-help .gs {
103-
color: #E5E5E5;
104-
font-weight: bold;
103+
color: #e5e5e5;
104+
font-weight: bold;
105105
}
106106

107107
/* Long options --foo - teal */
108108
.highlight-argparse .nt,
109109
.highlight-argparse-usage .nt,
110110
.highlight-argparse-help .nt {
111-
color: #56B6C2;
112-
font-weight: normal;
111+
color: #56b6c2;
112+
font-weight: normal;
113113
}
114114

115115
/* Short options -h - teal (same as long) */
116116
.highlight-argparse .na,
117117
.highlight-argparse-usage .na,
118118
.highlight-argparse-help .na {
119-
color: #56B6C2;
120-
font-weight: normal;
119+
color: #56b6c2;
120+
font-weight: normal;
121121
}
122122

123123
/* Metavar placeholders FILE, PATH - yellow/amber italic */
124124
.highlight-argparse .nv,
125125
.highlight-argparse-usage .nv,
126126
.highlight-argparse-help .nv {
127-
color: #E5C07B;
128-
font-style: italic;
127+
color: #e5c07b;
128+
font-style: italic;
129129
}
130130

131131
/* Command/program names - purple bold */
132132
.highlight-argparse .nl,
133133
.highlight-argparse-usage .nl,
134134
.highlight-argparse-help .nl {
135-
color: #C678DD;
136-
font-weight: bold;
135+
color: #c678dd;
136+
font-weight: bold;
137137
}
138138

139139
/* Subcommands - bold green */
140140
.highlight-argparse .nf,
141141
.highlight-argparse-usage .nf,
142142
.highlight-argparse-help .nf {
143-
color: #98C379;
144-
font-weight: bold;
143+
color: #98c379;
144+
font-weight: bold;
145145
}
146146

147147
/* Choice values - green */
@@ -151,22 +151,22 @@
151151
.highlight-argparse .nc,
152152
.highlight-argparse-usage .nc,
153153
.highlight-argparse-help .nc {
154-
color: #98C379;
154+
color: #98c379;
155155
}
156156

157157
/* Punctuation [], {}, () - neutral gray */
158158
.highlight-argparse .p,
159159
.highlight-argparse-usage .p,
160160
.highlight-argparse-help .p {
161-
color: #CCCED4;
161+
color: #ccced4;
162162
}
163163

164164
/* Operators like | - neutral gray */
165165
.highlight-argparse .o,
166166
.highlight-argparse-usage .o,
167167
.highlight-argparse-help .o {
168-
color: #CCCED4;
169-
font-weight: normal;
168+
color: #ccced4;
169+
font-weight: normal;
170170
}
171171

172172
/* ==========================================================================
@@ -190,56 +190,56 @@
190190

191191
/* Usage block container - match Pygments monokai background and code block styling */
192192
pre.argparse-usage {
193-
background: var(--argparse-code-background);
194-
padding: .625rem .875rem;
195-
line-height: 1.5;
196-
border-radius: .2rem;
197-
scrollbar-color: var(--color-foreground-border) transparent;
198-
scrollbar-width: thin;
193+
background: var(--argparse-code-background);
194+
padding: 0.625rem 0.875rem;
195+
line-height: 1.5;
196+
border-radius: 0.2rem;
197+
scrollbar-color: var(--color-foreground-border) transparent;
198+
scrollbar-width: thin;
199199
}
200200

201201
.argparse-usage .gh {
202-
color: #61AFEF;
203-
font-weight: bold;
202+
color: #61afef;
203+
font-weight: bold;
204204
}
205205

206206
.argparse-usage .nt {
207-
color: #56B6C2;
208-
font-weight: normal;
207+
color: #56b6c2;
208+
font-weight: normal;
209209
}
210210

211211
.argparse-usage .na {
212-
color: #56B6C2;
213-
font-weight: normal;
212+
color: #56b6c2;
213+
font-weight: normal;
214214
}
215215

216216
.argparse-usage .nv {
217-
color: #E5C07B;
218-
font-style: italic;
217+
color: #e5c07b;
218+
font-style: italic;
219219
}
220220

221221
.argparse-usage .nl {
222-
color: #C678DD;
223-
font-weight: bold;
222+
color: #c678dd;
223+
font-weight: bold;
224224
}
225225

226226
.argparse-usage .nf {
227-
color: #98C379;
228-
font-weight: bold;
227+
color: #98c379;
228+
font-weight: bold;
229229
}
230230

231231
.argparse-usage .no,
232232
.argparse-usage .nc {
233-
color: #98C379;
233+
color: #98c379;
234234
}
235235

236236
.argparse-usage .o {
237-
color: #CCCED4;
238-
font-weight: normal;
237+
color: #ccced4;
238+
font-weight: normal;
239239
}
240240

241241
.argparse-usage .p {
242-
color: #CCCED4;
242+
color: #ccced4;
243243
}
244244

245245
/*
@@ -249,23 +249,23 @@ pre.argparse-usage {
249249
* semantic spans for options and metavars.
250250
*/
251251
.argparse-argument-name .nt {
252-
color: #56B6C2;
253-
font-weight: normal;
252+
color: #56b6c2;
253+
font-weight: normal;
254254
}
255255

256256
.argparse-argument-name .na {
257-
color: #56B6C2;
258-
font-weight: normal;
257+
color: #56b6c2;
258+
font-weight: normal;
259259
}
260260

261261
.argparse-argument-name .nv {
262-
color: #E5C07B;
263-
font-style: italic;
262+
color: #e5c07b;
263+
font-style: italic;
264264
}
265265

266266
.argparse-argument-name .nl {
267-
color: #C678DD;
268-
font-weight: bold;
267+
color: #c678dd;
268+
font-weight: bold;
269269
}
270270

271271
/* ==========================================================================
@@ -277,28 +277,28 @@ pre.argparse-usage {
277277
* Uses a custom variable to avoid affecting Furo's --color-inline-code-background.
278278
*/
279279
:root {
280-
--argparse-code-background: #272822;
280+
--argparse-code-background: #272822;
281281
}
282282

283283
/*
284284
* Background styling for argument names - subtle background like code.literal
285285
* This provides visual weight and hierarchy for argument definitions.
286286
*/
287287
.argparse-argument-name {
288-
background: var(--argparse-code-background);
289-
border-radius: .2rem;
290-
padding: .485rem .875rem;
291-
font-family: var(--font-stack--monospace);
292-
width: fit-content;
293-
position: relative;
288+
background: var(--argparse-code-background);
289+
border-radius: 0.2rem;
290+
padding: 0.485rem 0.875rem;
291+
font-family: var(--font-stack--monospace);
292+
width: fit-content;
293+
position: relative;
294294
}
295295

296296
/*
297297
* Wrapper for linking - enables scroll-margin for fixed header navigation
298298
* and :target pseudo-class for highlighting when linked.
299299
*/
300300
.argparse-argument-wrapper {
301-
scroll-margin-top: 2.5rem;
301+
scroll-margin-top: 2.5rem;
302302
}
303303

304304
/*
@@ -307,63 +307,63 @@ pre.argparse-usage {
307307
* Follows Sphinx documentation convention for linkable headings.
308308
*/
309309
.argparse-argument-name .headerlink {
310-
visibility: hidden;
311-
position: absolute;
312-
right: -1.5rem;
313-
top: 50%;
314-
transform: translateY(-50%);
315-
color: var(--color-foreground-secondary);
316-
text-decoration: none;
310+
visibility: hidden;
311+
position: absolute;
312+
right: -1.5rem;
313+
top: 50%;
314+
transform: translateY(-50%);
315+
color: var(--color-foreground-secondary);
316+
text-decoration: none;
317317
}
318318

319319
/*
320320
* Show headerlink on hover or when targeted via URL fragment
321321
*/
322322
.argparse-argument-wrapper:hover .headerlink,
323323
.argparse-argument-wrapper:target .headerlink {
324-
visibility: visible;
324+
visibility: visible;
325325
}
326326

327327
.argparse-argument-name .headerlink:hover:not(:visited) {
328-
color: var(--color-foreground-primary);
328+
color: var(--color-foreground-primary);
329329
}
330330

331331
/*
332332
* Light mode headerlink color overrides
333333
*/
334334
body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
335-
color: #9ca0a5;
335+
color: #9ca0a5;
336336

337-
&:hover:not(:visited) {
338-
color: #cfd0d0;
339-
}
337+
&:hover:not(:visited) {
338+
color: #cfd0d0;
339+
}
340340
}
341341

342342
/*
343343
* Highlight when targeted via URL fragment
344344
* Uses Furo's highlight-on-target color for consistency.
345345
*/
346346
.argparse-argument-wrapper:target .argparse-argument-name {
347-
background-color: var(--color-highlight-on-target);
347+
background-color: var(--color-highlight-on-target);
348348
}
349349

350350
/*
351351
* Default value styling in metadata
352352
* Styled like inline code with monokai background.
353353
*/
354354
.argparse-argument-meta .nv {
355-
background: var(--argparse-code-background);
356-
border-radius: .2rem;
357-
padding: .1405rem .3rem;
358-
font-family: var(--font-stack--monospace);
359-
font-size: var(--font-size--small);
360-
color: #E5C07B;
355+
background: var(--argparse-code-background);
356+
border-radius: 0.2rem;
357+
padding: 0.1405rem 0.3rem;
358+
font-family: var(--font-stack--monospace);
359+
font-size: var(--font-size--small);
360+
color: #e5c07b;
361361
}
362362

363363
/*
364364
* Help text description
365365
* Adds spacing above for visual separation from argument name.
366366
*/
367367
.argparse-argument-help {
368-
padding-block-start: 0.5rem;
368+
padding-block-start: 0.5rem;
369369
}

0 commit comments

Comments
 (0)