Skip to content

Commit cb9f145

Browse files
committed
[CSS22] More compact style for P elements when making PDFs with Prince.
1 parent c605202 commit cb9f145

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

css2/style/prince.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ A[HREF^="#"]::after {
3030
}
3131
.index A[HREF]::after {content: none}
3232
.index A[HREF] {content: target-counter(attr(href), page)}
33+
34+
35+
36+
P {margin-top: 0 !important; margin-bottom: 0 !important}
37+
P + P {text-indent: 1em}
38+
P[style="display:none"] + P, P.note + P, P.note {text-indent: 0}
39+
PRE {margin-left: 1em}
40+
LI {margin: 0.75em 0 !important}

0 commit comments

Comments
 (0)