forked from pydata/pydata-sphinx-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_navbar-links.scss
75 lines (67 loc) · 1.34 KB
/
_navbar-links.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/**
* Navigation links within a navbar
*/
.navbar-nav {
ul {
display: block;
list-style: none;
// Reduce padding of nested `ul` items a bit
ul {
padding: 0 0 0 1rem;
}
}
// Default link styles
li {
display: flex;
flex-direction: column;
a {
display: flex;
align-items: center;
height: 100%;
color: var(--pst-color-text-muted);
padding-top: 0.25rem;
padding-bottom: 0.25rem;
&:hover {
color: var(--pst-color-primary);
border-style: none;
text-decoration-line: none;
}
&:focus {
color: var(--pst-color-primary);
}
}
// Active page is always highlighted
&.current > a {
font-weight: 600;
color: var(--pst-color-primary);
}
}
/**
* Togglable expand/collapse
* This is only applicable to the primary sidebar which has these checkboxes
*/
.toctree-checkbox {
position: absolute;
display: none;
}
.toctree-checkbox {
~ ul {
display: none;
}
~ label i {
transform: rotate(0deg);
}
}
.toctree-checkbox:checked {
~ ul {
display: block;
}
~ label i {
transform: rotate(180deg);
}
}
}
// Don't display the `site navigation` in the header menu
.bd-header .navbar-nav > p.sidebar-header-items__title {
display: none;
}