Skip to content

Commit 5198216

Browse files
committed
Minor adjustments to the print layout, also added page breaks
1 parent e163c59 commit 5198216

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

html/css/print.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ header h1, h2, h3 {
4242
article h2 > code, article h3 > code {
4343
text-transform: none;
4444
font-size: 0.9em;
45-
vertical-align: 2px;
4645
}
4746

4847
article h2 a {
@@ -53,6 +52,11 @@ article {
5352
width: 78%;
5453
padding-bottom: 0;
5554
border-bottom-width: 2px;
55+
page-break-before: always;
56+
}
57+
58+
header article {
59+
page-break-before: auto;
5660
}
5761

5862
aside {
@@ -91,6 +95,10 @@ article code {
9195
padding: 1px 3px;
9296
}
9397

98+
article pre code {
99+
padding: 0px;
100+
}
101+
94102
article li {
95103
font-size: 13px;
96104
margin-top: 6px;
@@ -134,4 +142,4 @@ article ul, article ol {
134142
.kwd, .tag {
135143
color: #006;
136144
font-weight: bold;
137-
}
145+
}

0 commit comments

Comments
 (0)