Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/styles/custom.css
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 396)

Citation: Requested by prithvi in Slack to align the down carets in the docs sidebar. The fix uses flexbox with justify-content: space-between on summary elements to push carets consistently to the right edge.
View source

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 318)

Citation: Per InlinePizza's feedback: removed right padding from .sidebar-content details details > summary instead of using absolute positioning. This preserves the native caret rotation animation while still achieving proper alignment.
View source

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 302)

Citation: Per InlinePizza's feedback: also removed right padding from top-level summary elements (.sidebar-content .top-level > li > details > summary) to ensure carets align consistently across both top-level and nested sections.
View source

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 314)

Citation: Per InlinePizza's feedback: nested carets weren't aligning with top-level carets because nested ul elements have their own indentation. This rule removes right margin/padding from ul elements inside sidebar details, allowing nested summary carets to extend to the same right edge as top-level summaries.
View source

Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ starlight-theme-select {
}

.sidebar-content .top-level > li > details > summary {
padding: 0.18rem 0.35rem;
padding: 0.18rem 0 0.18rem 0.35rem;
}

.sidebar-content .top-level > li > details > summary .large {
Expand All @@ -310,12 +310,18 @@ starlight-theme-select {
text-transform: uppercase;
}

/* Remove right margin/padding from nested ul to allow caret alignment */
.sidebar-content details > ul {
margin-right: 0;
padding-right: 0;
}

/* Nested group headers (e.g. Triggers, Context Sources) — tone down to match links */
.sidebar-content details details > summary {
font-size: 0.875rem;
font-weight: 500;
color: color-mix(in srgb, var(--sl-color-text) 84%, #374151);
padding: 0.42rem 0.58rem;
padding: 0.42rem 0 0.42rem 0.58rem;
}

.sidebar-content details details > summary .large {
Expand Down
Loading