-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
712 lines (600 loc) · 19.8 KB
/
Copy pathstyles.css
File metadata and controls
712 lines (600 loc) · 19.8 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
/**
* Luminous Void — a dark-first theme for Astro Starlight
*
* The whole theme is this one stylesheet. It works by overriding Starlight's
* `--sl-color-*` custom properties and adding a small set of `--lv-*` tokens of
* its own, so everything (radii, motion, shadows, accents) can be retuned from
* the token blocks below without touching the rules further down.
*
* Layers, in order:
* 1. Font imports
* 2. Design tokens (radius / motion / elevation / layout)
* 3. Colour palette — dark (default), then light
* 4. Typography
* 5. Components (focus, header, sidebar, content, code, buttons, cards,
* search, tables, footer)
* 6. Motion, scrollbars, print
*
* Specificity note: Starlight's light-mode palette is declared on
* `:root[data-theme='light']`, so a plain `[data-theme='light']` block loses to
* it. The light block below therefore matches the same selector shape.
*/
/* ============================================
1. FONT IMPORTS
============================================ */
/* Satoshi — headings */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@700,900&display=swap");
/* Inter — body text */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* Fira Code — monospace */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap");
/* ============================================
2. DESIGN TOKENS
============================================ */
:root {
/* Radii */
--lv-radius-sm: 0.25rem; /* inline code, small chips */
--lv-radius-md: 0.5rem; /* buttons, inputs, code blocks */
--lv-radius-lg: 0.75rem; /* cards, panels */
/* Motion — every transition/animation in the theme uses these */
--lv-duration-fast: 120ms;
--lv-duration-base: 200ms;
--lv-easing: cubic-bezier(0.4, 0, 0.2, 1);
/* Focus ring */
--lv-focus-width: 2px;
--lv-focus-offset: 2px;
/* Header blur strength */
--lv-header-blur: 12px;
/* Scrollbar thickness */
--lv-scrollbar-size: 8px;
/* Sticky-header offset for anchor jumps */
--lv-scroll-offset: calc(var(--sl-nav-height) + 1rem);
/* Accent-derived values. These are mixed from `--sl-color-accent` at use
time, so overriding that one property (or passing `accentColor` to the
plugin) recolours buttons, tints and glows with it. */
--lv-accent-gradient: linear-gradient(
135deg,
var(--sl-color-accent),
color-mix(in srgb, var(--sl-color-accent) 78%, #000)
);
/* Hover moves the accent towards `--lv-accent-hover-mix`: lighter on dark
backgrounds, darker on light ones, so `--lv-on-accent` stays readable. */
--lv-accent-gradient-hover: linear-gradient(
135deg,
color-mix(in srgb, var(--sl-color-accent) 82%, var(--lv-accent-hover-mix)),
var(--sl-color-accent)
);
--lv-accent-tint: color-mix(in srgb, var(--sl-color-accent) 12%, transparent);
--lv-accent-glow: color-mix(in srgb, var(--sl-color-accent) 28%, transparent);
--lv-selection-bg: color-mix(
in srgb,
var(--sl-color-accent) 32%,
transparent
);
}
/* ============================================
3a. COLOUR PALETTE — DARK (DEFAULT)
============================================ */
:root,
:root[data-theme="dark"],
[data-theme="dark"] ::backdrop {
/* Backgrounds */
--sl-color-bg: #0a0a0f;
--sl-color-bg-nav: #0a0a0f;
--sl-color-bg-sidebar: #0a0a0f;
--sl-color-bg-inline-code: #18181f;
/* Text */
--sl-color-text: #fafafa;
--sl-color-text-accent: #22d3ee;
--sl-color-text-invert: #0a0a0f;
/* Primary accent — orange (7.1:1 on the page background) */
--sl-color-accent-low: #1c1008;
--sl-color-accent: #f97316;
--sl-color-accent-high: #fed7aa;
/* Gray scale */
--sl-color-gray-1: #fafafa;
--sl-color-gray-2: #e4e4e7;
--sl-color-gray-3: #94a3b8;
--sl-color-gray-4: #7c8da8; /* 5.9:1 — was #64748b at 4.2:1 */
--sl-color-gray-5: #3f3f46;
--sl-color-gray-6: #27272a;
--sl-color-gray-7: #18181b;
/* Hairlines */
--sl-color-hairline: rgba(148, 163, 184, 0.15);
--sl-color-hairline-light: rgba(148, 163, 184, 0.08);
--sl-color-hairline-shade: rgba(148, 163, 184, 0.22);
/* Black / white anchors */
--sl-color-black: #0a0a0f;
--sl-color-white: #fafafa;
/* Code */
--sl-color-code-bg: #111118;
/* Secondary accent — cyan */
--lv-accent-cyan: #22d3ee;
--lv-accent-cyan-low: #083344;
--lv-accent-cyan-high: #a5f3fc;
/* Surfaces */
--lv-surface: #111118; /* cards and other raised panels */
--lv-bg-glass: rgba(10, 10, 15, 0.85); /* translucent header */
--lv-hover-tint: rgba(148, 163, 184, 0.1);
--lv-scrollbar-thumb: rgba(148, 163, 184, 0.3);
--lv-scrollbar-thumb-hover: rgba(148, 163, 184, 0.5);
/* Text on a filled accent surface (7.1:1 against the default accent) */
--lv-on-accent: #0a0a0f;
--lv-accent-hover-mix: #ffffff;
/* Elevation */
--lv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
--lv-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}
/* ============================================
3b. COLOUR PALETTE — LIGHT
============================================ */
:root[data-theme="light"],
[data-theme="light"] ::backdrop {
/* Backgrounds */
--sl-color-bg: #fafafa;
--sl-color-bg-nav: #fafafa;
--sl-color-bg-sidebar: #fafafa;
--sl-color-bg-inline-code: #f4f4f5;
/* Text */
--sl-color-text: #18181b;
--sl-color-text-accent: #0e7490; /* 5.1:1 — was #0891b2 at 3.5:1 */
--sl-color-text-invert: #fafafa;
/* Primary accent — orange, darkened so both text and fills pass AA */
--sl-color-accent-low: #fff7ed;
--sl-color-accent: #c2410c; /* 5.0:1 — was #ea580c at 3.4:1 */
--sl-color-accent-high: #7c2d12;
/* Gray scale */
--sl-color-gray-1: #18181b;
--sl-color-gray-2: #3f3f46;
--sl-color-gray-3: #52525b;
--sl-color-gray-4: #71717a;
--sl-color-gray-5: #a1a1aa;
--sl-color-gray-6: #e4e4e7;
--sl-color-gray-7: #f4f4f5;
/* Hairlines */
--sl-color-hairline: rgba(63, 63, 70, 0.15);
--sl-color-hairline-light: rgba(63, 63, 70, 0.08);
--sl-color-hairline-shade: rgba(63, 63, 70, 0.2);
/* Black / white anchors */
--sl-color-black: #ffffff;
--sl-color-white: #18181b;
/* Code */
--sl-color-code-bg: #f4f4f5;
/* Secondary accent — cyan, darkened for contrast on light backgrounds */
--lv-accent-cyan: #0e7490;
--lv-accent-cyan-low: #ecfeff;
--lv-accent-cyan-high: #164e63;
/* Surfaces */
--lv-surface: #ffffff;
--lv-bg-glass: rgba(250, 250, 250, 0.85);
--lv-hover-tint: rgba(63, 63, 70, 0.06);
--lv-scrollbar-thumb: rgba(63, 63, 70, 0.3);
--lv-scrollbar-thumb-hover: rgba(63, 63, 70, 0.5);
/* Text on a filled accent surface (5.0:1 against the light accent) */
--lv-on-accent: #ffffff;
--lv-accent-hover-mix: #000000;
/* Elevation */
--lv-shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.06);
--lv-shadow-md: 0 8px 24px rgba(24, 24, 27, 0.1);
}
/* ============================================
4. TYPOGRAPHY
============================================ */
:root {
--sl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, sans-serif;
--sl-font-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco,
Consolas, monospace;
/* Heading font */
--lv-font-heading: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont,
sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.sl-markdown-content h1,
.sl-markdown-content h2,
.sl-markdown-content h3,
.sl-markdown-content h4,
.sl-markdown-content h5,
.sl-markdown-content h6 {
font-family: var(--lv-font-heading);
letter-spacing: -0.02em;
text-wrap: balance;
}
h1,
.sl-markdown-content h1 {
font-weight: 900;
letter-spacing: -0.03em;
}
h2,
h3,
.sl-markdown-content h2,
.sl-markdown-content h3 {
font-weight: 700;
}
/* Keep anchor jumps clear of the sticky header */
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6):target,
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) {
scroll-margin-top: var(--lv-scroll-offset);
}
/* Prose: avoid orphans, and let long URLs or identifiers wrap instead of
overflowing. Deliberately limited to prose — inside table cells this would
break short tokens apart rather than letting the table scroll. */
.sl-markdown-content p,
.sl-markdown-content li {
text-wrap: pretty;
overflow-wrap: break-word;
}
/* Code ligatures */
code,
pre {
font-feature-settings: "liga" 1, "calt" 1;
}
::selection {
background-color: var(--lv-selection-bg);
color: var(--sl-color-white);
}
/* ============================================
5. FOCUS VISIBILITY
============================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
outline: var(--lv-focus-width) solid var(--sl-color-accent);
outline-offset: var(--lv-focus-offset);
}
/* ============================================
6. HEADER & NAVIGATION
============================================ */
header.header {
background-color: var(--lv-bg-glass);
backdrop-filter: blur(var(--lv-header-blur));
-webkit-backdrop-filter: blur(var(--lv-header-blur));
border-bottom: 1px solid var(--sl-color-hairline);
}
/* Wordmark: plain text colour, accent only on interaction */
a.site-title {
font-family: var(--lv-font-heading);
font-weight: 700;
color: var(--sl-color-white);
transition: color var(--lv-duration-base) var(--lv-easing);
}
a.site-title:hover {
color: var(--sl-color-accent);
}
/* Social icons */
.social-icons a {
transition: color var(--lv-duration-base) var(--lv-easing);
}
.social-icons a:hover {
color: var(--sl-color-accent);
}
/* ============================================
7. SIDEBAR
============================================ */
.sidebar-content a {
border-radius: var(--lv-radius-sm);
transition: color var(--lv-duration-fast) var(--lv-easing),
background-color var(--lv-duration-fast) var(--lv-easing);
}
.sidebar-content a:hover,
.sidebar-content a:focus-visible {
color: var(--sl-color-white);
background-color: var(--lv-hover-tint);
}
/* Active page: accent text on a faint accent tint, plus a gradient rail */
.sidebar-content a[aria-current="page"],
.sidebar-content a[aria-current="page"]:hover,
.sidebar-content a[aria-current="page"]:focus {
position: relative;
color: var(--sl-color-accent);
background-color: var(--lv-accent-tint);
font-weight: 600;
}
.sidebar-content a[aria-current="page"]::before {
content: "";
position: absolute;
inset-block: 0.15rem;
inset-inline-start: 0;
width: 3px;
border-radius: 2px;
background: linear-gradient(
180deg,
var(--sl-color-accent),
var(--lv-accent-cyan)
);
}
/* Right-hand "On this page" */
.right-sidebar a {
transition: color var(--lv-duration-fast) var(--lv-easing);
}
.right-sidebar a:hover {
color: var(--sl-color-accent);
}
/* ============================================
8. CONTENT AREA
============================================ */
/* Body links: underline grows in on hover, stays underlined on focus */
.sl-markdown-content
a:not(.card):not(.sl-link-card):not([class*="sl-link-button"]) {
color: var(--lv-accent-cyan);
text-decoration: none;
background-image: linear-gradient(currentColor, currentColor);
background-position: 0% 100%;
background-repeat: no-repeat;
background-size: 0% 1px;
transition: background-size var(--lv-duration-base) var(--lv-easing),
color var(--lv-duration-base) var(--lv-easing);
}
.sl-markdown-content
a:not(.card):not(.sl-link-card):not([class*="sl-link-button"]):hover,
.sl-markdown-content
a:not(.card):not(.sl-link-card):not([class*="sl-link-button"]):focus-visible {
background-size: 100% 1px;
}
/* ============================================
9. CODE BLOCKS
============================================ */
/* Round the code frame through Expressive Code's own tokens. Setting a border
on `.expressive-code` *and* its inner `pre` (as this theme used to do) draws
two nested borders with mismatched radii. Only these two tokens are safe to
set here: the rest are re-declared per colour mode by Expressive Code itself,
which is what keeps code blocks in step with the active theme. */
.expressive-code {
--ec-brdRad: var(--lv-radius-md);
--ec-brdCol: var(--sl-color-hairline);
}
/* Plain <pre> outside a code frame still needs its own box */
pre:not(:where(.expressive-code *)) {
border-radius: var(--lv-radius-md);
border: 1px solid var(--sl-color-hairline);
}
/* Inline code */
:not(pre) > code {
border-radius: var(--lv-radius-sm);
padding: 0.15em 0.4em;
font-size: 0.9em;
}
/* Copy button */
.expressive-code .copy button {
transition: opacity var(--lv-duration-base) var(--lv-easing),
background var(--lv-duration-base) var(--lv-easing),
border-color var(--lv-duration-base) var(--lv-easing);
}
.expressive-code .copy button:hover {
opacity: 1;
}
/* ============================================
10. BUTTONS
============================================ */
/* Starlight renders hero/markdown buttons as `<a class="sl-link-button …">`.
Its own rules live in a component stylesheet that loads after this one, so
the `a` in these selectors is load-bearing: without it the declarations tie
on specificity and lose. */
a.sl-link-button {
border-radius: var(--lv-radius-md);
font-weight: 600;
transition: background var(--lv-duration-base) var(--lv-easing),
border-color var(--lv-duration-base) var(--lv-easing),
color var(--lv-duration-base) var(--lv-easing),
box-shadow var(--lv-duration-base) var(--lv-easing),
transform var(--lv-duration-base) var(--lv-easing);
}
a.sl-link-button.primary {
background: var(--lv-accent-gradient);
border-color: transparent;
color: var(--lv-on-accent);
box-shadow: var(--lv-shadow-sm);
}
a.sl-link-button.primary:hover,
a.sl-link-button.primary:focus-visible {
background: var(--lv-accent-gradient-hover);
color: var(--lv-on-accent);
transform: translateY(-1px);
box-shadow: 0 4px 12px var(--lv-accent-glow);
}
a.sl-link-button.primary:active {
transform: translateY(0);
box-shadow: var(--lv-shadow-sm);
}
a.sl-link-button.secondary {
border-color: var(--sl-color-hairline-shade);
color: var(--sl-color-white);
}
a.sl-link-button.secondary:hover,
a.sl-link-button.secondary:focus-visible {
border-color: var(--lv-accent-cyan);
color: var(--lv-accent-cyan);
background-color: var(--lv-hover-tint);
}
a.sl-link-button.minimal:hover,
a.sl-link-button.minimal:focus-visible {
color: var(--lv-accent-cyan);
}
/* ============================================
11. CARDS & CALLOUTS
============================================ */
:root .card {
border-radius: var(--lv-radius-lg);
border: 1px solid var(--sl-color-hairline);
background-color: var(--lv-surface);
}
/* Card icons: Starlight cycles five hues per card (`:nth-child(4n+1)` and
friends). Alternate the theme's own two accents instead, so a grid reads as
one system — `:nth-child(n)` matches every card and outranks those rules. */
:root .card:nth-child(n) {
--sl-card-border: var(--sl-color-accent);
--sl-card-bg: var(--sl-color-accent-low);
}
:root .card:nth-child(2n) {
--sl-card-border: var(--lv-accent-cyan);
--sl-card-bg: var(--lv-accent-cyan-low);
}
/* Only cards that are actually links get hover affordances */
a.card,
.sl-link-card {
border-radius: var(--lv-radius-lg);
transition: border-color var(--lv-duration-base) var(--lv-easing),
box-shadow var(--lv-duration-base) var(--lv-easing),
transform var(--lv-duration-base) var(--lv-easing);
}
a.card:hover,
.sl-link-card:hover {
border-color: var(--sl-color-accent);
box-shadow: var(--lv-shadow-md);
transform: translateY(-2px);
}
/* Asides / callouts: keep Starlight's semantic hue on the rule and the title,
but tint the panel instead of filling it — a saturated block is the loudest
thing on an otherwise near-black page. */
.starlight-aside {
border-radius: var(--lv-radius-md);
border-inline-start-width: 3px;
background-color: color-mix(
in srgb,
var(--sl-color-asides-border) 12%,
var(--sl-color-bg)
);
}
/* ============================================
12. SEARCH
============================================ */
.header button[data-open-modal] {
border-radius: var(--lv-radius-md);
border: 1px solid var(--sl-color-hairline);
transition: border-color var(--lv-duration-base) var(--lv-easing),
color var(--lv-duration-base) var(--lv-easing);
}
.header button[data-open-modal]:hover {
border-color: var(--sl-color-accent);
color: var(--sl-color-white);
}
#starlight__search .pagefind-ui__search-input {
border-radius: var(--lv-radius-md);
}
/* ============================================
13. TABLES
============================================ */
/* Starlight already makes tables `display: block; overflow: auto` so wide
tables scroll on narrow screens. This theme used to set `overflow: hidden`
here, which clipped those columns away instead — so tables are deliberately
left with Starlight's own frameless, scrollable layout, and only the header
rule is emphasised. */
.sl-markdown-content th:not(:where(.not-content *)) {
border-bottom: 2px solid var(--sl-color-hairline-shade);
}
/* Starlight's global `overflow-wrap: anywhere` breaks short identifiers in the
middle ("strin/g") when a column gets narrow. Keep code cells intact and let
the table scroll instead. */
.sl-markdown-content :is(td, th) code:not(:where(.not-content *)) {
overflow-wrap: normal;
}
/* ============================================
14. FOOTER
============================================ */
footer {
border-top: 1px solid var(--sl-color-hairline);
}
/* Previous/next page links */
.pagination-links a {
border-radius: var(--lv-radius-md);
transition: border-color var(--lv-duration-base) var(--lv-easing),
box-shadow var(--lv-duration-base) var(--lv-easing);
}
.pagination-links a:hover {
border-color: var(--sl-color-accent);
box-shadow: var(--lv-shadow-sm);
}
/* ============================================
15. MOTION
============================================ */
/* Colour transitions are scoped to the elements that actually change on theme
switch or hover — a universal `*` transition makes everything feel laggy. */
body,
header.header,
.sidebar-content,
.right-sidebar,
.card,
.starlight-aside,
input,
kbd {
transition: background-color var(--lv-duration-base) var(--lv-easing),
border-color var(--lv-duration-base) var(--lv-easing),
color var(--lv-duration-base) var(--lv-easing);
}
/* Content fade-in (opacity only — a translate here shifts the first paint) */
.main-pane {
animation: lv-fade-in var(--lv-duration-base) var(--lv-easing);
}
@keyframes lv-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
a.sl-link-button.primary:hover,
a.sl-link-button.primary:focus-visible,
a.card:hover,
.sl-link-card:hover {
transform: none;
}
}
/* ============================================
16. SCROLLBARS
============================================ */
:root {
scrollbar-color: var(--lv-scrollbar-thumb) transparent;
}
::-webkit-scrollbar {
width: var(--lv-scrollbar-size);
height: var(--lv-scrollbar-size);
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--lv-scrollbar-thumb);
border-radius: var(--lv-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--lv-scrollbar-thumb-hover);
}
/* ============================================
17. PRINT
============================================ */
@media print {
header.header,
.sidebar,
.right-sidebar-container,
.pagination-links {
display: none !important;
}
.main-pane,
main {
max-width: 100% !important;
margin: 0 !important;
}
.expressive-code,
pre {
break-inside: avoid;
}
}