@frontfactory/vitepress-theme 1.7.0 → 1.8.0

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +148 -5
  3. package/config.d.ts +26 -1
  4. package/config.js +165 -21
  5. package/dist/style.css +1 -1
  6. package/node/llms.js +31 -0
  7. package/node/og.js +159 -0
  8. package/node/pages.js +154 -0
  9. package/node/rss.js +81 -0
  10. package/package.json +42 -28
  11. package/src/blog/posts.data.ts +46 -0
  12. package/src/components/FfBackToTop.vue +18 -9
  13. package/src/components/FfBanner.vue +24 -6
  14. package/src/components/FfCopyStatus.vue +64 -0
  15. package/src/components/FfDocMeta.vue +41 -2
  16. package/src/components/FfFeature.vue +18 -7
  17. package/src/components/FfFeedback.vue +96 -0
  18. package/src/components/FfHero.vue +16 -6
  19. package/src/components/FfHeroCommand.vue +20 -34
  20. package/src/components/FfHomeSponsors.vue +2 -2
  21. package/src/components/FfNavBarTitle.vue +63 -0
  22. package/src/components/FfPost.vue +49 -0
  23. package/src/components/FfProgress.vue +69 -0
  24. package/src/components/FfVersionSwitcher.vue +20 -0
  25. package/src/composables/blog.ts +38 -0
  26. package/src/composables/options.ts +12 -1
  27. package/src/composables/tabs.ts +155 -0
  28. package/src/content/Api.vue +6 -2
  29. package/src/content/Badge.vue +26 -0
  30. package/src/content/Callout.vue +27 -0
  31. package/src/content/FileTree.vue +118 -0
  32. package/src/content/Tab.vue +11 -0
  33. package/src/content/Tabs.vue +74 -0
  34. package/src/content/Timeline.vue +19 -0
  35. package/src/content/TimelineItem.vue +37 -0
  36. package/src/content/timeline.ts +4 -0
  37. package/src/index.ts +37 -1
  38. package/src/internal.ts +7 -2
  39. package/src/layout/FfBlog.vue +62 -0
  40. package/src/layout/FfLayout.vue +17 -1
  41. package/src/styles/_base.scss +1 -5
  42. package/src/styles/_blocks.scss +25 -1
  43. package/src/styles/_blog.scss +131 -0
  44. package/src/styles/_breakpoints.scss +26 -0
  45. package/src/styles/_code.scss +5 -5
  46. package/src/styles/_content.scss +276 -7
  47. package/src/styles/_doc.scss +18 -5
  48. package/src/styles/_home.scss +37 -17
  49. package/src/styles/_motion.scss +12 -3
  50. package/src/styles/_nav.scss +81 -8
  51. package/src/styles/_print.scss +77 -0
  52. package/src/styles/_sidebar.scss +2 -2
  53. package/src/styles/_tokens.scss +73 -7
  54. package/src/styles/index.scss +2 -0
  55. package/src/types.ts +122 -0
  56. package/types/blog/posts.data.d.ts +14 -0
  57. package/types/components/FfBackToTop.vue.d.ts +3 -0
  58. package/types/components/FfBanner.vue.d.ts +3 -0
  59. package/types/components/FfCopyStatus.vue.d.ts +3 -0
  60. package/types/components/FfDocMeta.vue.d.ts +3 -0
  61. package/types/components/FfFeature.vue.d.ts +13 -0
  62. package/types/components/FfFeedback.vue.d.ts +3 -0
  63. package/types/components/FfFooter.vue.d.ts +3 -0
  64. package/types/components/FfHero.vue.d.ts +42 -0
  65. package/types/components/FfHeroCommand.vue.d.ts +9 -0
  66. package/types/components/FfHomeSponsors.vue.d.ts +19 -0
  67. package/types/components/FfNavBarTitle.vue.d.ts +17 -0
  68. package/types/components/FfPost.vue.d.ts +3 -0
  69. package/types/components/FfProgress.vue.d.ts +3 -0
  70. package/types/components/FfVersionSwitcher.vue.d.ts +3 -0
  71. package/types/composables/blog.d.ts +10 -0
  72. package/types/composables/link.d.ts +12 -0
  73. package/types/composables/options.d.ts +15 -0
  74. package/types/composables/relativeTime.d.ts +2 -0
  75. package/types/composables/tabs.d.ts +15 -0
  76. package/types/content/Api.vue.d.ts +27 -0
  77. package/types/content/Badge.vue.d.ts +21 -0
  78. package/types/content/Callout.vue.d.ts +24 -0
  79. package/types/content/Card.vue.d.ts +23 -0
  80. package/types/content/CardGrid.vue.d.ts +20 -0
  81. package/types/content/FileTree.vue.d.ts +6 -0
  82. package/types/content/Kbd.vue.d.ts +15 -0
  83. package/types/content/Steps.vue.d.ts +15 -0
  84. package/types/content/Tab.vue.d.ts +19 -0
  85. package/types/content/Tabs.vue.d.ts +7 -0
  86. package/types/content/Timeline.vue.d.ts +21 -0
  87. package/types/content/TimelineItem.vue.d.ts +21 -0
  88. package/types/content/timeline.d.ts +3 -0
  89. package/types/index.d.ts +25 -0
  90. package/types/internal.d.ts +9 -0
  91. package/types/layout/FfBlog.vue.d.ts +3 -0
  92. package/types/layout/FfLayout.vue.d.ts +23 -0
  93. package/types/types.d.ts +256 -0
@@ -0,0 +1,26 @@
1
+ // ============================================================================================= //
2
+ // BREAKPOINTS //
3
+ // ============================================================================================= //
4
+
5
+ @use "sass:map";
6
+
7
+ // The three widths every partial lays out against. Media queries cannot read custom properties,
8
+ // so these stay Sass values rather than --ff-* tokens.
9
+
10
+ $widths: (
11
+ "sm": 640px,
12
+ "md": 960px,
13
+ "lg": 1280px
14
+ );
15
+
16
+ @mixin up($name) {
17
+ @media (width >= map.get($widths, $name)) {
18
+ @content;
19
+ }
20
+ }
21
+
22
+ @mixin down($name) {
23
+ @media (width < map.get($widths, $name)) {
24
+ @content;
25
+ }
26
+ }
@@ -53,11 +53,8 @@
53
53
  border-radius: #{mg.ref("radius-sm")};
54
54
  background-color: transparent;
55
55
  background-size: 0.875rem;
56
- opacity: 0.55;
57
- }
58
56
 
59
- .vp-doc [class*="language-"]:hover > button.copy,
60
- .vp-doc [class*="language-"] > button.copy:focus {
57
+ // Fully opaque at rest: dimmed, the grey icon falls under the 3:1 non-text contrast minimum.
61
58
  opacity: 1;
62
59
  }
63
60
 
@@ -75,7 +72,7 @@
75
72
  font-family: #{mg.ref("font-mono")};
76
73
  font-size: #{mg.ref("size-label")};
77
74
  text-transform: uppercase;
78
- letter-spacing: 0.06em;
75
+ letter-spacing: #{mg.ref("tracking-label-tight")};
79
76
  }
80
77
 
81
78
  .vp-doc div[class*="language-"].line-numbers-mode {
@@ -111,8 +108,11 @@
111
108
  box-shadow: inset #{mg.ref("rule-accent-width")} 0 0 0 #{mg.ref("color-success")};
112
109
  }
113
110
 
111
+ // The default theme also fades a removed line to 0.7, which drops its tokens below 4.5:1; the
112
+ // rule and the "-" marker already say the line is gone.
114
113
  .vp-doc [class*="language-"] code .diff.remove {
115
114
  box-shadow: inset #{mg.ref("rule-accent-width")} 0 0 0 #{mg.ref("color-danger")};
115
+ opacity: 1;
116
116
  }
117
117
 
118
118
  // ----------------------------------------------------------------------------------------- //
@@ -2,6 +2,7 @@
2
2
  // THEME COMPONENTS //
3
3
  // ============================================================================================= //
4
4
 
5
+ @use "breakpoints" as bp;
5
6
  @use "theme" as mg;
6
7
 
7
8
  // The dismissal class is set on <html>, outside the themed root. It carries the themed root in the
@@ -161,6 +162,7 @@
161
162
  // ----------------------------------------------------------------------------------------- //
162
163
 
163
164
  .ff-doc-meta {
165
+ display: flex;
164
166
  flex-wrap: wrap;
165
167
  gap: 0.75rem;
166
168
  margin-bottom: 1.5rem;
@@ -173,6 +175,43 @@
173
175
  margin-right: 0.75rem;
174
176
  }
175
177
 
178
+ // Pushed to the end of the row and framed like the hero copy button, so it reads as a control
179
+ // rather than one more piece of metadata.
180
+
181
+ .ff-doc-meta-copy {
182
+ display: inline-flex;
183
+ align-items: center;
184
+ gap: 0.5em;
185
+ margin-left: auto;
186
+ padding: 0.375rem 0.625rem;
187
+ border: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
188
+ border-radius: #{mg.ref("radius-sm")};
189
+ background: transparent;
190
+ font: inherit;
191
+ letter-spacing: inherit;
192
+ text-transform: inherit;
193
+ color: inherit;
194
+ cursor: pointer;
195
+ }
196
+
197
+ .ff-doc-meta-copy::before {
198
+ content: "";
199
+ width: 0.875rem;
200
+ height: 0.875rem;
201
+ background: var(--vp-icon-copy) 50% / contain no-repeat;
202
+ }
203
+
204
+ .ff-doc-meta-copy:hover,
205
+ .ff-doc-meta-copy.copied {
206
+ border-color: #{mg.ref("color-rule-strong")};
207
+ background-color: #{mg.ref("color-surface-alt")};
208
+ color: #{mg.ref("color-ink")};
209
+ }
210
+
211
+ .ff-doc-meta-copy.copied::before {
212
+ background-image: var(--vp-icon-copied);
213
+ }
214
+
176
215
  // ----------------------------------------------------------------------------------------- //
177
216
  // Back to top
178
217
  // ----------------------------------------------------------------------------------------- //
@@ -191,10 +230,6 @@
191
230
  opacity: 0;
192
231
  transform: translateY(0.5rem);
193
232
  pointer-events: none;
194
- transition:
195
- opacity #{mg.ref("motion-duration")} #{mg.ref("motion-ease")},
196
- transform #{mg.ref("motion-duration")} #{mg.ref("motion-ease")},
197
- border-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
198
233
  }
199
234
 
200
235
  .ff-to-top.is-visible {
@@ -203,6 +238,62 @@
203
238
  pointer-events: auto;
204
239
  }
205
240
 
241
+ // ----------------------------------------------------------------------------------------- //
242
+ // Reading progress
243
+ // ----------------------------------------------------------------------------------------- //
244
+
245
+ // One step above the layout-top band, so it also covers the banner and the navigation.
246
+
247
+ .ff-progress {
248
+ position: fixed;
249
+ top: 0;
250
+ right: 0;
251
+ left: 0;
252
+ z-index: calc(var(--vp-z-index-layout-top) + 1);
253
+ height: 2px;
254
+ background: #{mg.ref("color-accent")};
255
+ transform-origin: left;
256
+ pointer-events: none;
257
+ }
258
+
259
+ // ----------------------------------------------------------------------------------------- //
260
+ // Page feedback
261
+ // ----------------------------------------------------------------------------------------- //
262
+
263
+ .ff-feedback {
264
+ display: flex;
265
+ flex-wrap: wrap;
266
+ align-items: center;
267
+ gap: 0.75rem 1rem;
268
+ margin-bottom: 1.5rem;
269
+ padding-top: 1.5rem;
270
+ border-top: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
271
+ }
272
+
273
+ .ff-feedback-question,
274
+ .ff-feedback-thanks {
275
+ margin: 0;
276
+ }
277
+
278
+ .ff-feedback-actions {
279
+ display: flex;
280
+ gap: 0.5rem;
281
+ }
282
+
283
+ .ff-feedback-button {
284
+ padding: 0.5rem 0.75rem;
285
+ border: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
286
+ border-radius: #{mg.ref("radius-sm")};
287
+ background: transparent;
288
+ color: #{mg.ref("color-ink-muted")};
289
+ cursor: pointer;
290
+ }
291
+
292
+ .ff-feedback-button:hover {
293
+ border-color: #{mg.ref("color-rule-strong")};
294
+ background: #{mg.ref("color-surface-alt")};
295
+ }
296
+
206
297
  // ----------------------------------------------------------------------------------------- //
207
298
  // Footer
208
299
  // ----------------------------------------------------------------------------------------- //
@@ -288,7 +379,7 @@
288
379
  margin: 0;
289
380
  }
290
381
 
291
- @media (width >= 768px) {
382
+ @include bp.up("sm") {
292
383
  .ff-footer {
293
384
  padding: 4rem 3rem 2.5rem;
294
385
  }
@@ -317,7 +408,6 @@
317
408
  border: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
318
409
  border-radius: #{mg.ref("radius-md")};
319
410
  background: #{mg.ref("color-surface")};
320
- transition: border-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
321
411
  }
322
412
 
323
413
  .vp-doc a.ff-card {
@@ -353,7 +443,7 @@
353
443
  color: #{mg.ref("color-ink-muted")};
354
444
  }
355
445
 
356
- @media (width <= 640px) {
446
+ @include bp.down("sm") {
357
447
  .vp-doc .ff-card-grid {
358
448
  grid-template-columns: minmax(0, 1fr);
359
449
  }
@@ -471,4 +561,183 @@
471
561
  text-align: center;
472
562
  color: #{mg.ref("color-ink-muted")};
473
563
  }
564
+
565
+ // ----------------------------------------------------------------------------------------- //
566
+ // Tabs
567
+ // ----------------------------------------------------------------------------------------- //
568
+
569
+ .vp-doc .ff-tabs {
570
+ margin: 1.5rem 0;
571
+ }
572
+
573
+ .vp-doc .ff-tabs-list {
574
+ display: flex;
575
+ flex-wrap: wrap;
576
+ margin-bottom: 1rem;
577
+ border-bottom: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
578
+ }
579
+
580
+ .vp-doc .ff-tabs-tab {
581
+ position: relative;
582
+ padding: 0 0.75rem 0.625rem;
583
+ border: 0;
584
+ background: transparent;
585
+ font-family: #{mg.ref("font-mono")};
586
+ font-size: #{mg.ref("size-label")};
587
+ font-weight: 500;
588
+ text-transform: uppercase;
589
+ letter-spacing: #{mg.ref("tracking-label")};
590
+ color: #{mg.ref("color-ink-faint")};
591
+ cursor: pointer;
592
+ transition: color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
593
+ }
594
+
595
+ .vp-doc .ff-tabs-tab:first-child {
596
+ padding-left: 0;
597
+ }
598
+
599
+ .vp-doc .ff-tabs-tab::after {
600
+ position: absolute;
601
+ right: 0;
602
+ bottom: calc(#{mg.ref("rule-accent-width")} * -1);
603
+ left: 0;
604
+ height: #{mg.ref("rule-accent-width")};
605
+ background: transparent;
606
+ content: "";
607
+ transition: background-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
608
+ }
609
+
610
+ .vp-doc .ff-tabs-tab:hover,
611
+ .vp-doc .ff-tabs-tab.active {
612
+ color: #{mg.ref("color-ink")};
613
+ }
614
+
615
+ .vp-doc .ff-tabs-tab.active::after {
616
+ background: #{mg.ref("color-accent")};
617
+ }
618
+
619
+ // The first and last blocks of a panel carry their own margins, which would double up with
620
+ // the gap under the tab list.
621
+
622
+ .vp-doc .ff-tabs-panel > :first-child {
623
+ margin-top: 0;
624
+ }
625
+
626
+ .vp-doc .ff-tabs-panel > :last-child {
627
+ margin-bottom: 0;
628
+ }
629
+
630
+ // ----------------------------------------------------------------------------------------- //
631
+ // File tree
632
+ // ----------------------------------------------------------------------------------------- //
633
+
634
+ .vp-doc .ff-filetree {
635
+ margin: 1.75rem 0;
636
+ font-family: #{mg.ref("font-mono")};
637
+ font-size: 0.875rem;
638
+ }
639
+
640
+ .vp-doc .ff-filetree ul {
641
+ margin: 0;
642
+ padding: 0;
643
+ list-style: none;
644
+ }
645
+
646
+ // Each level hangs from a hairline guide, like the rail of the steps.
647
+
648
+ .vp-doc .ff-filetree ul ul {
649
+ margin-left: 0.5rem;
650
+ padding-left: 1rem;
651
+ border-left: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
652
+ }
653
+
654
+ .vp-doc .ff-filetree li {
655
+ margin: 0;
656
+ padding: 0.125rem 0;
657
+ line-height: 1.6;
658
+ }
659
+
660
+ .vp-doc .ff-filetree .is-file > .ff-filetree-name {
661
+ color: #{mg.ref("color-ink-muted")};
662
+ }
663
+
664
+ .vp-doc .ff-filetree .is-folder > .ff-filetree-name {
665
+ font-weight: 500;
666
+ color: #{mg.ref("color-ink")};
667
+ }
668
+
669
+ .vp-doc .ff-filetree .is-folder > .ff-filetree-name::after {
670
+ content: "/";
671
+ color: #{mg.ref("color-ink-faint")};
672
+ }
673
+
674
+ .vp-doc .ff-filetree code {
675
+ padding: 0;
676
+ background: transparent;
677
+ font-size: inherit;
678
+ color: inherit;
679
+ }
680
+
681
+ // ----------------------------------------------------------------------------------------- //
682
+ // Timeline
683
+ // ----------------------------------------------------------------------------------------- //
684
+
685
+ // The same ruled rail as the steps, with a square marker on the line instead of a number.
686
+
687
+ .vp-doc .ff-timeline {
688
+ margin: 1.75rem 0;
689
+ padding-left: 2.5rem;
690
+ border-left: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
691
+ }
692
+
693
+ .vp-doc .ff-timeline-item {
694
+ position: relative;
695
+ padding-bottom: 1.75rem;
696
+ }
697
+
698
+ .vp-doc .ff-timeline-item:last-child {
699
+ padding-bottom: 0;
700
+ }
701
+
702
+ .vp-doc .ff-timeline-item::before {
703
+ position: absolute;
704
+ top: 0.3125rem;
705
+ left: -2.8125rem;
706
+ width: 0.625rem;
707
+ height: 0.625rem;
708
+ border: #{mg.ref("rule-accent-width")} solid #{mg.ref("color-accent")};
709
+ background: #{mg.ref("color-paper")};
710
+ content: "";
711
+ }
712
+
713
+ .vp-doc .ff-timeline-date {
714
+ margin: 0;
715
+ font-family: #{mg.ref("font-mono")};
716
+ font-size: #{mg.ref("size-label")};
717
+ text-transform: uppercase;
718
+ letter-spacing: #{mg.ref("tracking-label")};
719
+ color: #{mg.ref("color-ink-faint")};
720
+ }
721
+
722
+ .vp-doc .ff-timeline-title {
723
+ margin: 0.25rem 0 0;
724
+ padding: 0;
725
+ border: 0;
726
+ font-family: #{mg.ref("font-display")};
727
+ font-size: 1.0625rem;
728
+
729
+ // Pinned rather than inherited: the title can be any heading level (see Timeline `level`).
730
+ font-weight: 600;
731
+ font-variation-settings: "opsz" 32;
732
+ line-height: 1.75rem;
733
+ letter-spacing: normal;
734
+ }
735
+
736
+ .vp-doc .ff-timeline-body > :first-child {
737
+ margin-top: 0.5rem;
738
+ }
739
+
740
+ .vp-doc .ff-timeline-body > :last-child {
741
+ margin-bottom: 0;
742
+ }
474
743
  }
@@ -2,6 +2,7 @@
2
2
  // DOCUMENT //
3
3
  // ============================================================================================= //
4
4
 
5
+ @use "breakpoints" as bp;
5
6
  @use "theme" as mg;
6
7
 
7
8
  // The frame: the band every page lives in.
@@ -13,7 +14,7 @@
13
14
 
14
15
 
15
16
  .ff-theme {
16
- @media (width >= 960px) {
17
+ @include bp.up("md") {
17
18
  .VPSidebar {
18
19
  padding-left: var(--ff-frame);
19
20
  width: calc(var(--ff-frame) + var(--vp-sidebar-width));
@@ -39,7 +40,7 @@
39
40
  // The outline lives in a container of a fixed width, so the column that holds it must never be
40
41
  // squeezed by the text: it would spill out of the band, past the bar above it.
41
42
 
42
- @media (width >= 1280px) {
43
+ @include bp.up("lg") {
43
44
  .VPDoc .aside {
44
45
  flex: 0 0 auto;
45
46
  width: 16rem;
@@ -67,6 +68,19 @@
67
68
  max-width: none;
68
69
  }
69
70
 
71
+ // `wide: true` in the frontmatter: wide tables and API listings take the full band and give the
72
+ // outline column back.
73
+
74
+ &[data-layout="wide"] {
75
+ .VPDoc .content-container {
76
+ max-width: #{mg.ref("layout-wide")};
77
+ }
78
+
79
+ .VPDoc .aside {
80
+ display: none;
81
+ }
82
+ }
83
+
70
84
  // ----------------------------------------------------------------------------------------- //
71
85
  // Headings
72
86
  // ----------------------------------------------------------------------------------------- //
@@ -176,7 +190,7 @@
176
190
  color: #{mg.ref("color-accent")};
177
191
  text-decoration-thickness: 1px;
178
192
  text-underline-offset: 0.2em;
179
- text-decoration-color: #{mg.ref("color-accent-soft")};
193
+ text-decoration-color: color-mix(in srgb, #{mg.ref("color-accent")} 55%, transparent);
180
194
  transition: text-decoration-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
181
195
  }
182
196
 
@@ -375,7 +389,7 @@
375
389
  font-weight: 600;
376
390
  line-height: 1.4;
377
391
  text-transform: uppercase;
378
- letter-spacing: 0.08em;
392
+ letter-spacing: #{mg.ref("tracking-label-wide")};
379
393
  color: #{mg.ref("color-ink")};
380
394
  }
381
395
 
@@ -395,7 +409,6 @@
395
409
  white-space: normal;
396
410
  overflow: visible;
397
411
  overflow-wrap: break-word;
398
- transition: color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
399
412
  }
400
413
 
401
414
  .VPDocAsideOutline .outline-link:hover {
@@ -2,6 +2,7 @@
2
2
  // HOME //
3
3
  // ============================================================================================= //
4
4
 
5
+ @use "breakpoints" as bp;
5
6
  @use "theme" as mg;
6
7
 
7
8
  .ff-theme {
@@ -163,7 +164,7 @@
163
164
  border: #{mg.ref("rule-width")} solid #{mg.ref("color-rule")};
164
165
  border-radius: #{mg.ref("radius-md")};
165
166
  background: #{mg.ref("color-surface")};
166
- box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.05);
167
+ box-shadow: 0 1.5rem 3rem #{mg.ref("color-shadow-sm")};
167
168
  }
168
169
 
169
170
  .ff-hero-panel-label {
@@ -321,9 +322,6 @@
321
322
  background-repeat: no-repeat;
322
323
  background-size: 0.875rem;
323
324
  cursor: pointer;
324
- transition:
325
- border-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")},
326
- background-color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
327
325
  }
328
326
 
329
327
  .ff-hero-copy:hover {
@@ -354,7 +352,7 @@
354
352
  height: auto;
355
353
  }
356
354
 
357
- @media (width >= 960px) {
355
+ @include bp.up("md") {
358
356
  .ff-hero-image {
359
357
  max-width: none;
360
358
  }
@@ -398,13 +396,13 @@
398
396
  color: #{mg.ref("color-ink")};
399
397
  }
400
398
 
401
- @media (width >= 640px) {
399
+ @include bp.up("sm") {
402
400
  .ff-hero {
403
401
  padding: calc(var(--ff-hero-offset) + 2rem) 3rem 4rem;
404
402
  }
405
403
  }
406
404
 
407
- @media (width >= 960px) {
405
+ @include bp.up("md") {
408
406
  .ff-hero {
409
407
  padding: calc(var(--ff-hero-offset) + 2.25rem) 4rem 4.5rem;
410
408
  }
@@ -542,7 +540,7 @@
542
540
  transition: color #{mg.ref("motion-duration")} #{mg.ref("motion-ease")};
543
541
  }
544
542
 
545
- a.ff-feature:hover .ff-feature-index::before {
543
+ .ff-feature-linked:hover .ff-feature-index::before {
546
544
  color: #{mg.ref("color-accent")};
547
545
  }
548
546
 
@@ -566,6 +564,28 @@
566
564
  color: #{mg.ref("color-ink")};
567
565
  }
568
566
 
567
+ .ff-feature-anchor {
568
+ color: inherit;
569
+ text-decoration: none;
570
+ }
571
+
572
+ // Stretched over the whole card, so it stays clickable everywhere.
573
+ .ff-feature-anchor::before {
574
+ content: "";
575
+ position: absolute;
576
+ inset: 0;
577
+ }
578
+
579
+ // The focus ring goes around the card the link covers, not around the title alone.
580
+ .ff-feature-anchor:focus-visible {
581
+ outline: none;
582
+ }
583
+
584
+ .ff-feature:has(.ff-feature-anchor:focus-visible) {
585
+ outline: 2px solid #{mg.ref("color-accent")};
586
+ outline-offset: -2px;
587
+ }
588
+
569
589
  .ff-feature-icon + .ff-feature-title {
570
590
  margin-top: 1.5rem;
571
591
  }
@@ -589,7 +609,7 @@
589
609
  color: #{mg.ref("color-accent")};
590
610
  }
591
611
 
592
- @media (width >= 640px) {
612
+ @include bp.up("sm") {
593
613
  .VPFeatures {
594
614
  padding: 3rem 3rem 3.5rem;
595
615
  }
@@ -599,7 +619,7 @@
599
619
  }
600
620
  }
601
621
 
602
- @media (width >= 960px) {
622
+ @include bp.up("md") {
603
623
  .VPFeatures {
604
624
  padding: 3.5rem 4rem 4rem;
605
625
  }
@@ -699,12 +719,12 @@
699
719
  // dead padding. Fixed values here instead, sized so the mark actually fills its tile.
700
720
 
701
721
  .ff-sponsors-grid .vp-sponsor-grid-link {
702
- min-height: 90px;
722
+ min-height: 5.625rem;
703
723
  }
704
724
 
705
725
  .ff-sponsors-grid .vp-sponsor-grid-image {
706
- max-width: 120px;
707
- max-height: 32px;
726
+ max-width: 7.5rem;
727
+ max-height: 2rem;
708
728
  }
709
729
 
710
730
  // Same background band as the default (`--vp-c-bg-soft`, already remapped to the theme's own
@@ -715,11 +735,11 @@
715
735
  display: flex;
716
736
  align-items: center;
717
737
  justify-content: flex-start;
718
- height: 60px;
738
+ height: 3.75rem;
719
739
  margin: 0 0 0.25rem;
720
740
  padding: 0 1.25rem;
721
741
  font-family: #{mg.ref("font-mono")};
722
- font-size: 14px;
742
+ font-size: 0.875rem;
723
743
  font-weight: 500;
724
744
  letter-spacing: #{mg.ref("tracking-label")};
725
745
  text-align: left;
@@ -731,7 +751,7 @@
731
751
  margin-top: 2rem;
732
752
  }
733
753
 
734
- @media (width >= 640px) {
754
+ @include bp.up("sm") {
735
755
  .ff-sponsors {
736
756
  padding: 3rem 3rem 3.5rem;
737
757
  }
@@ -742,7 +762,7 @@
742
762
  }
743
763
  }
744
764
 
745
- @media (width >= 960px) {
765
+ @include bp.up("md") {
746
766
  .ff-sponsors {
747
767
  padding: 3.5rem 4rem 4rem;
748
768
  }
@@ -41,6 +41,14 @@
41
41
  animation: ff-drift 26s #{mg.ref("motion-ease")} infinite alternate;
42
42
  }
43
43
 
44
+ // The washes are off by default (--ff-hero-glow-opacity: 0). Where style queries exist,
45
+ // do not run a 26s loop on two large layers nobody can see.
46
+ @container style(--ff-hero-glow-opacity: 0) {
47
+ .ff-hero-glow {
48
+ animation: none;
49
+ }
50
+ }
51
+
44
52
  .ff-hero-kicker,
45
53
  .ff-hero-title,
46
54
  .ff-hero-tagline,
@@ -48,7 +56,7 @@
48
56
  .ff-hero-panel,
49
57
  .ff-hero-meta,
50
58
  .ff-hero-image {
51
- animation: ff-rise 0.65s #{mg.ref("motion-ease")} both;
59
+ animation: ff-rise #{mg.ref("motion-duration-enter")} #{mg.ref("motion-ease")} both;
52
60
  }
53
61
 
54
62
  .ff-hero-title {
@@ -152,7 +160,7 @@
152
160
  transition: opacity #{mg.ref("motion-duration-slow")} #{mg.ref("motion-ease")};
153
161
  }
154
162
 
155
- a.ff-feature:hover::after {
163
+ .ff-feature-linked:hover::after {
156
164
  opacity: 1;
157
165
  }
158
166
 
@@ -219,7 +227,8 @@
219
227
  .ff-to-top,
220
228
  .ff-hero-command-tab,
221
229
  .ff-hero-command-tab::after,
222
- .ff-hero-copy {
230
+ .ff-hero-copy,
231
+ .VPNavBarMenuLink::after {
223
232
  transition: none;
224
233
  }
225
234
  }