Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
1837 views
1
/**
2
* This stylesheet is used to print reveal.js
3
* presentations to PDF.
4
*
5
* https://github.com/hakimel/reveal.js#pdf-export
6
*/
7
8
* {
9
-webkit-print-color-adjust: exact;
10
}
11
12
body {
13
margin: 0 auto !important;
14
border: 0;
15
padding: 0;
16
float: none !important;
17
overflow: visible;
18
}
19
20
html {
21
width: 100%;
22
height: 100%;
23
overflow: visible;
24
}
25
26
/* Remove any elements not needed in print. */
27
.nestedarrow,
28
.reveal .controls,
29
.reveal .progress,
30
.reveal .playback,
31
.reveal.overview,
32
.fork-reveal,
33
.share-reveal,
34
.state-background {
35
display: none !important;
36
}
37
38
h1, h2, h3, h4, h5, h6 {
39
text-shadow: 0 0 0 #000 !important;
40
}
41
42
.reveal pre code {
43
overflow: hidden !important;
44
font-family: Courier, 'Courier New', monospace !important;
45
}
46
47
ul, ol, div, p {
48
visibility: visible;
49
position: static;
50
width: auto;
51
height: auto;
52
display: block;
53
overflow: visible;
54
margin: auto;
55
}
56
.reveal {
57
width: auto !important;
58
height: auto !important;
59
overflow: hidden !important;
60
}
61
.reveal .slides {
62
position: static;
63
width: 100% !important;
64
height: auto !important;
65
zoom: 1 !important;
66
67
left: auto;
68
top: auto;
69
margin: 0 !important;
70
padding: 0 !important;
71
72
overflow: visible;
73
display: block;
74
75
perspective: none;
76
perspective-origin: 50% 50%;
77
}
78
79
.reveal .slides .pdf-page {
80
position: relative;
81
overflow: hidden;
82
z-index: 1;
83
84
page-break-after: always;
85
}
86
87
.reveal .slides section {
88
visibility: visible !important;
89
display: block !important;
90
position: absolute !important;
91
92
margin: 0 !important;
93
padding: 0 !important;
94
box-sizing: border-box !important;
95
min-height: 1px;
96
97
opacity: 1 !important;
98
99
transform-style: flat !important;
100
transform: none !important;
101
}
102
103
.reveal section.stack {
104
position: relative !important;
105
margin: 0 !important;
106
padding: 0 !important;
107
page-break-after: avoid !important;
108
height: auto !important;
109
min-height: auto !important;
110
}
111
112
.reveal img {
113
box-shadow: none;
114
}
115
116
.reveal .roll {
117
overflow: visible;
118
line-height: 1em;
119
}
120
121
/* Slide backgrounds are placed inside of their slide when exporting to PDF */
122
.reveal .slide-background {
123
display: block !important;
124
position: absolute;
125
top: 0;
126
left: 0;
127
width: 100%;
128
height: 100%;
129
z-index: auto !important;
130
}
131
132
/* Display slide speaker notes when 'showNotes' is enabled */
133
.reveal.show-notes {
134
max-width: none;
135
max-height: none;
136
}
137
.reveal .speaker-notes-pdf {
138
display: block;
139
width: 100%;
140
height: auto;
141
max-height: none;
142
top: auto;
143
right: auto;
144
bottom: auto;
145
left: auto;
146
z-index: 100;
147
}
148
149
/* Layout option which makes notes appear on a separate page */
150
.reveal .speaker-notes-pdf[data-layout="separate-page"] {
151
position: relative;
152
color: inherit;
153
background-color: transparent;
154
padding: 20px;
155
page-break-after: always;
156
border: 0;
157
}
158
159
/* Display slide numbers when 'slideNumber' is enabled */
160
.reveal .slide-number-pdf {
161
display: block;
162
position: absolute;
163
font-size: 14px;
164
}
165
166