File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
pep_sphinx_extensions/pep_theme/static Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,15 @@ section#pep-page-section {
74
74
padding : 0.25rem ;
75
75
}
76
76
77
+ /* This is likely very close to the browser default, but we make it a variable
78
+ * so it can be used in other rules. */
79
+ : root {
80
+ --paragraph-margin-vertical : 1em ;
81
+ }
82
+ p {
83
+ margin : var (--paragraph-margin-vertical ) 0 ;
84
+ }
85
+
77
86
/* Header rules */
78
87
h1 {
79
88
font-size : 2rem ;
@@ -197,6 +206,18 @@ ol.upperalpha {list-style: upper-alpha}
197
206
ol .lowerroman {list-style : lower-roman}
198
207
ol .upperroman {list-style : upper-roman}
199
208
209
+ /* We can't express this as a single rule using `not(.simple)`, because when a
210
+ * simple list is nested inside another simple list, the inner list is not given
211
+ * a class. So instead we use two rules, one more specific than the other. */
212
+ # pep-content ol li ,
213
+ # pep-content ul li {
214
+ margin : var (--paragraph-margin-vertical ) 0 ;
215
+ }
216
+ # pep-content ol .simple li ,
217
+ # pep-content ul .simple li {
218
+ margin : 0 0 ;
219
+ }
220
+
200
221
/* Maths rules */
201
222
sub ,
202
223
sup {
You can’t perform that action at this time.
0 commit comments