|
50 | 50 | fill: rgba(255, 255, 255, 0.8) !important; |
51 | 51 | } |
52 | 52 |
|
| 53 | +/* Docs section heading accent - keep it below the text, not through it. */ |
| 54 | +html[data-has-sidebar] .sl-markdown-content h2:not(:where(.not-content *))::before { |
| 55 | + bottom: 0.02em; |
| 56 | + height: 0.12em; |
| 57 | + left: 0; |
| 58 | + right: var(--sl-anchor-icon-space, 0); |
| 59 | + transform: none; |
| 60 | +} |
53 | 61 |
|
54 | 62 | /* ========================================================================== |
55 | 63 | Splash / Landing Page Styles |
|
137 | 145 | } |
138 | 146 |
|
139 | 147 | /* Stack container - page layout for splash. |
140 | | - The splash page needs a wider container than the default |
141 | | - --sl-content-width (50rem / 800px) because the feature sections |
142 | | - use a side-by-side layout with wide terminal ASCII art. */ |
143 | | -html[data-has-hero] .sl-container { |
144 | | - max-width: 68rem; |
| 148 | + Keep the landing page at the pre-theme width; normal docs pages use the |
| 149 | + shared Sentry Starlight theme defaults. */ |
| 150 | +html[data-has-hero]:not([data-has-sidebar]) { |
| 151 | + --sl-content-width: 67.5rem !important; |
| 152 | + --sl-content-pad-x: 2rem !important; |
| 153 | +} |
| 154 | + |
| 155 | +@media (max-width: 49.999rem) { |
| 156 | + html[data-has-hero]:not([data-has-sidebar]) { |
| 157 | + --sl-nav-height: 3.5rem !important; |
| 158 | + --sl-nav-pad-x: 1rem !important; |
| 159 | + } |
| 160 | +} |
| 161 | + |
| 162 | +@media (min-width: 50rem) { |
| 163 | + html[data-has-hero]:not([data-has-sidebar]) { |
| 164 | + --sl-nav-height: 4rem !important; |
| 165 | + --sl-nav-pad-x: 1.5rem !important; |
| 166 | + } |
| 167 | +} |
| 168 | + |
| 169 | +html[data-has-hero]:not([data-has-sidebar]) header.header { |
| 170 | + background: rgba(10, 10, 15, 0.95); |
| 171 | + border-bottom: none; |
| 172 | +} |
| 173 | + |
| 174 | +html[data-has-hero]:not([data-has-sidebar]) header.header > .header { |
| 175 | + background: transparent; |
| 176 | + backdrop-filter: none; |
| 177 | +} |
| 178 | + |
| 179 | +html[data-has-hero]:not([data-has-sidebar]) .header-homepage { |
| 180 | + display: flex; |
| 181 | + align-items: center; |
| 182 | + justify-content: space-between; |
| 183 | + gap: 1rem; |
| 184 | + height: 100%; |
| 185 | + width: 100%; |
| 186 | + max-width: var(--sl-content-width); |
| 187 | + margin: 0 auto; |
| 188 | + padding: 0; |
| 189 | +} |
| 190 | + |
| 191 | +html[data-has-hero]:not([data-has-sidebar]) .header-left { |
| 192 | + flex: 0 0 auto; |
| 193 | +} |
| 194 | + |
| 195 | +html[data-has-hero]:not([data-has-sidebar]) .header-right { |
| 196 | + display: flex; |
| 197 | + flex: 0 0 auto; |
| 198 | + align-items: center; |
| 199 | + gap: 1rem; |
| 200 | + margin-left: auto; |
| 201 | +} |
| 202 | + |
| 203 | +html[data-has-hero]:not([data-has-sidebar]) .content-panel { |
| 204 | + padding: 1.5rem var(--sl-content-pad-x); |
| 205 | +} |
| 206 | + |
| 207 | +html[data-has-hero]:not([data-has-sidebar]) .sl-container { |
| 208 | + max-width: var(--sl-content-width); |
145 | 209 | margin: 0 auto; |
146 | | - padding: 0 1.5rem; |
| 210 | + padding: 0; |
| 211 | +} |
| 212 | + |
| 213 | +html[data-has-hero]:not([data-has-sidebar]) main > .content-panel:first-child .sl-container > * + * { |
| 214 | + margin-top: 1.5rem; |
| 215 | +} |
| 216 | + |
| 217 | +html[data-has-hero]:not([data-has-sidebar]) .sl-markdown-content { |
| 218 | + line-height: 1.8; |
| 219 | +} |
| 220 | + |
| 221 | +html[data-has-hero]:not([data-has-sidebar]) .command-text { |
| 222 | + font-size: 0.875em; |
| 223 | + font-weight: 500; |
| 224 | + line-height: 1; |
| 225 | + padding: 0.2em 0.5em; |
147 | 226 | } |
148 | 227 |
|
149 | | -html[data-has-hero] main { |
| 228 | +html[data-has-hero]:not([data-has-sidebar]) main { |
150 | 229 | padding-top: 0; |
151 | 230 | } |
152 | 231 |
|
|
0 commit comments