diff options
| author | Leif Gruenwoldt <leifer@gmail.com> | 2014-07-15 03:11:42 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-07-15 03:11:42 -0600 |
| commit | 036cc756478c9bc61454af42075f4f9b6907b2df (patch) | |
| tree | c958e24598af33db06fa5e4013efd7dc0d8cd5da /data | |
| parent | 258c61239ba0494e1f301688690caab9639dacbd (diff) | |
resolves #952 add print styles for book doctype
Diffstat (limited to 'data')
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index 3708db81..3da2e389 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -359,7 +359,7 @@ b.conum * { color: inherit !important; } .conum:not([data-value]):empty { display: none; } .literalblock > .content > pre, .listingblock > .content > pre { -webkit-border-radius: 0; border-radius: 0; } .print-only { display: none !important; } -@media print { @page { margin: 0.5cm; } +@media print { @page { margin: 1.25cm 0.75cm; } * { -webkit-box-shadow: none !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { color: inherit !important; text-decoration: underline !important; } a[href^="http:"]:after, a[href^="https:"]:after { content: " (" attr(href) ")"; } @@ -376,6 +376,14 @@ b.conum * { color: inherit !important; } #toc { border-bottom: 1px solid #d8d8d8 !important; padding-bottom: 0 !important; } .sect1 { padding-bottom: 0 !important; } .sect1 + .sect1 { border: none !important; } + body.book #header { text-align: center; } + body.book #header > h1 { border: none !important; margin: 2.5em 0 1em 0; padding: 0; } + body.book #header span { line-height: 1.6; } + body.book #header br { display: block; } + body.book #header br + span { padding-left: 0; } + body.book #header br + span:before { content: none !important; } + body.book #toc { border: none !important; text-align: left !important; padding: 0 !important; } + body.book #toc, body.book #preamble, body.book h1.sect0, body.book .sect1 > h2 { page-break-before: always; } .literalblock pre, .literalblock pre[class], .listingblock pre, .listingblock pre[class] { border: none !important; background: #f5f5f5 !important; padding: 0.75em !important; } .listingblock pre.highlight { padding: 0 !important; } .listingblock pre.highlight > code { background: #f5f5f5 !important; padding: 0.75em !important; } |
