|
1 | | -// Applied to the brand Hero's root <section>. The hero background image is |
2 | | -// baked in here (not a Hero.Image visual slot), so these rules must stay. |
3 | | -.section { |
4 | | - height: 21rem; |
5 | | - // Brand Hero's root is display:flex/column but defaults to top alignment; |
6 | | - // restore the vertical centering the old `flex-justify-center` provided. |
| 1 | +// Docs 2026 homepage hero: a left-aligned title block stacked above a muted |
| 2 | +// search band, both inside bordered rails. No background image — the mountains |
| 3 | +// graphic is a separate, out-of-scope band. |
| 4 | +.hero { |
| 5 | + border-bottom: var(--brand-borderWidth-thin, 1px) solid |
| 6 | + var(--brand-color-border-muted); |
| 7 | +} |
| 8 | + |
| 9 | +// Bordered rails, centred with the same max width as the "All Docs" grid. |
| 10 | +.rails { |
| 11 | + max-width: 82rem; |
| 12 | + margin: 0 auto; |
| 13 | + border-inline: var(--brand-borderWidth-thin, 1px) solid |
| 14 | + var(--brand-color-border-muted); |
| 15 | +} |
| 16 | + |
| 17 | +.titleRow { |
| 18 | + padding: 4rem 1.5rem 1.5rem; |
| 19 | +} |
| 20 | + |
| 21 | +.title { |
| 22 | + margin: 0; |
| 23 | +} |
| 24 | + |
| 25 | +.lede { |
| 26 | + margin: 1rem 0 0; |
| 27 | +} |
| 28 | + |
| 29 | +// Search entry that mimics an input but opens the shared SearchOverlay on |
| 30 | +// activation. A full-width muted band with the placeholder on the left and a |
| 31 | +// trailing "/" key hint, separated from the title by a top border. |
| 32 | +.searchRow { |
| 33 | + display: flex; |
| 34 | + align-items: center; |
| 35 | + justify-content: space-between; |
| 36 | + gap: 1rem; |
| 37 | + width: 100%; |
| 38 | + padding: 1.5rem; |
| 39 | + border: 0; |
| 40 | + border-top: var(--brand-borderWidth-thin, 1px) solid |
| 41 | + var(--brand-color-border-muted); |
| 42 | + background-color: var(--color-canvas-subtle); |
| 43 | + cursor: text; |
| 44 | + text-align: left; |
| 45 | + |
| 46 | + &:hover { |
| 47 | + background-color: var(--color-canvas-inset); |
| 48 | + } |
| 49 | + |
| 50 | + &:focus-visible { |
| 51 | + outline: 2px solid var(--color-accent-fg); |
| 52 | + outline-offset: -2px; |
| 53 | + } |
| 54 | +} |
| 55 | + |
| 56 | +.searchPlaceholder { |
| 57 | + color: var(--color-fg-muted); |
| 58 | + font-size: 1.5rem; |
| 59 | +} |
| 60 | + |
| 61 | +.searchHint { |
| 62 | + display: inline-flex; |
| 63 | + align-items: center; |
7 | 64 | justify-content: center; |
8 | | - background-image: image-set( |
9 | | - url("/assets/images/banner-images/hero-home.webp") type("image/webp"), |
10 | | - url("/assets/images/banner-images/hero-home.png") type("image/png") |
11 | | - ); |
12 | | - background-size: cover; |
13 | | - background-position: center right; |
14 | | - background-repeat: no-repeat; |
15 | | -} |
16 | | - |
17 | | -.section h1 { |
18 | | - font-size: 4rem; |
19 | | - line-height: 1.2; |
20 | | -} |
21 | | - |
22 | | -// Frosted-glass panel keeping heading/lede readable over the background image. |
23 | | -.content { |
24 | | - backdrop-filter: blur(1rem); |
25 | | - background-color: color-mix( |
26 | | - in srgb, |
27 | | - var(--color-canvas-subtle) 70%, |
28 | | - transparent |
29 | | - ); |
| 65 | + min-width: 2rem; |
| 66 | + padding: 0.375rem 0.75rem; |
| 67 | + border-radius: var(--brand-borderRadius-medium, 8px); |
| 68 | + background-color: var(--brand-color-border-muted); |
| 69 | + color: var(--color-fg-default); |
| 70 | + font-family: inherit; |
| 71 | + font-size: 1.25rem; |
| 72 | + line-height: 1; |
30 | 73 | } |
0 commit comments