Skip to content

Commit ba89278

Browse files
KianNHmaheshwarip
authored andcommitted
[Docs Site] Overhaul sidebar styling (#17026)
* [Docs Site] Overhaul sidebar styling * Shrink caret size, move to native nesting
1 parent f0d0979 commit ba89278

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

src/components/overrides/Sidebar.astro

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,46 @@ const lookupProductTitle = async (slug: string) => {
205205

206206
<style is:global>
207207
:root {
208-
a[aria-current="page"] {
209-
background-color: var(--sidebar-blue-accent-600) !important;
210-
border: 1px solid !important;
211-
border-color: var(--blue-accent-900) !important;
212-
color: var(--sidebar-blue-text) !important;
208+
.sidebar-content {
209+
--sl-color-hairline-light: #cacaca !important;
210+
211+
& > * {
212+
a {
213+
padding: 0.2375em var(--sl-sidebar-item-padding-inline) !important;
214+
215+
&[aria-current="page"] {
216+
background-color: unset !important;
217+
border: unset !important;
218+
border-color: unset !important;
219+
color: var(--sl-color-accent) !important;
220+
font-weight: 600 !important;
221+
}
222+
}
223+
224+
summary {
225+
padding: 0.1375em var(--sl-sidebar-item-padding-inline) !important;
226+
}
227+
228+
.large {
229+
color: var(--sl-color-gray-2) !important;
230+
font-weight: unset !important;
231+
font-size: unset !important;
232+
233+
@media (min-width: 50rem) {
234+
font-size: var(--sl-text-sm) !important;
235+
}
236+
}
237+
238+
.caret {
239+
font-size: 1rem !important;
240+
}
241+
}
213242
}
214243
}
215244

216245
:root[data-theme="dark"] {
217-
a[aria-current="page"] {
218-
background-color: var(--sidebar-orange-accent-600) !important;
219-
border: 1px solid !important;
220-
border-color: var(--orange-accent-200) !important;
221-
color: var(--sl-color-white) !important;
246+
.sidebar-content {
247+
--sl-color-hairline-light: #444444 !important;
222248
}
223249
}
224250
</style>

0 commit comments

Comments
 (0)