UNPKG

12.2 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;
25}
26
27.textLayer > span {
28 color: transparent;
29 position: absolute;
30 white-space: pre;
31 cursor: text;
32 transform-origin: 0% 0%;
33}
34
35.textLayer .highlight {
36 margin: -1px;
37 padding: 1px;
38 background-color: rgba(180, 0, 170, 1);
39 border-radius: 4px;
40}
41
42.textLayer .highlight.begin {
43 border-radius: 4px 0 0 4px;
44}
45
46.textLayer .highlight.end {
47 border-radius: 0 4px 4px 0;
48}
49
50.textLayer .highlight.middle {
51 border-radius: 0;
52}
53
54.textLayer .highlight.selected {
55 background-color: rgba(0, 100, 0, 1);
56}
57
58.textLayer ::-moz-selection {
59 background: rgba(0, 0, 255, 1);
60}
61
62.textLayer ::selection {
63 background: rgba(0, 0, 255, 1);
64}
65
66.textLayer .endOfContent {
67 display: block;
68 position: absolute;
69 left: 0;
70 top: 100%;
71 right: 0;
72 bottom: 0;
73 z-index: -1;
74 cursor: default;
75 -webkit-user-select: none;
76 -moz-user-select: none;
77 user-select: none;
78}
79
80.textLayer .endOfContent.active {
81 top: 0;
82}
83
84
85.annotationLayer section {
86 position: absolute;
87 text-align: initial;
88}
89
90.annotationLayer .linkAnnotation > a,
91.annotationLayer .buttonWidgetAnnotation.pushButton > a {
92 position: absolute;
93 font-size: 1em;
94 top: 0;
95 left: 0;
96 width: 100%;
97 height: 100%;
98}
99
100.annotationLayer .linkAnnotation > a:hover,
101.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
102 opacity: 0.2;
103 background: rgba(255, 255, 0, 1);
104 box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
105}
106
107.annotationLayer .textAnnotation img {
108 position: absolute;
109 cursor: pointer;
110}
111
112.annotationLayer .textWidgetAnnotation input,
113.annotationLayer .textWidgetAnnotation textarea,
114.annotationLayer .choiceWidgetAnnotation select,
115.annotationLayer .buttonWidgetAnnotation.checkBox input,
116.annotationLayer .buttonWidgetAnnotation.radioButton input {
117 background-color: rgba(0, 54, 255, 0.13);
118 border: 1px solid transparent;
119 box-sizing: border-box;
120 font-size: 9px;
121 height: 100%;
122 margin: 0;
123 padding: 0 3px;
124 vertical-align: top;
125 width: 100%;
126}
127
128.annotationLayer .choiceWidgetAnnotation select option {
129 padding: 0;
130}
131
132.annotationLayer .buttonWidgetAnnotation.radioButton input {
133 border-radius: 50%;
134}
135
136.annotationLayer .textWidgetAnnotation textarea {
137 font: message-box;
138 font-size: 9px;
139 resize: none;
140}
141
142.annotationLayer .textWidgetAnnotation input[disabled],
143.annotationLayer .textWidgetAnnotation textarea[disabled],
144.annotationLayer .choiceWidgetAnnotation select[disabled],
145.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
146.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
147 background: none;
148 border: 1px solid transparent;
149 cursor: not-allowed;
150}
151
152.annotationLayer .textWidgetAnnotation input:hover,
153.annotationLayer .textWidgetAnnotation textarea:hover,
154.annotationLayer .choiceWidgetAnnotation select:hover,
155.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
156.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
157 border: 1px solid rgba(0, 0, 0, 1);
158}
159
160.annotationLayer .textWidgetAnnotation input:focus,
161.annotationLayer .textWidgetAnnotation textarea:focus,
162.annotationLayer .choiceWidgetAnnotation select:focus {
163 background: none;
164 border: 1px solid transparent;
165}
166
167.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
168.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
169.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
170 background-color: rgba(0, 0, 0, 1);
171 content: "";
172 display: block;
173 position: absolute;
174}
175
176.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
177.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
178 height: 80%;
179 left: 45%;
180 width: 1px;
181}
182
183.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
184 transform: rotate(45deg);
185}
186
187.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
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: rgba(255, 255, 153, 1);
233 box-shadow: 0 2px 5px rgba(136, 136, 136, 1);
234 border-radius: 2px;
235 padding: 6px;
236 margin-left: 5px;
237 cursor: pointer;
238 font: message-box;
239 font-size: 9px;
240 white-space: normal;
241 word-wrap: break-word;
242}
243
244.annotationLayer .popup > * {
245 font-size: 9px;
246}
247
248.annotationLayer .popup h1 {
249 display: inline-block;
250}
251
252.annotationLayer .popup span {
253 display: inline-block;
254 margin-left: 5px;
255}
256
257.annotationLayer .popup p {
258 border-top: 1px solid rgba(51, 51, 51, 1);
259 margin-top: 2px;
260 padding-top: 2px;
261}
262
263.annotationLayer .highlightAnnotation,
264.annotationLayer .underlineAnnotation,
265.annotationLayer .squigglyAnnotation,
266.annotationLayer .strikeoutAnnotation,
267.annotationLayer .freeTextAnnotation,
268.annotationLayer .lineAnnotation svg line,
269.annotationLayer .squareAnnotation svg rect,
270.annotationLayer .circleAnnotation svg ellipse,
271.annotationLayer .polylineAnnotation svg polyline,
272.annotationLayer .polygonAnnotation svg polygon,
273.annotationLayer .caretAnnotation,
274.annotationLayer .inkAnnotation svg polyline,
275.annotationLayer .stampAnnotation,
276.annotationLayer .fileAttachmentAnnotation {
277 cursor: pointer;
278}
279
280*/* Copyright 2021 Mozilla Foundation
281 *
282 * Licensed under the Apache License, Version 2.0 (the "License");
283 * you may not use this file except in compliance with the License.
284 * You may obtain a copy of the License at
285 *
286 * http://www.apache.org/licenses/LICENSE-2.0
287 *
288 * Unless required by applicable law or agreed to in writing, software
289 * distributed under the License is distributed on an "AS IS" BASIS,
290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
291 * See the License for the specific language governing permissions and
292 * limitations under the License.
293 */
294
295.xfaLayer {
296 position: absolute;
297 top: 0;
298 left: 0;
299 z-index: 200;
300 transform-origin: 0 0;
301}
302
303.xfaLayer * {
304 color: inherit;
305 font: inherit;
306 -webkit-font-kerning: inherit;
307 font-kerning: inherit;
308 letter-spacing: inherit;
309 text-align: inherit;
310 text-decoration: inherit;
311 vertical-align: inherit;
312 box-sizing: border-box;
313}
314
315.xfaFont {
316 color: black;
317 font-weight: normal;
318 -webkit-font-kerning: none;
319 font-kerning: none;
320 font-size: 10px;
321 font-style: normal;
322 letter-spacing: 0;
323 text-decoration: none;
324 vertical-align: 0;
325}
326
327.xfaDraw {
328 z-index: 200;
329}
330
331.xfaExclgroup {
332 z-index: 300;
333}
334
335.xfaField {
336 z-index: 300;
337}
338
339.xfaSubform {
340 z-index: 100;
341}
342
343.xfaLabel {
344 display: flex;
345 flex-direction: row;
346 align-items: center;
347 width: 100%;
348 height: 100%;
349}
350
351.xfaCaption {
352 flex: 1 1 auto;
353}
354
355.xfaTextfield,
356.xfaSelect {
357 width: 100%;
358 height: 100%;
359 flex: 1 1 auto;
360 border: none;
361}
362
363.xfaLabel > input[type="checkbox"] {
364 /* Use this trick to make the checkbox invisible but
365 but still focusable. */
366 position: absolute;
367 left: -99999px;
368}
369
370.xfaLabel > input[type="checkbox"]:focus + .xfaCheckboxMark {
371 box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
372}
373
374.xfaCheckboxMark {
375 cursor: pointer;
376 flex: 0 0 auto;
377 border-style: solid;
378 border-width: 2px;
379 border-color: #8f8f9d;
380 font-size: 10px;
381 line-height: 10px;
382 width: 10px;
383 height: 10px;
384 text-align: center;
385 vertical-align: middle;
386 display: flex;
387 flex-direction: row;
388 align-items: center;
389}
390
391.xfaCheckbox:checked + .xfaCheckboxMark::after {
392 content: attr(mark);
393}
394
395.xfaButton {
396 cursor: pointer;
397 width: 100%;
398 height: 100%;
399 border: none;
400 text-align: center;
401}
402
403.xfaButton:hover {
404 background: Highlight;
405}
406
407.xfaLrTb,
408.xfaRlTb,
409.xfaTb,
410.xfaPosition {
411 display: block;
412}
413
414.xfaPosition {
415 position: relative;
416}
417
418.xfaValignMiddle {
419 display: flex;
420 align-items: center;
421}
422
423.xfaLrTb > div {
424 display: inline;
425 float: left;
426}
427
428.xfaRlTb > div {
429 display: inline;
430 float: right;
431}
432
433.xfaTable {
434 display: flex;
435 flex-direction: column;
436}
437
438.xfaTable .xfaRow {
439 display: flex;
440 flex-direction: row;
441 flex: 1 1 auto;
442}
443
444.xfaTable .xfaRow > div {
445 flex: 1 1 auto;
446}
447
448.xfaTable .xfaRlRow {
449 display: flex;
450 flex-direction: row-reverse;
451 flex: 1;
452}
453
454.xfaTable .xfaRlRow > div {
455 flex: 1;
456}
457
458.pdfViewer .canvasWrapper {
459 overflow: hidden;
460}
461
462.pdfViewer .page {
463 direction: ltr;
464 width: 816px;
465 height: 1056px;
466 margin: 1px auto -8px;
467 position: relative;
468 overflow: visible;
469 border: 9px solid transparent;
470 background-clip: content-box;
471 -o-border-image: url(images/shadow.png) 9 9 repeat;
472 border-image: url(images/shadow.png) 9 9 repeat;
473 background-color: rgba(255, 255, 255, 1);
474}
475
476.pdfViewer.removePageBorders .page {
477 margin: 0 auto 10px;
478 border: none;
479}
480
481.pdfViewer.singlePageView {
482 display: inline-block;
483}
484
485.pdfViewer.singlePageView .page {
486 margin: 0;
487 border: none;
488}
489
490.pdfViewer.scrollHorizontal,
491.pdfViewer.scrollWrapped,
492.spread {
493 margin-left: 3.5px;
494 margin-right: 3.5px;
495 text-align: center;
496}
497
498.pdfViewer.scrollHorizontal,
499.spread {
500 white-space: nowrap;
501}
502
503.pdfViewer.removePageBorders,
504.pdfViewer.scrollHorizontal .spread,
505.pdfViewer.scrollWrapped .spread {
506 margin-left: 0;
507 margin-right: 0;
508}
509
510.spread .page,
511.pdfViewer.scrollHorizontal .page,
512.pdfViewer.scrollWrapped .page,
513.pdfViewer.scrollHorizontal .spread,
514.pdfViewer.scrollWrapped .spread {
515 display: inline-block;
516 vertical-align: middle;
517}
518
519.spread .page,
520.pdfViewer.scrollHorizontal .page,
521.pdfViewer.scrollWrapped .page {
522 margin-left: -3.5px;
523 margin-right: -3.5px;
524}
525
526.pdfViewer.removePageBorders .spread .page,
527.pdfViewer.removePageBorders.scrollHorizontal .page,
528.pdfViewer.removePageBorders.scrollWrapped .page {
529 margin-left: 5px;
530 margin-right: 5px;
531}
532
533.pdfViewer .page canvas {
534 margin: 0;
535 display: block;
536}
537
538.pdfViewer .page canvas[hidden] {
539 display: none;
540}
541
542.pdfViewer .page .loadingIcon {
543 position: absolute;
544 display: block;
545 left: 0;
546 top: 0;
547 right: 0;
548 bottom: 0;
549 background: url("images/loading-icon.gif") center no-repeat;
550}
551
552.pdfPresentationMode .pdfViewer {
553 margin-left: 0;
554 margin-right: 0;
555}
556
557.pdfPresentationMode .pdfViewer .page,
558.pdfPresentationMode .pdfViewer .spread {
559 display: block;
560}
561
562.pdfPresentationMode .pdfViewer .page,
563.pdfPresentationMode .pdfViewer.removePageBorders .page {
564 margin-left: auto;
565 margin-right: auto;
566}
567
568.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
569 margin-bottom: 100%;
570 border: 0;
571}
572
573.pdfPresentationMode:-moz-full-screen .pdfViewer .page {
574 margin-bottom: 100%;
575 border: 0;
576}
577
578.pdfPresentationMode:fullscreen .pdfViewer .page {
579 margin-bottom: 100%;
580 border: 0;
581}