Debian Codegraph @

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

raw
1 /**
2 * Light/dark theme switcher
3 */
4
5 .theme-switch-button {
6 .theme-switch {
7 display: none;
8
9 &:active {
10 text-decoration: none;
11 color: var(--pst-color-link-hover);
12 }
13
14 .fa-lg {
15 aspect-ratio: 1 / 1;
16 }
17 }
18 }
19
20 @each $mode in auto, light, dark {
21 html[data-mode="#{$mode}"]
22 .theme-switch-button
23 .theme-switch[data-mode="#{$mode}"] {
24 display: inline; // inline needed for span height to be calculated using inherited font size and line height
25 }
26 }