|
67 | 67 | color: var(--src-muted); |
68 | 68 | } |
69 | 69 |
|
| 70 | +/* Mobile nav (<768px): the search trigger and the hamburger share the carbon |
| 71 | + `.home.top` bar. The .DocSearch-Button rules above give the trigger its |
| 72 | + source-world ghost look (the paper-world fill lives in doc-pages.css, scoped |
| 73 | + off `.home.top`). The remaining mobile-only piece is the hamburger's three |
| 74 | + bars, which default to the paper world's dark ink (--vp-c-text-1) and are |
| 75 | + near-invisible on carbon — re-tint them to the source world. */ |
| 76 | +.VPNavBar.home.top .DocSearch-Button:hover .DocSearch-Search-Icon { |
| 77 | + background-color: var(--src-fg); |
| 78 | +} |
| 79 | +.VPNavBar.home.top .VPNavBarHamburger .top, |
| 80 | +.VPNavBar.home.top .VPNavBarHamburger .middle, |
| 81 | +.VPNavBar.home.top .VPNavBarHamburger .bottom { |
| 82 | + background-color: var(--src-fg); |
| 83 | +} |
| 84 | +.VPNavBar.home.top .VPNavBarHamburger:hover .top, |
| 85 | +.VPNavBar.home.top .VPNavBarHamburger:hover .middle, |
| 86 | +.VPNavBar.home.top .VPNavBarHamburger:hover .bottom { |
| 87 | + background-color: var(--plum-bright); |
| 88 | +} |
| 89 | + |
| 90 | +/* ═══ Landing bottom — deliberate footer gap ═══════════════════════════════ |
| 91 | + The last landing section is the carbon "agents" band; VitePress's default |
| 92 | + `.VPHome` margin-bottom (96/128px) then drops the title-block footer, which |
| 93 | + over a dark band reads as a pale void. Tighten it to a deliberate ~112px so |
| 94 | + the footer follows the band as an intended step, not empty paper. |
| 95 | + (Selector carries `.VPContent.is-home` so it outranks VitePress's scoped |
| 96 | + `.VPHome[data-v-…]` default of 96/128px.) */ |
| 97 | +.VPContent.is-home .VPHome { |
| 98 | + margin-bottom: 96px; |
| 99 | +} |
| 100 | +@media (min-width: 768px) { |
| 101 | + .VPContent.is-home .VPHome { |
| 102 | + margin-bottom: 112px; |
| 103 | + } |
| 104 | +} |
| 105 | + |
70 | 106 | /* ═══ Landing sections — full bleed ════════════════════════════════════════ |
71 | 107 | The section components render inside `.vp-doc.container` (max-width + padding). |
72 | 108 | Pull them out to the full viewport width with VitePress's own `--vp-offset` |
|
146 | 182 | user-select: none; |
147 | 183 | } |
148 | 184 | .vp-doc .agents__flag { |
149 | | - color: var(--redline); |
| 185 | + /* On-carbon redline: a FIXED lightened redline (the band is carbon in both |
| 186 | + light and dark, so --redline — which flips per mode and is only AA on paper — |
| 187 | + can't be used). #f0705f on carbon-2 (#171b23) = 5.9:1, well past AA for this |
| 188 | + micro-label, and stays redline-family (distinct from the plum keys). */ |
| 189 | + color: #f0705f; |
150 | 190 | } |
151 | 191 | .vp-doc .agents__key { |
152 | 192 | color: var(--plum-bright); |
|
0 commit comments