Skip to content

Commit 51219fe

Browse files
authored
fix: update switcher color according to sidebar (#880)
1 parent 6f14f45 commit 51219fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/pydata_sphinx_theme/assets/styles/components/_switcher-theme.scss

+11
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929
}
3030
}
3131

32+
// specific border color when the button is nested in the navbar
33+
// as it's color is different from the header
34+
.bd-sidebar-primary .theme-switch-button {
35+
border-color: var(--pst-color-background);
36+
37+
&:hover,
38+
&:active {
39+
border-color: var(--pst-color-background) !important;
40+
}
41+
}
42+
3243
html[data-mode="auto"] .theme-switch-button a[data-mode="auto"] {
3344
display: flex;
3445
}

0 commit comments

Comments
 (0)