Skip to content

Commit f1c06d8

Browse files
authored
Fix minor CSS niggles (#1642)
1. Change p margins to exactly 0.5 (used to be different for historical reasons). 2. Add `text-indent:0` to center class to avoid problems if user sets text-indent on paragraphs
1 parent 08300f4 commit f1c06d8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/guiguts/data/html/html_header.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ h1,h2,h3,h4,h5,h6 {
2020
}
2121

2222
p {
23-
margin-top: .51em;
23+
margin-top: .5em;
2424
text-align: justify;
25-
margin-bottom: .49em;
25+
margin-bottom: .5em;
2626
}
2727

2828
.p2 {margin-top: 2em;}
@@ -143,7 +143,7 @@ blockquote {
143143

144144
.bbox {border: 2px solid;}
145145

146-
.center {text-align: center;}
146+
.center {text-align: center; text-indent: 0;}
147147

148148
.right {text-align: right;}
149149

tests/expected/htmlconvert1.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ h1,h2,h3,h4,h5,h6 {
2020
}
2121

2222
p {
23-
margin-top: .51em;
23+
margin-top: .5em;
2424
text-align: justify;
25-
margin-bottom: .49em;
25+
margin-bottom: .5em;
2626
}
2727

2828
.p2 {margin-top: 2em;}
@@ -143,7 +143,7 @@ blockquote {
143143

144144
.bbox {border: 2px solid;}
145145

146-
.center {text-align: center;}
146+
.center {text-align: center; text-indent: 0;}
147147

148148
.right {text-align: right;}
149149

tests/expected/htmlconvert2.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ h1,h2,h3,h4,h5,h6 {
2020
}
2121

2222
p {
23-
margin-top: .51em;
23+
margin-top: .5em;
2424
text-align: justify;
25-
margin-bottom: .49em;
25+
margin-bottom: .5em;
2626
}
2727

2828
.p2 {margin-top: 2em;}
@@ -143,7 +143,7 @@ blockquote {
143143

144144
.bbox {border: 2px solid;}
145145

146-
.center {text-align: center;}
146+
.center {text-align: center; text-indent: 0;}
147147

148148
.right {text-align: right;}
149149

0 commit comments

Comments
 (0)