forked from readthedocs/sphinx_rtd_theme
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path_theme_nav.sass
150 lines (131 loc) · 2.9 KB
/
_theme_nav.sass
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
$nav-height: 60px
$nav-color: rgba(255, 255, 255, 0.95)
$nav-font-color: rgba(255, 255, 255, 0.75)
$nav-font: "Roboto Slab"
$nav-font-size: $base-font-size / 1.5
$nav-text-transform: lowercase
body.use-certbot
nav.main-nav ul li:nth-of-type(2)
a
color: #000
body.about
nav.main-nav ul li:nth-of-type(3)
a
color: #000
body.faq
nav.main-nav ul li:nth-of-type(4)
a
color: #000
body.wy-body-for-nav
nav.main-nav ul li:nth-of-type(5)
a
color: #000
body.support
nav.main-nav ul li:nth-of-type(6)
a
color: #000
nav.main-nav body.source
ul li:nth-of-type(2)
a
color: #000
nav.main-nav
display: none !important
+susy-breakpoint($md)
display: block !important
img
position: absolute
display: block
width: 55px
top: 10px
left: 0
a
color: inherit
display: inline-block
text-decoration: none
&:hover
text-decoration: none
&:visited
color: inherit
z-index: 100000000000
position: relative
top: 0
left: 0
width: 100%
display: block
margin: 0 auto
text-align: center
height: $nav-height
background-color: $nav-color
ul
padding: 0
+container(40em)
+susy-breakpoint($md)
+container(60em)
+susy-breakpoint($lg)
+container($lg)
letter-spacing: 0.07em
font-size: 0.9em
display: flex
justify-content: space-around
margin-bottom: 0 !important
list-style-type: none
line-height: $nav-height
font-size: 0.75em
letter-spacing: 0em
li
display: none
&:nth-of-type(1)
// logo
display: inline-block
+susy-breakpoint($md)
display: none
+susy-breakpoint($md)
display: inline-block
&:last-of-type // hamburger
display: none
text-align: center
text-transform: $nav-text-transform
font-family: $nav-font
font-size: $nav-font-size
color: rgba(0, 0, 0, 0.5)
+susy-breakpoint($md)
font-size: $base-font-size / 1.15
font-weight: 400
&.donate
text-transform: none
color: $certbot-red
display: inline-block
position: absolute
top: 0
left: 0
text-align: center
width: 100%
font-size: 1.5em
+susy-breakpoint($md)
position: relative
width: auto
font-size: inherit
+susy-breakpoint($md)
font-size: $base-font-size / 1.15
&:hover
&:after
position: absolute
content: '❤'
margin-left: 5px
&.active
color: rgba(0, 0, 0, 0.95)
&:hover
&:not(.donate)
color: rgba(0, 0, 0, 0.95)
nav.main-nav.fixed
position: fixed
+susy-breakpoint($md)
\:target
&:before
content: ""
display: block
height: $nav-height
margin-top: -$nav-height
nav.wy-nav-top
a
color: $certbot-red !important