aboutsummaryrefslogtreecommitdiff
path: root/css/print
diff options
context:
space:
mode:
authorHakim El Hattab <hakim@squarespace.com>2013-06-09 16:12:50 +0200
committerHakim El Hattab <hakim@squarespace.com>2013-06-09 16:12:50 +0200
commit4d164dc5b6de800ee77b2e488fe34c21716b2d36 (patch)
treec4a99bd9338816f0b14bc76a5b9b05430e0052e6 /css/print
parentff35847fc644253a19f4fcc43b05d4afb5960bcc (diff)
downloadperl-software-in-gnu-guix-4d164dc5b6de800ee77b2e488fe34c21716b2d36.tar
perl-software-in-gnu-guix-4d164dc5b6de800ee77b2e488fe34c21716b2d36.tar.gz
revamp pdf printing to support per-slide backgrounds (closes #453)
Diffstat (limited to 'css/print')
-rw-r--r--css/print/pdf.css42
1 files changed, 27 insertions, 15 deletions
diff --git a/css/print/pdf.css b/css/print/pdf.css
index 9811096..d278865 100644
--- a/css/print/pdf.css
+++ b/css/print/pdf.css
@@ -17,8 +17,9 @@
body {
font-size: 18pt;
- width: auto;
- height: auto;
+ width: 297mm;
+ height: 229mm;
+ margin: 0 auto !important;
border: 0;
padding: 0;
float: none !important;
@@ -88,10 +89,8 @@ ul, ol, div, p {
left: auto;
top: auto;
- margin-left: auto;
- margin-right: auto;
- margin-top: auto;
- padding: auto;
+ margin: 0 !important;
+ padding: 0 !important;
overflow: visible;
display: block;
@@ -113,18 +112,18 @@ ul, ol, div, p {
page-break-after: always !important;
visibility: visible !important;
- position: static !important;
+ position: relative !important;
width: 100% !important;
- height: auto !important;
- min-height: initial !important;
+ height: 229mm !important;
+ min-height: 229mm !important;
display: block !important;
- overflow: visible !important;
+ overflow: hidden !important;
left: 0 !important;
top: 0 !important;
- margin-left: 0px !important;
- margin-top: 50px !important;
- padding: 20px 0px !important;
+ margin: 0 !important;
+ padding: 2cm 1cm 0 1cm !important;
+ box-sizing: border-box !important;
opacity: 1 !important;
@@ -139,9 +138,11 @@ ul, ol, div, p {
transform: none !important;
}
.reveal section.stack {
- margin: 0px !important;
- padding: 0px !important;
+ margin: 0 !important;
+ padding: 0 !important;
page-break-after: avoid !important;
+ height: auto !important;
+ min-height: auto !important;
}
.reveal section .fragment {
opacity: 1 !important;
@@ -152,6 +153,17 @@ ul, ol, div, p {
-ms-transform: none !important;
transform: none !important;
}
+.reveal section .slide-background {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ z-index: 0;
+}
+.reveal section>* {
+ position: relative;
+ z-index: 1;
+}
.reveal img {
box-shadow: none;
}