UNPKG

9.38 kBCSSView Raw
1/* Copyright 2014 Mozilla Foundation
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16.textLayer {
17 position: absolute;
18 left: 0;
19 top: 0;
20 right: 0;
21 bottom: 0;
22 overflow: hidden;
23 opacity: 0.2;
24 line-height: 1.0;
25}
26
27.textLayer > span {
28 color: transparent;
29 position: absolute;
30 white-space: pre;
31 cursor: text;
32 -webkit-transform-origin: 0% 0%;
33 transform-origin: 0% 0%;
34}
35
36.textLayer .highlight {
37 margin: -1px;
38 padding: 1px;
39
40 background-color: rgb(180, 0, 170);
41 border-radius: 4px;
42}
43
44.textLayer .highlight.begin {
45 border-radius: 4px 0px 0px 4px;
46}
47
48.textLayer .highlight.end {
49 border-radius: 0px 4px 4px 0px;
50}
51
52.textLayer .highlight.middle {
53 border-radius: 0px;
54}
55
56.textLayer .highlight.selected {
57 background-color: rgb(0, 100, 0);
58}
59
60.textLayer ::-moz-selection { background: rgb(0,0,255); }
61
62.textLayer ::selection { background: rgb(0,0,255); }
63
64.textLayer .endOfContent {
65 display: block;
66 position: absolute;
67 left: 0px;
68 top: 100%;
69 right: 0px;
70 bottom: 0px;
71 z-index: -1;
72 cursor: default;
73 -webkit-user-select: none;
74 -moz-user-select: none;
75 -ms-user-select: none;
76 user-select: none;
77}
78
79.textLayer .endOfContent.active {
80 top: 0px;
81}
82
83
84.annotationLayer section {
85 position: absolute;
86}
87
88.annotationLayer .linkAnnotation > a,
89.annotationLayer .buttonWidgetAnnotation.pushButton > a {
90 position: absolute;
91 font-size: 1em;
92 top: 0;
93 left: 0;
94 width: 100%;
95 height: 100%;
96}
97
98.annotationLayer .linkAnnotation > a:hover,
99.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
100 opacity: 0.2;
101 background: #ff0;
102 box-shadow: 0px 2px 10px #ff0;
103}
104
105.annotationLayer .textAnnotation img {
106 position: absolute;
107 cursor: pointer;
108}
109
110.annotationLayer .textWidgetAnnotation input,
111.annotationLayer .textWidgetAnnotation textarea,
112.annotationLayer .choiceWidgetAnnotation select,
113.annotationLayer .buttonWidgetAnnotation.checkBox input,
114.annotationLayer .buttonWidgetAnnotation.radioButton input {
115 background-color: rgba(0, 54, 255, 0.13);
116 border: 1px solid transparent;
117 box-sizing: border-box;
118 font-size: 9px;
119 height: 100%;
120 margin: 0;
121 padding: 0 3px;
122 vertical-align: top;
123 width: 100%;
124}
125
126.annotationLayer .choiceWidgetAnnotation select option {
127 padding: 0;
128}
129
130.annotationLayer .buttonWidgetAnnotation.radioButton input {
131 border-radius: 50%;
132}
133
134.annotationLayer .textWidgetAnnotation textarea {
135 font: message-box;
136 font-size: 9px;
137 resize: none;
138}
139
140.annotationLayer .textWidgetAnnotation input[disabled],
141.annotationLayer .textWidgetAnnotation textarea[disabled],
142.annotationLayer .choiceWidgetAnnotation select[disabled],
143.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
144.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
145 background: none;
146 border: 1px solid transparent;
147 cursor: not-allowed;
148}
149
150.annotationLayer .textWidgetAnnotation input:hover,
151.annotationLayer .textWidgetAnnotation textarea:hover,
152.annotationLayer .choiceWidgetAnnotation select:hover,
153.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
154.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
155 border: 1px solid #000;
156}
157
158.annotationLayer .textWidgetAnnotation input:focus,
159.annotationLayer .textWidgetAnnotation textarea:focus,
160.annotationLayer .choiceWidgetAnnotation select:focus {
161 background: none;
162 border: 1px solid transparent;
163}
164
165.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
166.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
167.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
168 background-color: #000;
169 content: '';
170 display: block;
171 position: absolute;
172}
173
174.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
175.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
176 height: 80%;
177 left: 45%;
178 width: 1px;
179}
180
181.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
182 -webkit-transform: rotate(45deg);
183 transform: rotate(45deg);
184}
185
186.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
187 -webkit-transform: rotate(-45deg);
188 transform: rotate(-45deg);
189}
190
191.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
192 border-radius: 50%;
193 height: 50%;
194 left: 30%;
195 top: 20%;
196 width: 50%;
197}
198
199.annotationLayer .textWidgetAnnotation input.comb {
200 font-family: monospace;
201 padding-left: 2px;
202 padding-right: 0;
203}
204
205.annotationLayer .textWidgetAnnotation input.comb:focus {
206 /*
207 * Letter spacing is placed on the right side of each character. Hence, the
208 * letter spacing of the last character may be placed outside the visible
209 * area, causing horizontal scrolling. We avoid this by extending the width
210 * when the element has focus and revert this when it loses focus.
211 */
212 width: 115%;
213}
214
215.annotationLayer .buttonWidgetAnnotation.checkBox input,
216.annotationLayer .buttonWidgetAnnotation.radioButton input {
217 -webkit-appearance: none;
218 -moz-appearance: none;
219 appearance: none;
220 padding: 0;
221}
222
223.annotationLayer .popupWrapper {
224 position: absolute;
225 width: 20em;
226}
227
228.annotationLayer .popup {
229 position: absolute;
230 z-index: 200;
231 max-width: 20em;
232 background-color: #FFFF99;
233 box-shadow: 0px 2px 5px #888;
234 border-radius: 2px;
235 padding: 6px;
236 margin-left: 5px;
237 cursor: pointer;
238 font: message-box;
239 font-size: 9px;
240 word-wrap: break-word;
241}
242
243.annotationLayer .popup > * {
244 font-size: 9px;
245}
246
247.annotationLayer .popup h1 {
248 display: inline-block;
249}
250
251.annotationLayer .popup span {
252 display: inline-block;
253 margin-left: 5px;
254}
255
256.annotationLayer .popup p {
257 border-top: 1px solid #333;
258 margin-top: 2px;
259 padding-top: 2px;
260}
261
262.annotationLayer .highlightAnnotation,
263.annotationLayer .underlineAnnotation,
264.annotationLayer .squigglyAnnotation,
265.annotationLayer .strikeoutAnnotation,
266.annotationLayer .freeTextAnnotation,
267.annotationLayer .lineAnnotation svg line,
268.annotationLayer .squareAnnotation svg rect,
269.annotationLayer .circleAnnotation svg ellipse,
270.annotationLayer .polylineAnnotation svg polyline,
271.annotationLayer .polygonAnnotation svg polygon,
272.annotationLayer .caretAnnotation,
273.annotationLayer .inkAnnotation svg polyline,
274.annotationLayer .stampAnnotation,
275.annotationLayer .fileAttachmentAnnotation {
276 cursor: pointer;
277}
278
279.pdfViewer .canvasWrapper {
280 overflow: hidden;
281}
282
283.pdfViewer .page {
284 direction: ltr;
285 width: 816px;
286 height: 1056px;
287 margin: 1px auto -8px auto;
288 position: relative;
289 overflow: visible;
290 border: 9px solid transparent;
291 background-clip: content-box;
292 -webkit-border-image: url(images/shadow.png) 9 9 repeat;
293 -o-border-image: url(images/shadow.png) 9 9 repeat;
294 border-image: url(images/shadow.png) 9 9 repeat;
295 background-color: white;
296}
297
298.pdfViewer.removePageBorders .page {
299 margin: 0px auto 10px auto;
300 border: none;
301}
302
303.pdfViewer.singlePageView {
304 display: inline-block;
305}
306
307.pdfViewer.singlePageView .page {
308 margin: 0;
309 border: none;
310}
311
312.pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
313 margin-left: 3.5px;
314 margin-right: 3.5px;
315 text-align: center;
316}
317
318.pdfViewer.scrollHorizontal, .spread {
319 white-space: nowrap;
320}
321
322.pdfViewer.removePageBorders,
323.pdfViewer.scrollHorizontal .spread,
324.pdfViewer.scrollWrapped .spread {
325 margin-left: 0;
326 margin-right: 0;
327}
328
329.spread .page,
330.pdfViewer.scrollHorizontal .page,
331.pdfViewer.scrollWrapped .page,
332.pdfViewer.scrollHorizontal .spread,
333.pdfViewer.scrollWrapped .spread {
334 display: inline-block;
335 vertical-align: middle;
336}
337
338.spread .page,
339.pdfViewer.scrollHorizontal .page,
340.pdfViewer.scrollWrapped .page {
341 margin-left: -3.5px;
342 margin-right: -3.5px;
343}
344
345.pdfViewer.removePageBorders .spread .page,
346.pdfViewer.removePageBorders.scrollHorizontal .page,
347.pdfViewer.removePageBorders.scrollWrapped .page {
348 margin-left: 5px;
349 margin-right: 5px;
350}
351
352.pdfViewer .page canvas {
353 margin: 0;
354 display: block;
355}
356
357.pdfViewer .page canvas[hidden] {
358 display: none;
359}
360
361.pdfViewer .page .loadingIcon {
362 position: absolute;
363 display: block;
364 left: 0;
365 top: 0;
366 right: 0;
367 bottom: 0;
368 background: url('images/loading-icon.gif') center no-repeat;
369}
370
371.pdfPresentationMode .pdfViewer {
372 margin-left: 0;
373 margin-right: 0;
374}
375
376.pdfPresentationMode .pdfViewer .page,
377.pdfPresentationMode .pdfViewer .spread {
378 display: block;
379}
380
381.pdfPresentationMode .pdfViewer .page,
382.pdfPresentationMode .pdfViewer.removePageBorders .page {
383 margin-left: auto;
384 margin-right: auto;
385}
386
387.pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
388 margin-bottom: 100% !important;
389}
390
391.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
392 margin-bottom: 100%;
393 border: 0;
394}
395
396.pdfPresentationMode:-moz-full-screen .pdfViewer .page {
397 margin-bottom: 100%;
398 border: 0;
399}
400
401.pdfPresentationMode:fullscreen .pdfViewer .page {
402 margin-bottom: 100%;
403 border: 0;
404}