forked from pydata/pydata-sphinx-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_switcher-version.scss
52 lines (45 loc) · 1.19 KB
/
_switcher-version.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
button.version-switcher__button {
border-color: var(--pst-color-border);
color: var(--pst-color-text-base);
// Add a margin on narrow screens to avoid feeling cramped
margin-bottom: 1em;
@include media-breakpoint-up($breakpoint-sidebar-primary) {
margin-bottom: unset;
}
&:hover {
color: var(--pst-color-text-base);
}
}
.version-switcher__menu {
border-color: var(--pst-color-border);
a.list-group-item {
background-color: var(--pst-color-on-background);
color: var(--pst-color-text-base);
border-color: var(--pst-color-border);
&:hover {
background-color: var(--pst-color-surface);
}
}
// Over-rides Bootstrap default blue for the current one
a.list-group-item.active {
color: var(--pst-color-primary);
span:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: var(--pst-color-primary);
opacity: 0.1;
}
}
}
// Font behavior on mobile
button.version-switcher__button,
.version-switcher__menu {
font-size: 1.1em; // A bit smaller than other menu font
@include media-breakpoint-up($breakpoint-sidebar-primary) {
font-size: unset;
}
}