@krate/simple-docs-theme 0.5.0-beta.1 → 0.5.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/theme.css CHANGED
@@ -1,27 +1,43 @@
1
+ /*
2
+ * Simple docs theme. Prose is set in a serif at a book measure; the chrome
3
+ * (navigation, labels, tables) is set in the UI sans. Colours come from
4
+ * light-dark(), so the theme switch only has to change color-scheme.
5
+ */
1
6
  .simple-page {
2
- color-scheme: light;
3
- --simple-accent: #4f46e5;
4
- --simple-accent-strong: #4338ca;
5
- --simple-bg: #ffffff;
6
- --simple-bg-soft: #f7f7f8;
7
- --simple-bg-raised: #ffffff;
8
- --simple-fg: #18181b;
9
- --simple-fg-soft: #3f3f46;
10
- --simple-muted: #71717a;
11
- --simple-border: #e4e4e7;
12
- --simple-code-bg: #18181b;
13
- --simple-code-fg: #fafafa;
14
- --simple-shadow: 0 16px 40px -24px rgba(24, 24, 27, 0.35);
15
- --simple-header-height: 56px;
16
- --simple-sidebar-width: 260px;
17
- --simple-toc-width: 220px;
18
- --simple-gap: 2rem;
19
- --simple-radius: 10px;
20
- --simple-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
7
+ color-scheme: light dark;
8
+ --simple-accent: light-dark(#0f766e, #5cc4b5);
9
+ --simple-accent-strong: light-dark(#115e59, #8fdccf);
10
+ --simple-bg: light-dark(#fdfcfa, #151412);
11
+ --simple-bg-soft: light-dark(#f4f2ee, #1f1e1b);
12
+ --simple-bg-raised: light-dark(#ffffff, #1f1e1b);
13
+ --simple-fg: light-dark(#1c1b19, #ece9e2);
14
+ --simple-fg-soft: light-dark(#43403b, #cfcbc2);
15
+ --simple-muted: light-dark(#66615a, #a09a8f);
16
+ --simple-border: light-dark(#e3dfd7, #34322e);
17
+ --simple-code-bg: light-dark(#f4f2ee, #0e0d0c);
18
+ --simple-code-fg: light-dark(#1c1b19, #ece9e2);
19
+ --simple-shadow: 0 12px 32px -16px light-dark(rgba(28, 27, 25, 0.3), rgba(0, 0, 0, 0.7));
20
+ --simple-header-height: 52px;
21
+ --simple-sidebar-width: 15rem;
22
+ --simple-toc-width: 13rem;
23
+ --simple-gap: 3rem;
24
+ --simple-measure: 66ch;
25
+ --simple-radius: 6px;
26
+ --simple-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
27
+ --simple-serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
21
28
  --simple-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
22
29
 
30
+ --simple-tok-keyword: light-dark(#b42318, #ff7b72);
31
+ --simple-tok-const: light-dark(#0550ae, #79c0ff);
32
+ --simple-tok-string: light-dark(#0a3069, #a5d6ff);
33
+ --simple-tok-func: light-dark(#6639ba, #d2a8ff);
34
+ --simple-tok-class: light-dark(#953800, #ffa657);
35
+ --simple-tok-tag: light-dark(#116329, #7ee787);
36
+ --simple-tok-comment: light-dark(#59636e, #9aa3ad);
37
+
23
38
  --krate-primary: var(--simple-accent);
24
39
  --krate-primary-hover: var(--simple-accent-strong);
40
+ --krate-bg: var(--simple-bg);
25
41
  --krate-text: var(--simple-fg);
26
42
  --krate-text-muted: var(--simple-fg-soft);
27
43
  --krate-border: var(--simple-border);
@@ -29,58 +45,34 @@
29
45
  --krate-tabs-bg: var(--simple-bg-soft);
30
46
  --krate-code-bg: var(--simple-code-bg);
31
47
  --krate-code-text: var(--simple-code-fg);
48
+ --krate-code-title-bg: var(--simple-code-bg);
49
+ --krate-code-title-text: var(--simple-muted);
32
50
  --krate-css-active: var(--simple-accent);
33
51
  --krate-css-active-fg: var(--simple-accent-strong);
34
52
  --krate-focus-ring: var(--simple-accent);
35
53
 
36
54
  min-height: 100vh;
37
- margin: 0;
38
55
  background: var(--simple-bg);
39
56
  color: var(--simple-fg);
40
- font-family: var(--simple-font);
41
- font-size: 15px;
57
+ font-family: var(--simple-serif);
58
+ font-size: 18px;
42
59
  line-height: 1.65;
43
60
  -webkit-font-smoothing: antialiased;
44
- }
45
-
46
- .simple-page:has(> input.krc-h[value="dark"]:checked) {
47
- color-scheme: dark;
48
- --simple-bg: #0b0b0f;
49
- --simple-bg-soft: #141419;
50
- --simple-bg-raised: #17171d;
51
- --simple-fg: #f4f4f5;
52
- --simple-fg-soft: #d4d4d8;
53
- --simple-muted: #a1a1aa;
54
- --simple-border: #2a2a31;
55
- --simple-code-bg: #050507;
56
- --simple-code-fg: #f4f4f5;
57
- --simple-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.75);
58
- --simple-accent: #818cf8;
59
- --simple-accent-strong: #a5b4fc;
60
- --krate-css-active-fg: var(--simple-accent-strong);
61
+ text-size-adjust: 100%;
62
+ scrollbar-color: var(--simple-border) transparent;
61
63
  }
62
64
 
63
65
  .simple-page:has(> input.krc-h[value="light"]:checked) {
64
66
  color-scheme: light;
65
67
  }
66
68
 
67
- @media (prefers-color-scheme: dark) {
68
- .simple-page:not(:has(> input.krc-h[value="light"]:checked)):not(:has(> input.krc-h[value="dark"]:checked)) {
69
- color-scheme: dark;
70
- --simple-bg: #0b0b0f;
71
- --simple-bg-soft: #141419;
72
- --simple-bg-raised: #17171d;
73
- --simple-fg: #f4f4f5;
74
- --simple-fg-soft: #d4d4d8;
75
- --simple-muted: #a1a1aa;
76
- --simple-border: #2a2a31;
77
- --simple-code-bg: #050507;
78
- --simple-code-fg: #f4f4f5;
79
- --simple-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.75);
80
- --simple-accent: #818cf8;
81
- --simple-accent-strong: #a5b4fc;
82
- --krate-css-active-fg: var(--simple-accent-strong);
83
- }
69
+ .simple-page:has(> input.krc-h[value="dark"]:checked) {
70
+ color-scheme: dark;
71
+ }
72
+
73
+ body:has(.simple-page) {
74
+ margin: 0;
75
+ padding: 0;
84
76
  }
85
77
 
86
78
  .simple-page *,
@@ -89,49 +81,67 @@
89
81
  box-sizing: border-box;
90
82
  }
91
83
 
92
- .simple-page a {
84
+ .simple-page ::selection {
85
+ background: color-mix(in srgb, var(--simple-accent) 28%, transparent);
86
+ }
87
+
88
+ :where(.simple-page a) {
93
89
  color: var(--simple-accent);
94
90
  text-decoration: none;
95
91
  }
96
92
 
97
- .simple-page a:hover {
93
+ :where(.simple-page a:hover) {
98
94
  color: var(--simple-accent-strong);
99
- text-decoration: underline;
100
- text-underline-offset: 3px;
101
95
  }
102
96
 
103
97
  .simple-page :focus-visible {
104
98
  outline: 2px solid var(--simple-accent);
105
99
  outline-offset: 2px;
100
+ border-radius: 2px;
106
101
  }
107
102
 
108
103
  .simple-page kbd {
109
- border: 1px solid var(--simple-border);
110
- border-radius: 5px;
111
104
  padding: 1px 5px;
105
+ border: 1px solid var(--simple-border);
106
+ border-radius: 4px;
107
+ background: var(--simple-bg-soft);
108
+ color: var(--simple-muted);
112
109
  font-family: var(--simple-mono);
113
110
  font-size: 11px;
114
- color: var(--simple-muted);
115
- background: var(--simple-bg-soft);
116
111
  }
117
112
 
118
- /* Skip link ----------------------------------------------------------------- */
119
113
  .simple-skip {
120
114
  position: absolute;
121
115
  left: 1rem;
122
116
  top: -100px;
123
117
  z-index: 300;
124
- background: var(--simple-fg);
125
- color: var(--simple-bg) !important;
126
118
  padding: 8px 12px;
127
- border-radius: 6px;
119
+ border-radius: var(--simple-radius);
120
+ background: var(--simple-fg);
121
+ color: var(--simple-bg);
122
+ font: 14px var(--simple-font);
128
123
  }
129
124
 
130
125
  .simple-skip:focus {
131
126
  top: 1rem;
132
127
  }
133
128
 
134
- /* Version banner ------------------------------------------------------------ */
129
+ .simple-version-banner,
130
+ .simple-header,
131
+ .simple-sidebar,
132
+ .simple-nav-drawer,
133
+ .simple-toc,
134
+ .simple-toc-mobile,
135
+ .simple-breadcrumbs,
136
+ .simple-taxonomy,
137
+ .simple-dates,
138
+ .simple-prevnext-label,
139
+ .simple-page-footer,
140
+ .simple-hero-action,
141
+ .simple-content table {
142
+ font-family: var(--simple-font);
143
+ }
144
+
135
145
  .simple-version-banner {
136
146
  display: flex;
137
147
  align-items: center;
@@ -139,12 +149,11 @@
139
149
  gap: 0.75rem;
140
150
  padding: 8px 1rem;
141
151
  background: var(--simple-bg-soft);
142
- border-bottom: 1px solid var(--simple-border);
143
152
  color: var(--simple-fg-soft);
144
153
  font-size: 13px;
145
154
  }
146
155
 
147
- /* Header -------------------------------------------------------------------- */
156
+ /* Header */
148
157
  .simple-header {
149
158
  position: sticky;
150
159
  top: 0;
@@ -154,27 +163,21 @@
154
163
  gap: 1rem;
155
164
  height: var(--simple-header-height);
156
165
  padding: 0 1.25rem;
157
- background: color-mix(in srgb, var(--simple-bg) 88%, transparent);
166
+ background: color-mix(in srgb, var(--simple-bg) 94%, transparent);
158
167
  border-bottom: 1px solid var(--simple-border);
159
- backdrop-filter: blur(12px);
160
- -webkit-backdrop-filter: blur(12px);
161
168
  }
162
169
 
163
170
  .simple-brand {
164
171
  display: inline-flex;
165
172
  align-items: center;
166
- gap: 0.55rem;
173
+ gap: 0.5rem;
167
174
  min-width: 0;
168
- color: var(--simple-fg) !important;
175
+ color: var(--simple-fg);
176
+ font-size: 15px;
169
177
  font-weight: 650;
170
- font-size: 14px;
171
178
  letter-spacing: -0.01em;
172
179
  }
173
180
 
174
- .simple-brand:hover {
175
- text-decoration: none;
176
- }
177
-
178
181
  .simple-brand > span:last-child {
179
182
  overflow: hidden;
180
183
  text-overflow: ellipsis;
@@ -183,20 +186,14 @@
183
186
 
184
187
  .simple-brand-mark {
185
188
  display: inline-flex;
186
- align-items: center;
187
- justify-content: center;
188
- width: 28px;
189
- height: 28px;
190
189
  flex: 0 0 auto;
191
- border-radius: 8px;
192
- background: var(--simple-accent);
193
- color: #ffffff;
190
+ color: var(--simple-accent);
194
191
  }
195
192
 
196
193
  .simple-header-actions {
197
194
  display: flex;
198
195
  align-items: center;
199
- gap: 0.5rem;
196
+ gap: 0.4rem;
200
197
  margin-left: auto;
201
198
  min-width: 0;
202
199
  }
@@ -210,13 +207,13 @@
210
207
  padding: 0 0.65rem;
211
208
  border: 1px solid var(--simple-border);
212
209
  border-radius: var(--simple-radius);
213
- color: var(--simple-muted) !important;
210
+ color: var(--simple-muted);
214
211
  font-size: 13px;
215
212
  }
216
213
 
217
214
  .simple-search-link:hover {
218
215
  background: var(--simple-bg-soft);
219
- text-decoration: none;
216
+ color: var(--simple-fg);
220
217
  }
221
218
 
222
219
  .simple-search-link span {
@@ -240,10 +237,10 @@
240
237
  width: 32px;
241
238
  height: 32px;
242
239
  padding: 0;
243
- border: 1px solid var(--simple-border);
240
+ border: 0;
244
241
  border-radius: var(--simple-radius);
245
242
  background: transparent;
246
- color: var(--simple-fg);
243
+ color: var(--simple-muted);
247
244
  cursor: pointer;
248
245
  font: inherit;
249
246
  }
@@ -251,14 +248,13 @@
251
248
  .simple-icon-link:hover,
252
249
  .simple-icon-button:hover {
253
250
  background: var(--simple-bg-soft);
254
- color: var(--simple-fg) !important;
255
- text-decoration: none;
251
+ color: var(--simple-fg);
256
252
  }
257
253
 
258
254
  .simple-social {
259
255
  display: none;
260
256
  align-items: center;
261
- gap: 0.35rem;
257
+ gap: 0.2rem;
262
258
  }
263
259
 
264
260
  .simple-theme-switch {
@@ -267,7 +263,6 @@
267
263
  padding: 2px;
268
264
  border: 1px solid var(--simple-border);
269
265
  border-radius: calc(var(--simple-radius) + 2px);
270
- background: var(--simple-bg-soft);
271
266
  }
272
267
 
273
268
  .simple-theme-option {
@@ -278,7 +273,7 @@
278
273
  height: 28px;
279
274
  padding: 0;
280
275
  border: 0;
281
- border-radius: 7px;
276
+ border-radius: var(--simple-radius);
282
277
  background: var(--krate-active-bg, transparent);
283
278
  color: var(--simple-muted);
284
279
  cursor: pointer;
@@ -293,7 +288,7 @@
293
288
  display: none;
294
289
  }
295
290
 
296
- /* Switchers ---------------------------------------------------------------- */
291
+ /* Switchers */
297
292
  .simple-switcher {
298
293
  position: relative;
299
294
  }
@@ -327,27 +322,27 @@
327
322
  border-radius: var(--simple-radius);
328
323
  background: var(--simple-bg-raised);
329
324
  box-shadow: var(--simple-shadow);
325
+ font-family: var(--simple-font);
330
326
  }
331
327
 
332
328
  .simple-switcher-menu a {
333
329
  display: block;
334
330
  padding: 6px 9px;
335
- border-radius: 6px;
336
- color: var(--simple-fg-soft) !important;
331
+ border-radius: 4px;
332
+ color: var(--simple-fg-soft);
337
333
  font-size: 13px;
338
334
  }
339
335
 
340
336
  .simple-switcher-menu a:hover {
341
337
  background: var(--simple-bg-soft);
342
- text-decoration: none;
343
338
  }
344
339
 
345
340
  .simple-switcher-menu a.is-active {
346
- color: var(--simple-accent) !important;
341
+ color: var(--simple-accent);
347
342
  font-weight: 600;
348
343
  }
349
344
 
350
- /* Nav drawer ---------------------------------------------------------------- */
345
+ /* Nav drawer (small screens) */
351
346
  .simple-nav-panel {
352
347
  display: none;
353
348
  }
@@ -383,20 +378,19 @@
383
378
  margin-bottom: 1rem;
384
379
  }
385
380
 
386
- /* Shell --------------------------------------------------------------------- */
381
+ /* Shell */
387
382
  .simple-shell {
388
383
  display: grid;
389
- grid-template-columns: var(--simple-sidebar-width) minmax(0, 1fr) var(--simple-toc-width);
384
+ grid-template-columns: var(--simple-sidebar-width) minmax(0, var(--simple-measure)) var(--simple-toc-width);
385
+ justify-content: center;
390
386
  gap: var(--simple-gap);
391
387
  width: 100%;
392
- max-width: 1380px;
393
388
  margin: 0 auto;
394
389
  padding: 0 1.5rem;
395
390
  }
396
391
 
397
392
  .simple-page[data-toc="false"] .simple-shell {
398
- grid-template-columns: var(--simple-sidebar-width) minmax(0, 1fr);
399
- max-width: 1120px;
393
+ grid-template-columns: var(--simple-sidebar-width) minmax(0, var(--simple-measure));
400
394
  }
401
395
 
402
396
  .simple-sidebar {
@@ -405,14 +399,16 @@
405
399
  align-self: start;
406
400
  max-height: calc(100vh - var(--simple-header-height));
407
401
  overflow-y: auto;
408
- padding: 1.5rem 0.5rem 2rem 0;
402
+ padding: 2.25rem 0.5rem 2rem 0;
409
403
  }
410
404
 
411
405
  .simple-nav {
412
406
  display: flex;
413
407
  flex-direction: column;
414
- gap: 1px;
415
- font-size: 13.5px;
408
+ gap: 2px;
409
+ font-family: var(--simple-font);
410
+ font-size: 14px;
411
+ line-height: 1.4;
416
412
  }
417
413
 
418
414
  .simple-nav-link,
@@ -421,23 +417,27 @@
421
417
  align-items: center;
422
418
  gap: 0.45rem;
423
419
  min-height: 30px;
424
- padding: 5px 8px;
425
- border-radius: 7px;
426
- color: var(--simple-fg-soft) !important;
420
+ padding: 5px 0;
421
+ color: var(--simple-fg-soft);
427
422
  cursor: pointer;
428
423
  }
429
424
 
430
425
  .simple-nav-link:hover,
431
426
  .simple-nav-summary:hover {
432
- background: var(--simple-bg-soft);
433
- color: var(--simple-fg) !important;
434
- text-decoration: none;
427
+ color: var(--simple-fg);
428
+ text-decoration: underline;
429
+ text-decoration-thickness: 1px;
430
+ text-underline-offset: 3px;
431
+ }
432
+
433
+ .simple-nav-summary {
434
+ color: var(--simple-fg);
435
+ font-weight: 600;
435
436
  }
436
437
 
437
438
  .simple-nav-link.is-active,
438
439
  .simple-nav-section.is-active > .simple-nav-summary {
439
- background: color-mix(in srgb, var(--simple-accent) 10%, transparent);
440
- color: var(--simple-accent-strong) !important;
440
+ color: var(--simple-accent);
441
441
  font-weight: 600;
442
442
  }
443
443
 
@@ -464,30 +464,24 @@
464
464
  border-radius: 999px;
465
465
  background: var(--simple-bg-soft);
466
466
  color: var(--simple-muted);
467
- font-size: 10px;
468
- font-weight: 650;
469
- text-transform: uppercase;
470
- letter-spacing: 0.02em;
467
+ font-size: 11px;
468
+ font-weight: 600;
471
469
  }
472
470
 
473
471
  .simple-nav-badge-tip,
474
472
  .simple-nav-badge-success {
475
473
  background: color-mix(in srgb, #10b981 14%, transparent);
476
- color: #059669;
474
+ color: light-dark(#047857, #6ee7b7);
477
475
  }
478
476
 
479
477
  .simple-nav-badge-warning {
480
478
  background: color-mix(in srgb, #f59e0b 16%, transparent);
481
- color: #b45309;
479
+ color: light-dark(#92400e, #fcd34d);
482
480
  }
483
481
 
484
482
  .simple-nav-badge-danger {
485
483
  background: color-mix(in srgb, #ef4444 14%, transparent);
486
- color: #dc2626;
487
- }
488
-
489
- .simple-nav-section {
490
- margin: 0;
484
+ color: light-dark(#b91c1c, #fca5a5);
491
485
  }
492
486
 
493
487
  .simple-nav-section > summary {
@@ -513,40 +507,35 @@
513
507
  display: flex;
514
508
  flex-direction: column;
515
509
  gap: 1px;
516
- margin: 2px 0 4px 14px;
517
- padding-left: 10px;
510
+ margin: 0 0 0.6rem 2px;
511
+ padding-left: 12px;
518
512
  border-left: 1px solid var(--simple-border);
519
513
  }
520
514
 
521
515
  .simple-nav-index {
522
- color: var(--simple-muted) !important;
523
- font-style: italic;
516
+ color: var(--simple-muted);
524
517
  }
525
518
 
526
- /* TOC ----------------------------------------------------------------------- */
519
+ /* Table of contents */
527
520
  .simple-toc {
528
521
  position: sticky;
529
522
  top: var(--simple-header-height);
530
523
  align-self: start;
531
524
  max-height: calc(100vh - var(--simple-header-height));
532
525
  overflow-y: auto;
533
- padding: 1.65rem 0 2rem;
526
+ padding: 2.25rem 0 2rem;
534
527
  font-size: 13px;
528
+ line-height: 1.4;
535
529
  }
536
530
 
537
531
  .simple-toc-title {
538
532
  margin-bottom: 0.6rem;
539
533
  color: var(--simple-fg);
540
- font-size: 12px;
534
+ font-size: 13px;
541
535
  font-weight: 650;
542
- text-transform: uppercase;
543
- letter-spacing: 0.06em;
544
536
  }
545
537
 
546
538
  .simple-toc-list {
547
- display: flex;
548
- flex-direction: column;
549
- gap: 2px;
550
539
  margin: 0;
551
540
  padding: 0;
552
541
  list-style: none;
@@ -554,62 +543,61 @@
554
543
 
555
544
  .simple-toc-list a {
556
545
  display: block;
557
- padding: 4px 0 4px 10px;
558
- border-left: 2px solid var(--simple-border);
559
- color: var(--simple-muted) !important;
546
+ padding: 4px 0 4px 12px;
547
+ border-left: 1px solid var(--simple-border);
548
+ color: var(--simple-muted);
560
549
  }
561
550
 
562
551
  .simple-toc-list a:hover {
563
552
  border-left-color: var(--simple-accent);
564
- color: var(--simple-fg) !important;
565
- text-decoration: none;
553
+ color: var(--simple-fg);
566
554
  }
567
555
 
568
556
  .simple-toc-depth-3 a {
569
- padding-left: 22px;
570
- font-size: 12.5px;
557
+ padding-left: 24px;
571
558
  }
572
559
 
573
560
  .simple-toc-depth-4 a {
574
- padding-left: 34px;
575
- font-size: 12px;
561
+ padding-left: 36px;
576
562
  }
577
563
 
578
564
  .simple-toc-mobile {
579
565
  display: none;
580
- margin: 0 0 1.25rem;
581
- border: 1px solid var(--simple-border);
582
- border-radius: var(--simple-radius);
583
- background: var(--simple-bg-soft);
566
+ margin: 0 0 1.5rem;
567
+ border-block: 1px solid var(--simple-border);
584
568
  }
585
569
 
586
570
  .simple-toc-mobile summary {
587
571
  cursor: pointer;
588
- padding: 9px 12px;
572
+ padding: 10px 0;
589
573
  color: var(--simple-fg);
574
+ font-size: 14px;
590
575
  font-weight: 600;
591
- font-size: 13px;
592
576
  }
593
577
 
594
578
  .simple-toc-mobile .simple-toc-list {
595
- padding: 0 12px 10px;
579
+ padding: 0 0 10px;
580
+ font-size: 14px;
596
581
  }
597
582
 
598
- /* Main ---------------------------------------------------------------------- */
599
583
  .simple-main {
600
584
  min-width: 0;
601
- padding: 1.5rem 0 4rem;
585
+ padding: 2.25rem 0 5rem;
586
+ }
587
+
588
+ .simple-content {
589
+ min-width: 0;
602
590
  }
603
591
 
604
592
  .simple-breadcrumbs {
605
- margin-bottom: 1rem;
606
- font-size: 12.5px;
593
+ margin-bottom: 1.25rem;
594
+ font-size: 13px;
595
+ line-height: 1.4;
607
596
  }
608
597
 
609
598
  .simple-breadcrumbs ol {
610
599
  display: flex;
611
600
  flex-wrap: wrap;
612
- align-items: center;
613
601
  gap: 0.35rem;
614
602
  margin: 0;
615
603
  padding: 0;
@@ -620,39 +608,52 @@
620
608
  .simple-breadcrumbs li + li::before {
621
609
  content: "/";
622
610
  margin-right: 0.35rem;
623
- color: var(--simple-border);
624
611
  }
625
612
 
626
613
  .simple-breadcrumbs a {
627
- color: var(--simple-muted) !important;
614
+ color: var(--simple-muted);
615
+ }
616
+
617
+ .simple-breadcrumbs a:hover {
618
+ text-decoration: underline;
628
619
  }
629
620
 
630
621
  .simple-description {
631
622
  margin: 0 0 1.5rem;
632
623
  color: var(--simple-muted);
633
- font-size: 16px;
624
+ font-size: 1.15rem;
625
+ font-style: italic;
626
+ line-height: 1.5;
627
+ text-wrap: pretty;
628
+ }
629
+
630
+ /* The description sits under the page title when the plugin passes the title
631
+ separately. */
632
+ .simple-title h1 {
633
+ margin-bottom: 0.35em;
634
634
  }
635
635
 
636
+ /* Hero */
636
637
  .simple-hero {
637
- margin-bottom: 2rem;
638
- padding: 2.5rem 2rem;
639
- border: 1px solid var(--simple-border);
640
- border-radius: calc(var(--simple-radius) + 4px);
641
- background: linear-gradient(135deg, var(--simple-bg-soft), var(--simple-bg));
638
+ margin-bottom: 1rem;
639
+ padding: 1rem 0 0.5rem;
642
640
  }
643
641
 
644
642
  .simple-hero h1 {
645
643
  margin: 0;
646
- font-size: clamp(30px, 5vw, 48px);
647
- line-height: 1.1;
648
- letter-spacing: -0.035em;
644
+ font-size: clamp(2.5rem, 7vw, 3.75rem);
645
+ font-weight: 600;
646
+ line-height: 1.05;
647
+ letter-spacing: -0.03em;
648
+ text-wrap: balance;
649
649
  }
650
650
 
651
651
  .simple-hero-tagline {
652
- max-width: 620px;
653
- margin: 0.8rem 0 0;
654
- color: var(--simple-muted);
655
- font-size: 17px;
652
+ margin: 1rem 0 0;
653
+ color: var(--simple-fg-soft);
654
+ font-size: 1.3rem;
655
+ line-height: 1.5;
656
+ text-wrap: pretty;
656
657
  }
657
658
 
658
659
  .simple-hero-image {
@@ -665,152 +666,242 @@
665
666
  .simple-hero-actions {
666
667
  display: flex;
667
668
  flex-wrap: wrap;
668
- gap: 0.6rem;
669
- margin-top: 1.4rem;
669
+ align-items: center;
670
+ gap: 0.5rem 1.25rem;
671
+ margin-top: 1.5rem;
670
672
  }
671
673
 
672
674
  .simple-hero-action {
673
675
  display: inline-flex;
674
676
  align-items: center;
675
- justify-content: center;
676
- min-height: 38px;
677
- padding: 0 0.95rem;
678
- border: 1px solid var(--simple-border);
679
- border-radius: var(--simple-radius);
680
- background: var(--simple-bg-raised);
681
- color: var(--simple-fg) !important;
677
+ min-height: 40px;
678
+ color: var(--simple-fg);
679
+ font-size: 15px;
682
680
  font-weight: 600;
683
- font-size: 14px;
681
+ text-decoration: underline;
682
+ text-decoration-thickness: 1px;
683
+ text-underline-offset: 4px;
684
684
  }
685
685
 
686
686
  .simple-hero-action:hover {
687
- border-color: var(--simple-accent);
688
- text-decoration: none;
687
+ color: var(--simple-accent);
689
688
  }
690
689
 
691
690
  .simple-hero-action-primary {
692
- border-color: var(--simple-accent);
693
- background: var(--simple-accent);
694
- color: #ffffff !important;
691
+ padding: 0 1.1rem;
692
+ border-radius: var(--simple-radius);
693
+ background: var(--simple-fg);
694
+ color: var(--simple-bg);
695
+ text-decoration: none;
695
696
  }
696
697
 
697
698
  .simple-hero-action-primary:hover {
698
699
  background: var(--simple-accent-strong);
700
+ color: var(--simple-bg);
699
701
  }
700
702
 
701
- /* Content ------------------------------------------------------------------- */
702
- .simple-content {
703
- min-width: 0;
704
- color: var(--simple-fg-soft);
705
- }
706
-
707
- .simple-content > :first-child {
708
- margin-top: 0;
709
- }
710
-
703
+ /* Prose */
711
704
  .simple-content h1,
712
705
  .simple-content h2,
713
706
  .simple-content h3,
714
707
  .simple-content h4,
715
708
  .simple-content h5,
716
709
  .simple-content h6 {
710
+ position: relative;
717
711
  color: var(--simple-fg);
718
- line-height: 1.24;
719
- letter-spacing: -0.02em;
720
- scroll-margin-top: calc(var(--simple-header-height) + 1rem);
712
+ font-weight: 600;
713
+ line-height: 1.2;
714
+ letter-spacing: -0.015em;
715
+ text-wrap: balance;
716
+ scroll-margin-top: calc(var(--simple-header-height) + 1.5rem);
721
717
  }
722
718
 
723
719
  .simple-content h1 {
724
- margin: 0 0 1rem;
725
- font-size: 2rem;
720
+ margin: 0 0 0.5em;
721
+ font-size: 2.5rem;
722
+ line-height: 1.1;
723
+ letter-spacing: -0.025em;
726
724
  }
727
725
 
728
726
  .simple-content h2 {
729
- margin: 2.2rem 0 0.75rem;
730
- padding-bottom: 0.35rem;
731
- border-bottom: 1px solid var(--simple-border);
732
- font-size: 1.45rem;
727
+ margin: 1.9em 0 0.5em;
728
+ font-size: 1.65rem;
733
729
  }
734
730
 
735
731
  .simple-content h3 {
736
- margin: 1.75rem 0 0.6rem;
737
- font-size: 1.15rem;
732
+ margin: 1.6em 0 0.4em;
733
+ font-size: 1.3rem;
738
734
  }
739
735
 
740
- .simple-content h4 {
741
- margin: 1.4rem 0 0.5rem;
736
+ .simple-content :is(h4, h5, h6) {
737
+ margin: 1.8em 0 0.4em;
742
738
  font-size: 1rem;
739
+ letter-spacing: 0;
743
740
  }
744
741
 
745
- .simple-content p,
746
- .simple-content li {
747
- line-height: 1.75;
742
+ .simple-content :where(p, ul, ol, pre, table, blockquote, details) {
743
+ margin-block: 1.1em;
748
744
  }
749
745
 
750
- .simple-content p {
751
- margin: 0.9rem 0;
746
+ .simple-content p,
747
+ .simple-content li {
748
+ text-wrap: pretty;
752
749
  }
753
750
 
754
751
  .simple-content ul,
755
752
  .simple-content ol {
756
- margin: 0.9rem 0;
757
- padding-left: 1.4rem;
753
+ padding-left: 1.3em;
758
754
  }
759
755
 
760
756
  .simple-content li {
761
- margin: 0.3rem 0;
757
+ margin: 0.35em 0;
758
+ padding-left: 0.2em;
762
759
  }
763
760
 
764
- .simple-content li > code,
765
- .simple-content p > code,
766
- .simple-content a > code {
767
- padding: 0.12em 0.36em;
768
- border: 1px solid var(--simple-border);
769
- border-radius: 5px;
761
+ .simple-content li::marker {
762
+ color: var(--simple-muted);
763
+ }
764
+
765
+ .simple-content li > :is(ul, ol) {
766
+ margin-block: 0.35em;
767
+ }
768
+
769
+ .simple-content strong {
770
+ font-weight: 650;
771
+ color: var(--simple-fg);
772
+ }
773
+
774
+ .simple-content a:not([class]) {
775
+ text-decoration: underline;
776
+ text-decoration-thickness: 1px;
777
+ text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
778
+ text-underline-offset: 0.2em;
779
+ }
780
+
781
+ .simple-content a:not([class]):hover {
782
+ text-decoration-color: currentColor;
783
+ }
784
+
785
+ .simple-content :not(pre) > code {
786
+ padding: 0.1em 0.35em;
787
+ border-radius: 4px;
770
788
  background: var(--simple-bg-soft);
771
789
  color: var(--simple-fg);
772
790
  font-family: var(--simple-mono);
773
- font-size: 0.88em;
791
+ font-size: 0.82em;
792
+ overflow-wrap: anywhere;
774
793
  }
775
794
 
776
795
  .simple-content pre {
777
- margin: 1.1rem 0;
778
- padding: 1rem 1.1rem;
796
+ padding: 1rem 1.25rem;
779
797
  overflow-x: auto;
780
- border: 1px solid var(--simple-border);
781
798
  border-radius: var(--simple-radius);
782
799
  background: var(--simple-code-bg);
783
800
  color: var(--simple-code-fg);
784
801
  font-family: var(--simple-mono);
785
- font-size: 13px;
786
- line-height: 1.6;
802
+ font-size: 13.5px;
803
+ line-height: 1.65;
804
+ tab-size: 4;
787
805
  }
788
806
 
789
807
  .simple-content pre code {
790
808
  padding: 0;
791
- border: 0;
792
809
  background: transparent;
793
810
  color: inherit;
794
811
  font: inherit;
795
812
  }
796
813
 
797
814
  .simple-content .krate-code-block {
798
- margin: 1.1rem 0;
815
+ position: relative;
816
+ margin-block: 1.4em;
817
+ overflow: hidden;
818
+ border: 0;
819
+ border-radius: var(--simple-radius);
820
+ background: var(--simple-code-bg);
821
+ }
822
+
823
+ .simple-content .krate-code-block pre,
824
+ .simple-content .krate-code-block code {
825
+ background: transparent;
826
+ font-family: var(--simple-mono);
827
+ font-size: 13.5px;
828
+ line-height: 1.65;
799
829
  }
800
830
 
801
831
  .simple-content .krate-code-block pre {
802
832
  margin: 0;
803
- border-top-left-radius: 0;
804
- border-top-right-radius: 0;
833
+ padding: 1rem 1.25rem;
834
+ border-radius: 0;
805
835
  }
806
836
 
807
- .simple-content blockquote {
808
- margin: 1.2rem 0;
809
- padding: 0.2rem 0 0.2rem 1rem;
810
- border-left: 3px solid var(--simple-accent);
837
+ .simple-content .krate-code-block code {
838
+ overflow: visible;
839
+ }
840
+
841
+ .simple-content .krate-code-header {
842
+ min-height: 0;
843
+ padding: 0.35rem 0.75rem 0;
844
+ border: 0;
845
+ background: transparent;
846
+ font-family: var(--simple-font);
847
+ }
848
+
849
+ .simple-content .krate-code-header:has(.krate-code-title:empty) {
850
+ position: absolute;
851
+ top: 0.25rem;
852
+ right: 0.25rem;
853
+ z-index: 1;
854
+ padding: 0;
855
+ }
856
+
857
+ .simple-content .krate-code-copy {
811
858
  color: var(--simple-muted);
812
859
  }
813
860
 
861
+ .simple-content .krate-code-copy:hover {
862
+ background: var(--simple-border);
863
+ color: var(--simple-fg);
864
+ }
865
+
866
+ .simple-content .chroma .err {
867
+ color: inherit;
868
+ }
869
+
870
+ .simple-content .chroma :is(.k, .kd, .kn, .kr, .kt, .nn, .o, .ow, .or, .gt) {
871
+ color: var(--simple-tok-keyword);
872
+ }
873
+
874
+ .simple-content .chroma :is(.kc, .kp, .bp, .no, .nl, .py, .nv, .vc, .vg, .vi, .vm, .sa, .dl, .se, .sh, .sr, .ld, .gh, .gu) {
875
+ color: var(--simple-tok-const);
876
+ }
877
+
878
+ .simple-content .chroma :is(.l, .s, .sb, .sc, .sd, .s2, .si, .sx, .s1, .ss, .m, .mb, .mf, .mh, .mi, .il, .mo) {
879
+ color: var(--simple-tok-string);
880
+ }
881
+
882
+ .simple-content .chroma :is(.nd, .nf, .fm) {
883
+ color: var(--simple-tok-func);
884
+ }
885
+
886
+ .simple-content .chroma :is(.nc, .ne, .ni) {
887
+ color: var(--simple-tok-class);
888
+ }
889
+
890
+ .simple-content .chroma .nt {
891
+ color: var(--simple-tok-tag);
892
+ }
893
+
894
+ .simple-content .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf, .go, .gp, .ln, .lnt) {
895
+ color: var(--simple-tok-comment);
896
+ }
897
+
898
+ .simple-content blockquote {
899
+ padding-left: 1.25rem;
900
+ border-left: 1px solid var(--simple-border);
901
+ color: var(--simple-fg-soft);
902
+ font-style: italic;
903
+ }
904
+
814
905
  .simple-content blockquote > :first-child {
815
906
  margin-top: 0;
816
907
  }
@@ -820,7 +911,7 @@
820
911
  }
821
912
 
822
913
  .simple-content hr {
823
- margin: 2rem 0;
914
+ margin-block: 2.5rem;
824
915
  border: 0;
825
916
  border-top: 1px solid var(--simple-border);
826
917
  }
@@ -832,63 +923,98 @@
832
923
  border-radius: var(--simple-radius);
833
924
  }
834
925
 
926
+ /* Tables scroll inside themselves */
835
927
  .simple-content table {
836
- width: 100%;
837
- margin: 1.2rem 0;
928
+ display: block;
929
+ width: max-content;
930
+ max-width: 100%;
931
+ overflow-x: auto;
838
932
  border-collapse: collapse;
839
- font-size: 13.5px;
933
+ font-size: 14.5px;
934
+ line-height: 1.5;
935
+ font-variant-numeric: tabular-nums;
840
936
  }
841
937
 
842
938
  .simple-content th,
843
939
  .simple-content td {
844
- padding: 7px 10px;
845
- border: 1px solid var(--simple-border);
940
+ padding: 0.5rem 1rem 0.5rem 0;
941
+ border-bottom: 1px solid var(--simple-border);
846
942
  text-align: left;
943
+ vertical-align: top;
847
944
  }
848
945
 
849
946
  .simple-content th {
850
- background: var(--simple-bg-soft);
947
+ border-bottom-color: var(--simple-fg-soft);
851
948
  color: var(--simple-fg);
852
949
  font-weight: 650;
950
+ white-space: nowrap;
951
+ }
952
+
953
+ .simple-content td code {
954
+ font-size: 0.88em;
853
955
  }
854
956
 
855
957
  .simple-content .heading-anchor {
856
- margin-left: 0.35rem;
857
- color: var(--simple-muted) !important;
858
- opacity: 0;
958
+ position: absolute;
959
+ right: 100%;
960
+ padding-right: 0.4em;
961
+ color: var(--simple-muted);
859
962
  font-weight: 400;
963
+ opacity: 0;
860
964
  }
861
965
 
862
- .simple-content h2:hover .heading-anchor,
863
- .simple-content h3:hover .heading-anchor,
966
+ .simple-content :is(h2, h3, h4):hover .heading-anchor,
864
967
  .simple-content .heading-anchor:focus {
865
968
  opacity: 1;
866
969
  }
867
970
 
868
- /* Taxonomy, dates, footer --------------------------------------------------- */
971
+ /* Admonitions */
972
+ .simple-content .krate-aside {
973
+ margin-block: 1.4em;
974
+ padding: 0.9rem 1.1rem;
975
+ border-radius: var(--simple-radius);
976
+ background: color-mix(in srgb, var(--krate-aside-accent) 7%, var(--simple-bg));
977
+ font-size: 16px;
978
+ line-height: 1.55;
979
+ }
980
+
981
+ .simple-content .krate-aside-title {
982
+ margin-bottom: 0.35rem;
983
+ font-family: var(--simple-font);
984
+ font-size: 13px;
985
+ font-weight: 650;
986
+ }
987
+
988
+ .simple-content .krate-aside-content,
989
+ .simple-content .krate-aside-content p {
990
+ margin-block: 0.5em 0;
991
+ color: var(--simple-fg);
992
+ }
993
+
994
+
995
+ .simple-content .krate-card {
996
+ background: var(--simple-bg-raised);
997
+ }
998
+
999
+ /* After the content */
869
1000
  .simple-taxonomy {
870
1001
  display: flex;
871
1002
  flex-wrap: wrap;
872
1003
  gap: 0.4rem;
873
- margin-top: 2rem;
1004
+ margin-top: 3rem;
874
1005
  }
875
1006
 
876
1007
  .simple-chip {
877
- display: inline-flex;
878
- align-items: center;
879
- padding: 3px 8px;
1008
+ padding: 2px 9px;
880
1009
  border: 1px solid var(--simple-border);
881
1010
  border-radius: 999px;
882
- background: var(--simple-bg-soft);
883
- color: var(--simple-muted) !important;
884
- font-size: 11.5px;
885
- font-weight: 600;
1011
+ color: var(--simple-muted);
1012
+ font-size: 12.5px;
886
1013
  }
887
1014
 
888
1015
  .simple-chip:hover {
889
1016
  border-color: var(--simple-accent);
890
- color: var(--simple-accent) !important;
891
- text-decoration: none;
1017
+ color: var(--simple-accent);
892
1018
  }
893
1019
 
894
1020
  .simple-chip-category {
@@ -898,17 +1024,17 @@
898
1024
  .simple-dates {
899
1025
  display: flex;
900
1026
  flex-wrap: wrap;
901
- gap: 1rem;
902
- margin: 1.4rem 0 0;
1027
+ gap: 0.25rem 1.25rem;
1028
+ margin-top: 1.25rem;
903
1029
  color: var(--simple-muted);
904
- font-size: 12px;
1030
+ font-size: 13px;
905
1031
  }
906
1032
 
907
1033
  .simple-prevnext {
908
1034
  display: grid;
909
1035
  grid-template-columns: 1fr 1fr;
910
- gap: 0.75rem;
911
- margin: 2rem 0 0;
1036
+ gap: 1rem;
1037
+ margin-top: 3rem;
912
1038
  padding-top: 1.25rem;
913
1039
  border-top: 1px solid var(--simple-border);
914
1040
  }
@@ -916,17 +1042,14 @@
916
1042
  .simple-prevnext-link {
917
1043
  display: flex;
918
1044
  flex-direction: column;
919
- gap: 0.2rem;
920
- padding: 0.75rem 0.9rem;
921
- border: 1px solid var(--simple-border);
922
- border-radius: var(--simple-radius);
923
- background: var(--simple-bg-raised);
924
- color: var(--simple-fg) !important;
1045
+ gap: 0.15rem;
1046
+ color: var(--simple-fg);
925
1047
  }
926
1048
 
927
- .simple-prevnext-link:hover {
928
- border-color: var(--simple-accent);
929
- text-decoration: none;
1049
+ .simple-prevnext-link:hover .simple-prevnext-title {
1050
+ color: var(--simple-accent);
1051
+ text-decoration: underline;
1052
+ text-underline-offset: 0.2em;
930
1053
  }
931
1054
 
932
1055
  .simple-prevnext-next {
@@ -935,15 +1058,12 @@
935
1058
 
936
1059
  .simple-prevnext-label {
937
1060
  color: var(--simple-muted);
938
- font-size: 11px;
939
- font-weight: 650;
940
- text-transform: uppercase;
941
- letter-spacing: 0.05em;
1061
+ font-size: 13px;
942
1062
  }
943
1063
 
944
1064
  .simple-prevnext-title {
945
- font-weight: 600;
946
- font-size: 13.5px;
1065
+ font-size: 1.15rem;
1066
+ line-height: 1.3;
947
1067
  }
948
1068
 
949
1069
  .simple-page-footer {
@@ -952,9 +1072,7 @@
952
1072
  align-items: center;
953
1073
  justify-content: space-between;
954
1074
  gap: 1rem;
955
- margin-top: 1.25rem;
956
- padding-top: 1rem;
957
- border-top: 1px solid var(--simple-border);
1075
+ margin-top: 1.5rem;
958
1076
  color: var(--simple-muted);
959
1077
  font-size: 13px;
960
1078
  }
@@ -963,13 +1081,17 @@
963
1081
  display: inline-flex;
964
1082
  align-items: center;
965
1083
  gap: 0.35rem;
966
- color: var(--simple-muted) !important;
1084
+ color: var(--simple-muted);
1085
+ }
1086
+
1087
+ .simple-edit-link:hover {
1088
+ color: var(--simple-accent);
967
1089
  }
968
1090
 
969
1091
  .simple-feedback {
970
1092
  display: flex;
971
1093
  align-items: center;
972
- gap: 0.45rem;
1094
+ gap: 0.25rem;
973
1095
  }
974
1096
 
975
1097
  .simple-feedback .simple-icon-button {
@@ -977,26 +1099,17 @@
977
1099
  height: 28px;
978
1100
  }
979
1101
 
980
- /* Krate component token bridge --------------------------------------------- */
981
- .simple-content .krate-aside {
982
- margin: 1.2rem 0;
983
- }
984
-
985
- .simple-content .krate-card {
986
- background: var(--simple-bg-raised);
987
- }
988
-
989
- /* Responsive ---------------------------------------------------------------- */
1102
+ /* Responsive */
990
1103
  @media (min-width: 760px) {
991
1104
  .simple-social {
992
1105
  display: flex;
993
1106
  }
994
1107
  }
995
1108
 
996
- @media (max-width: 1100px) {
997
- .simple-shell {
998
- grid-template-columns: var(--simple-sidebar-width) minmax(0, 1fr);
999
- max-width: 1120px;
1109
+ @media (max-width: 1180px) {
1110
+ .simple-shell,
1111
+ .simple-page[data-toc="false"] .simple-shell {
1112
+ grid-template-columns: var(--simple-sidebar-width) minmax(0, var(--simple-measure));
1000
1113
  }
1001
1114
 
1002
1115
  .simple-toc {
@@ -1006,10 +1119,6 @@
1006
1119
  .simple-toc-mobile {
1007
1120
  display: block;
1008
1121
  }
1009
-
1010
- .simple-page[data-toc="false"] .simple-shell {
1011
- grid-template-columns: var(--simple-sidebar-width) minmax(0, 1fr);
1012
- }
1013
1122
  }
1014
1123
 
1015
1124
  @media (max-width: 900px) {
@@ -1020,7 +1129,8 @@
1020
1129
  .simple-header-switchers,
1021
1130
  .simple-social,
1022
1131
  .simple-search-link,
1023
- .simple-sidebar {
1132
+ .simple-sidebar,
1133
+ .simple-content .heading-anchor {
1024
1134
  display: none;
1025
1135
  }
1026
1136
 
@@ -1030,17 +1140,13 @@
1030
1140
 
1031
1141
  .simple-shell,
1032
1142
  .simple-page[data-toc="false"] .simple-shell {
1033
- grid-template-columns: minmax(0, 1fr);
1034
- padding: 0 1rem;
1143
+ grid-template-columns: minmax(0, var(--simple-measure));
1035
1144
  gap: 0;
1145
+ padding: 0 1.25rem;
1036
1146
  }
1037
1147
 
1038
1148
  .simple-main {
1039
- padding-top: 1.1rem;
1040
- }
1041
-
1042
- .simple-toc-mobile {
1043
- display: block;
1149
+ padding-top: 1.5rem;
1044
1150
  }
1045
1151
 
1046
1152
  .simple-nav-panel {
@@ -1049,27 +1155,31 @@
1049
1155
  inset: 0;
1050
1156
  z-index: 200;
1051
1157
  }
1158
+ }
1052
1159
 
1053
- .simple-prevnext {
1054
- grid-template-columns: minmax(0, 1fr);
1160
+ @media (max-width: 600px) {
1161
+ .simple-page {
1162
+ font-size: 17px;
1055
1163
  }
1056
1164
 
1057
- .simple-hero {
1058
- padding: 1.75rem 1.25rem;
1165
+ .simple-content h1 {
1166
+ font-size: 2.1rem;
1059
1167
  }
1060
- }
1061
1168
 
1062
- @media (max-width: 520px) {
1063
- .simple-header-actions {
1064
- gap: 0.3rem;
1169
+ .simple-content h2 {
1170
+ font-size: 1.45rem;
1065
1171
  }
1066
1172
 
1067
- .simple-content h1 {
1068
- font-size: 1.7rem;
1173
+ .simple-prevnext {
1174
+ grid-template-columns: minmax(0, 1fr);
1069
1175
  }
1070
1176
 
1071
- .simple-content h2 {
1072
- font-size: 1.3rem;
1177
+ .simple-prevnext-next {
1178
+ text-align: left;
1179
+ }
1180
+
1181
+ .simple-header-actions {
1182
+ gap: 0.2rem;
1073
1183
  }
1074
1184
  }
1075
1185
 
@@ -1081,3 +1191,63 @@
1081
1191
  transition-duration: 0.01ms !important;
1082
1192
  }
1083
1193
  }
1194
+
1195
+ @media print {
1196
+ .simple-page {
1197
+ --simple-bg: #fff;
1198
+ --simple-fg: #000;
1199
+ --simple-fg-soft: #222;
1200
+ --simple-muted: #444;
1201
+ --simple-code-bg: #f4f4f4;
1202
+ --simple-code-fg: #000;
1203
+ background: #fff;
1204
+ font-size: 11pt;
1205
+ }
1206
+
1207
+ .simple-skip,
1208
+ .simple-version-banner,
1209
+ .simple-header,
1210
+ .simple-nav-panel,
1211
+ .simple-sidebar,
1212
+ .simple-toc,
1213
+ .simple-toc-mobile,
1214
+ .simple-prevnext,
1215
+ .simple-page-footer,
1216
+ .simple-content .krate-code-copy {
1217
+ display: none !important;
1218
+ }
1219
+
1220
+ .simple-shell {
1221
+ display: block;
1222
+ padding: 0;
1223
+ }
1224
+
1225
+ .simple-main {
1226
+ padding: 0;
1227
+ }
1228
+
1229
+ .simple-content pre,
1230
+ .simple-content .krate-code-block {
1231
+ border: 1px solid #ccc;
1232
+ white-space: pre-wrap;
1233
+ overflow-wrap: anywhere;
1234
+ break-inside: avoid;
1235
+ }
1236
+
1237
+ .simple-content table,
1238
+ .simple-content blockquote,
1239
+ .simple-content img {
1240
+ break-inside: avoid;
1241
+ }
1242
+
1243
+ .simple-content :is(h1, h2, h3, h4) {
1244
+ break-after: avoid;
1245
+ }
1246
+
1247
+ .simple-content a:not([class])[href^="http"]::after {
1248
+ content: " (" attr(href) ")";
1249
+ color: var(--simple-muted);
1250
+ font-size: 0.85em;
1251
+ overflow-wrap: anywhere;
1252
+ }
1253
+ }