返回 reveal.js
paper.scss
根目录 / css / print / paper.scss
1 @media print {
2 html:not(.print-pdf) {
3 overflow: visible;
4 width: auto;
5 height: auto;
6
7 body {
8 margin: 0;
9 padding: 0;
10 overflow: visible;
11 }
12 }
13
14 html:not(.print-pdf) .reveal {
15 background: #fff;
16 font-size: 20pt;
17
18 .controls,
19 .state-background,
20 .progress,
21 .backgrounds,
22 .slide-number {
23 display: none !important;
24 }
25
26 p,
27 td,
28 li {
29 font-size: 20pt !important;
30 color: #000;
31 }
32
33 h1,
34 h2,
35 h3,
36 h4,
37 h5,
38 h6 {
39 color: #000 !important;
40 height: auto;
41 line-height: normal;
42 text-align: left;
43 letter-spacing: normal;
44 }
45
46 h1 {
47 font-size: 28pt !important;
48 }
49 h2 {
50 font-size: 24pt !important;
51 }
52 h3 {
53 font-size: 22pt !important;
54 }
55 h4 {
56 font-size: 22pt !important;
57 font-variant: small-caps;
58 }
59 h5 {
60 font-size: 21pt !important;
61 }
62 h6 {
63 font-size: 20pt !important;
64 font-style: italic;
65 }
66
67 a:link,
68 a:visited {
69 color: #000 !important;
70 font-weight: bold;
71 text-decoration: underline;
72 }
73
74 ul,
75 ol,
76 div,
77 p {
78 visibility: visible;
79 position: static;
80 width: auto;
81 height: auto;
82 display: block;
83 overflow: visible;
84 margin: 0;
85 text-align: left !important;
86 }
87 pre,
88 table {
89 margin-left: 0;
90 margin-right: 0;
91 }
92 pre code {
93 padding: 20px;
94 }
95 blockquote {
96 margin: 20px 0;
97 }
98
99 .slides {
100 position: static !important;
101 width: auto !important;
102 height: auto !important;
103
104 left: 0 !important;
105 top: 0 !important;
106 margin-left: 0 !important;
107 margin-top: 0 !important;
108 padding: 0 !important;
109 zoom: 1 !important;
110 transform: none !important;
111
112 overflow: visible !important;
113 display: block !important;
114
115 text-align: left !important;
116 perspective: none;
117
118 perspective-origin: 50% 50%;
119 }
120 .slides section {
121 visibility: visible !important;
122 position: static !important;
123 width: auto !important;
124 height: auto !important;
125 display: block !important;
126 overflow: visible !important;
127
128 left: 0 !important;
129 top: 0 !important;
130 margin-left: 0 !important;
131 margin-top: 0 !important;
132 padding: 60px 20px !important;
133 z-index: auto !important;
134
135 opacity: 1 !important;
136
137 page-break-after: always !important;
138
139 transform-style: flat !important;
140 transform: none !important;
141 transition: none !important;
142 }
143 .slides section.stack {
144 padding: 0 !important;
145 }
146 .slides section:last-of-type {
147 page-break-after: avoid !important;
148 }
149 .slides section .fragment {
150 opacity: 1 !important;
151 visibility: visible !important;
152
153 transform: none !important;
154 }
155
156 .r-fit-text {
157 white-space: normal !important;
158 }
159
160 section img {
161 display: block;
162 margin: 15px 0px;
163 background: rgba(255, 255, 255, 1);
164 border: 1px solid #666;
165 box-shadow: none;
166 }
167
168 section small {
169 font-size: 0.8em;
170 }
171
172 .hljs {
173 max-height: 100%;
174 white-space: pre-wrap;
175 word-wrap: break-word;
176 word-break: break-word;
177 font-size: 15pt;
178 }
179
180 .hljs .hljs-ln-numbers {
181 white-space: nowrap;
182 }
183
184 .hljs td {
185 font-size: inherit !important;
186 color: inherit !important;
187 }
188 }
189 }
190
190 lines Plain Text