Skip to content

Commit b9913d0

Browse files
Roger-luoclaude
andcommitted
Align generated API panels to the shared widget language
Signature radius 0.5rem->10px (matches the site's code/install chips) and gray-5 borders -> --sl-color-hairline (matches cards, tables, asides), so the generated Python/Rust API pages share the single design-token widget system with no leftover default-Starlight shapes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8f1f73a commit b9913d0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

website/src/components/api/api.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@
184184

185185
/* <details> variant: a foldable panel with a chevron summary. */
186186
details.api-signature {
187-
border: 1px solid var(--sl-color-gray-5);
188-
border-radius: 0.5rem;
187+
border: 1px solid var(--sl-color-hairline);
188+
border-radius: 10px;
189189
overflow: hidden;
190190
background: var(--sl-color-gray-6);
191191
}
@@ -220,7 +220,7 @@ details.api-signature[open] .api-signature__chevron {
220220
transform: rotate(90deg);
221221
}
222222
details.api-signature[open] .api-signature__summary {
223-
border-bottom: 1px solid var(--sl-color-gray-5);
223+
border-bottom: 1px solid var(--sl-color-hairline);
224224
}
225225

226226
/*
@@ -237,14 +237,14 @@ details.api-signature[open] .api-signature__summary {
237237
.api-signature__code .astro-code {
238238
margin: 0;
239239
padding: 0.75rem 1rem;
240-
border-radius: 0.5rem;
240+
border-radius: 10px;
241241
font-size: var(--sl-text-sm);
242242
line-height: 1.6;
243243
tab-size: 4;
244244
}
245245
/* Standalone (non-<details>) signatures draw their own border. */
246246
.api-signature:not(details) .api-signature__code .astro-code {
247-
border: 1px solid var(--sl-color-gray-5);
247+
border: 1px solid var(--sl-color-hairline);
248248
}
249249
/* Inside a <details> the wrapper already draws the border + radius. */
250250
details.api-signature .api-signature__code .astro-code {
@@ -325,7 +325,7 @@ details.api-signature .api-signature__code .astro-code {
325325
.api-table thead th {
326326
text-align: left;
327327
padding: 0.5rem 0.75rem;
328-
border-bottom: 2px solid var(--sl-color-gray-5);
328+
border-bottom: 2px solid var(--sl-color-hairline);
329329
font-weight: 600;
330330
color: var(--sl-color-white);
331331
white-space: nowrap;

0 commit comments

Comments
 (0)