Skip to content

Commit 41086f5

Browse files
authored
Style: Fix vertical margins of def lists w/o <p>s to match those with (#2427)
* Style: Fix vertical margins of def lists w/o <p>s to match those with * Style: Specify line-height without rem
1 parent 819e9cb commit 41086f5

File tree

1 file changed

+6
-3
lines changed
  • pep_sphinx_extensions/pep_theme/static

1 file changed

+6
-3
lines changed

pep_sphinx_extensions/pep_theme/static/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ html {
2121
overflow-y: scroll;
2222
-webkit-font-smoothing: antialiased;
2323
margin: 0;
24-
line-height: 1.4rem;
24+
line-height: 1.4;
2525
font-weight: normal;
2626
font-size: 1rem;
2727
font-family: "Source Sans Pro", Arial, sans-serif;
@@ -41,7 +41,7 @@ p {margin: .5rem 0}
4141

4242
/* Header rules */
4343
h1 {
44-
line-height: 2.3rem;
44+
line-height: 2.3;
4545
font-size: 2rem;
4646
font-weight: bold;
4747
margin-top: 2rem;
@@ -127,6 +127,9 @@ details > summary {
127127
dl dt {
128128
font-weight: bold;
129129
}
130+
dl dd {
131+
margin-bottom: 0.5rem;
132+
}
130133

131134
/* Horizontal rule rule */
132135
hr {
@@ -195,7 +198,7 @@ section#pep-page-section > header {
195198
}
196199
section#pep-page-section > header > h1 {
197200
font-size: 1.1rem;
198-
line-height: 1.4rem;
201+
line-height: 1.4;
199202
margin: 0;
200203
display: inline-block;
201204
padding-right: .6rem;

0 commit comments

Comments
 (0)