Add page breaking and block rules to dl elements. This appears to fix #2.
The `dl` elements have been given an explicit `display:block` and page break avoid rule. In initial testing, this fixes the wkhtmltopdf bug of splitting lines in a multi-page document. See http://stackoverflow.com/questions/8786755 for links and discussion.
This commit is contained in:
parent
e96775b668
commit
da01a0b680
|
@ -1,3 +1,5 @@
|
|||
resume/_*.md
|
||||
output/*.html
|
||||
output/*.pdf
|
||||
|
||||
resume/sample_long.md
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
body.pdf {
|
||||
color: black;
|
||||
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
|
@ -14,7 +14,7 @@ body.pdf {
|
|||
border-width: 8px 0 2px 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
.resume {
|
||||
position:relative;
|
||||
padding: 40px 80px;
|
||||
|
@ -52,7 +52,7 @@ body.pdf {
|
|||
right: 50px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
||||
ul li {
|
||||
width: 28%;
|
||||
float: left;
|
||||
|
@ -86,11 +86,12 @@ body.pdf {
|
|||
ol li:nth-child(1), ol li:nth-child(2), ol li:nth-child(3) {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
|
||||
dl {
|
||||
margin: .7em 0 0;
|
||||
dt {
|
||||
}
|
||||
page-break-inside: avoid !important;
|
||||
display: block;
|
||||
dt {}
|
||||
dd {
|
||||
}
|
||||
strong {
|
||||
|
@ -101,7 +102,7 @@ body.pdf {
|
|||
font-size: 130%;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue