1
+ /* PyOS-specific vars :) */
2
+ : root {
3
+ --pyos-color-primary : # 703c87 ;
4
+ --pyos-color-secondary : # 8045e5 ;
5
+ --pyos-color-secondary-highlight : # 591bc2 ;
6
+ --pyos-color-tertiary : # A66C98 ;
7
+ --pyos-color-dark : # 542568 ;
8
+ --pyos-color-light : # DAABCF ;
9
+
10
+ /* Darkmode Adjustments*/
11
+ --pyos-dm-color-primary : # C483E0 ;
12
+ }
13
+
1
14
html , body {
2
15
font-size : 1.0rem ;
3
16
}
@@ -37,8 +50,8 @@ h2, h3, h4 {
37
50
h1 {
38
51
margin-top : 10px ;
39
52
margin-bottom : 40px ;
40
- font-family : 'Itim' !important ;
41
- color : # 542568 ;
53
+ font-family : 'Itim' !important ;
54
+ color : var ( --pyos-h1-color ) ;
42
55
}
43
56
h2 {
44
57
margin-top : 80px ;
@@ -66,6 +79,16 @@ figcaption {
66
79
font-size : .9em ;
67
80
}
68
81
82
+ /* Navbar */
83
+ /*
84
+ Don't fill all vertical space beneath TOC, which causes
85
+ readthedocs version selector to fall off the page and the
86
+ ugly scrollbar to show all the time
87
+ */
88
+ .bd-sidebar-primary .sidebar-primary-items__end {
89
+ margin-bottom : unset;
90
+ margin-top : unset;
91
+ }
69
92
70
93
/* Tutorial block page */
71
94
.left-div {
@@ -139,17 +162,17 @@ figcaption {
139
162
140
163
141
164
html [data-theme = light ] {
142
- --pst-color-primary : # 703c87 ;
165
+ --pst-color-primary : var ( --pyos-color-primary ) ;
143
166
--pst-color-primary-text : # fff ;
144
167
--pst-color-primary-highlight : # 053f49 ;
145
168
--sd-color-primary : var (--pst-color-primary );
146
169
--sd-color-primary-text : var (--pst-color-primary-text );
147
170
--sd-color-primary-highlight : var (--pst-color-primary-highlight );
148
171
--sd-color-primary-bg : # d0ecf1 ;
149
172
--sd-color-primary-bg-text : # 14181e ;
150
- --pst-color-secondary : # 8045e5 ;
173
+ --pst-color-secondary : var ( --pyos-color-secondary ) ;
151
174
--pst-color-secondary-text : # fff ;
152
- --pst-color-secondary-highlight : # 591bc2 ;
175
+ --pst-color-secondary-highlight : var ( --pyos-color-secondary-highlight ) ;
153
176
--sd-color-secondary : var (--pst-color-secondary );
154
177
--sd-color-secondary-text : var (--pst-color-secondary-text );
155
178
--sd-color-secondary-highlight : var (--pst-color-secondary-highlight );
@@ -165,5 +188,13 @@ html[data-theme=light] {
165
188
--sd-color-success-bg-text : # 14181e ;
166
189
--pst-color-info : # A66C98 ; /* general admonition */
167
190
--pst-color-info-bg : # eac8e2 ;
168
- --pst-heading-color : # 542568 ;
191
+ --pst-heading-color : var (--pyos-color-dark );
192
+ --pyos-h1-color : var (--pyos-color-dark );
193
+ }
194
+
195
+ html [data-theme = dark ] {
196
+ --pst-color-primary : var (--pyos-dm-color-primary );
197
+ --pst-color-link : var (--pyos-color-light );
198
+ --pst-color-link-hover : var (--pyos-dm-color-primary );
199
+ --pyos-h1-color : var (--pyos-color-light );
169
200
}
0 commit comments