Skip to content

Commit 28601b2

Browse files
committed
[CSS21] Slightly nicer indentation for ToC and index.
1 parent 9bd314a commit 28601b2

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

css21/style/default.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ DIV.descdef TH {
122122
text-align: right;
123123
}
124124

125-
DIV.toc UL UL, DIV.toc OL OL {margin-left: 0}
126-
DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em}
127-
DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0}
125+
UL {margin-left: 0; padding-left: 1em}
126+
OL {margin-left: 0; padding-left: 2em}
127+
DIV.toc UL {padding-left: 0}
128+
DIV.toc UL UL UL {padding-left: 1em}
129+
DIV.toc UL UL UL UL {padding-left: 0}
128130
LI.tocline1 {font-weight: bold}
129131
LI.tocline2 {font-weight: normal}
130132
LI.tocline4 {font-style: italic}
@@ -137,6 +139,9 @@ UL.index {
137139
list-style: disc; /* Mac NS has problem with 'none' */
138140
list-style: none;
139141
}
142+
DIV.index {columns: 12em; margin-top: 1.2em}
143+
DIV.index UL {padding-left: 2em}
144+
DIV.index > UL {padding-left: 0}
140145

141146
DT {
142147
font-weight: bold
@@ -193,21 +198,23 @@ div.issue, p.issue {border: thin solid red; padding: 0.5em}
193198
*/
194199

195200
@page {
196-
margin: 1.5cm 1.5cm 2cm 1.5cm
201+
margin: 2cm 0.6cm 2cm 0.6cm
197202
}
198203

199204
@media print {
200205
HTML > BODY {
201-
padding-top: 0; /* Override /StyleSheets/TR/W3C-REC.css */
202-
padding-right: 0; /* Override /StyleSheets/TR/W3C-REC.css */
203-
padding-bottom: 0; /* Override /StyleSheets/TR/W3C-REC.css */
206+
padding: 0 60px; /* Override /StyleSheets/TR/W3C-REC.css */
204207
}
205208

206209
P {
207210
margin-top: 0;
208211
margin-bottom: 0;
209212
text-indent: 1em;
210213
}
214+
H1 + P, H2 + P, H3 + P, H4 + P, H5 + P, H6 + P,
215+
UL + P, OL + P, PRE + P, LI > P:first-child {
216+
text-indent: 0;
217+
}
211218

212219
/* the following doesn't work for now,
213220
instead we rely on a patched version of html2ps which has this built-in */
@@ -219,8 +226,10 @@ DIV.navbar, HR.navbar {
219226
display: none;
220227
}
221228

222-
H1 { page-break-before: right }
229+
H1 { page-break-before: always; margin-top: 0 }
223230
.head H1 { page-break-before: avoid }
231+
232+
.NOPRINT {display: none}
224233
}
225234

226235

0 commit comments

Comments
 (0)