UNPKG

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