PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more / 3.3.3
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more v3.3.3
4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / assets / pdf / web / viewer.css
embedpress / assets / pdf / web Last commit date
images 4 years ago locale 4 years ago viewer.css 4 years ago viewer.html 4 years ago viewer.js 4 years ago
viewer.css
2629 lines
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 .textLayer br {
29 color: transparent;
30 position: absolute;
31 white-space: pre;
32 cursor: text;
33 transform-origin: 0% 0%;
34 }
35
36 .textLayer .highlight {
37 position: relative;
38 margin: -1px;
39 padding: 1px;
40 background-color: rgba(180, 0, 170, 1);
41 border-radius: 4px;
42 }
43
44 .textLayer .highlight.begin {
45 border-radius: 4px 0 0 4px;
46 }
47
48 .textLayer .highlight.end {
49 border-radius: 0 4px 4px 0;
50 }
51
52 .textLayer .highlight.middle {
53 border-radius: 0;
54 }
55
56 .textLayer .highlight.selected {
57 background-color: rgba(0, 100, 0, 1);
58 }
59
60 .textLayer ::-moz-selection {
61 background: rgba(0, 0, 255, 1);
62 }
63
64 .textLayer ::selection {
65 background: rgba(0, 0, 255, 1);
66 }
67
68 .textLayer .endOfContent {
69 display: block;
70 position: absolute;
71 left: 0;
72 top: 100%;
73 right: 0;
74 bottom: 0;
75 z-index: -1;
76 cursor: default;
77 -webkit-user-select: none;
78 -moz-user-select: none;
79 user-select: none;
80 }
81
82 .textLayer .endOfContent.active {
83 top: 0;
84 }
85
86
87 .annotationLayer section {
88 position: absolute;
89 text-align: initial;
90 }
91
92 .annotationLayer .linkAnnotation > a,
93 .annotationLayer .buttonWidgetAnnotation.pushButton > a {
94 position: absolute;
95 font-size: 1em;
96 top: 0;
97 left: 0;
98 width: 100%;
99 height: 100%;
100 }
101
102 .annotationLayer .linkAnnotation > a:hover,
103 .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
104 opacity: 0.2;
105 background: rgba(255, 255, 0, 1);
106 box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
107 }
108
109 .annotationLayer .textAnnotation img {
110 position: absolute;
111 cursor: pointer;
112 }
113
114 .annotationLayer .textWidgetAnnotation input,
115 .annotationLayer .textWidgetAnnotation textarea,
116 .annotationLayer .choiceWidgetAnnotation select,
117 .annotationLayer .buttonWidgetAnnotation.checkBox input,
118 .annotationLayer .buttonWidgetAnnotation.radioButton input {
119 background-color: rgba(0, 54, 255, 0.13);
120 border: 1px solid transparent;
121 box-sizing: border-box;
122 font-size: 9px;
123 height: 100%;
124 margin: 0;
125 padding: 0 3px;
126 vertical-align: top;
127 width: 100%;
128 }
129
130 .annotationLayer .choiceWidgetAnnotation select option {
131 padding: 0;
132 }
133
134 .annotationLayer .buttonWidgetAnnotation.radioButton input {
135 border-radius: 50%;
136 }
137
138 .annotationLayer .textWidgetAnnotation textarea {
139 font: message-box;
140 font-size: 9px;
141 resize: none;
142 }
143
144 .annotationLayer .textWidgetAnnotation input[disabled],
145 .annotationLayer .textWidgetAnnotation textarea[disabled],
146 .annotationLayer .choiceWidgetAnnotation select[disabled],
147 .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
148 .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
149 background: none;
150 border: 1px solid transparent;
151 cursor: not-allowed;
152 }
153
154 .annotationLayer .textWidgetAnnotation input:hover,
155 .annotationLayer .textWidgetAnnotation textarea:hover,
156 .annotationLayer .choiceWidgetAnnotation select:hover,
157 .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
158 .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
159 border: 1px solid rgba(0, 0, 0, 1);
160 }
161
162 .annotationLayer .textWidgetAnnotation input:focus,
163 .annotationLayer .textWidgetAnnotation textarea:focus,
164 .annotationLayer .choiceWidgetAnnotation select:focus {
165 background: none;
166 border: 1px solid transparent;
167 }
168
169 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
170 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
171 .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
172 background-color: rgba(0, 0, 0, 1);
173 content: "";
174 display: block;
175 position: absolute;
176 }
177
178 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
179 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
180 height: 80%;
181 left: 45%;
182 width: 1px;
183 }
184
185 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
186 transform: rotate(45deg);
187 }
188
189 .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
190 transform: rotate(-45deg);
191 }
192
193 .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
194 border-radius: 50%;
195 height: 50%;
196 left: 30%;
197 top: 20%;
198 width: 50%;
199 }
200
201 .annotationLayer .textWidgetAnnotation input.comb {
202 font-family: monospace;
203 padding-left: 2px;
204 padding-right: 0;
205 }
206
207 .annotationLayer .textWidgetAnnotation input.comb:focus {
208 /*
209 * Letter spacing is placed on the right side of each character. Hence, the
210 * letter spacing of the last character may be placed outside the visible
211 * area, causing horizontal scrolling. We avoid this by extending the width
212 * when the element has focus and revert this when it loses focus.
213 */
214 width: 115%;
215 }
216
217 .annotationLayer .buttonWidgetAnnotation.checkBox input,
218 .annotationLayer .buttonWidgetAnnotation.radioButton input {
219 -webkit-appearance: none;
220 -moz-appearance: none;
221 appearance: none;
222 padding: 0;
223 }
224
225 .annotationLayer .popupWrapper {
226 position: absolute;
227 width: 20em;
228 }
229
230 .annotationLayer .popup {
231 position: absolute;
232 z-index: 200;
233 max-width: 20em;
234 background-color: rgba(255, 255, 153, 1);
235 box-shadow: 0 2px 5px rgba(136, 136, 136, 1);
236 border-radius: 2px;
237 padding: 6px;
238 margin-left: 5px;
239 cursor: pointer;
240 font: message-box;
241 font-size: 9px;
242 white-space: normal;
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
283 .xfaLayer {
284 position: absolute;
285 top: 0;
286 left: 0;
287 z-index: 200;
288 transform-origin: 0 0;
289 }
290
291 .xfaLayer * {
292 color: inherit;
293 font: inherit;
294 font-style: inherit;
295 font-weight: inherit;
296 font-kerning: inherit;
297 letter-spacing: inherit;
298 text-align: inherit;
299 text-decoration: inherit;
300 vertical-align: inherit;
301 box-sizing: border-box;
302 background: transparent;
303 }
304
305 .xfaLayer a {
306 color: blue;
307 }
308
309 .xfaRich li {
310 margin-left: 3em;
311 }
312
313 .xfaFont {
314 color: black;
315 font-weight: normal;
316 font-kerning: none;
317 font-size: 10px;
318 font-style: normal;
319 letter-spacing: 0;
320 text-decoration: none;
321 vertical-align: 0;
322 }
323
324 .xfaDraw {
325 z-index: 100;
326 }
327
328 .xfaExclgroup {
329 z-index: 200;
330 }
331
332 .xfaField {
333 z-index: 300;
334 }
335
336 .xfaRich {
337 z-index: 300;
338 line-height: 1.2;
339 }
340
341 .xfaSubform {
342 z-index: 200;
343 }
344
345 .xfaLabel {
346 display: flex;
347 flex-direction: row;
348 align-items: center;
349 width: 100%;
350 height: 100%;
351 }
352
353 .xfaCaption {
354 flex: 1 1 auto;
355 }
356
357 .xfaBorderDiv {
358 background: transparent;
359 position: absolute;
360 pointer-events: none;
361 }
362
363 .xfaWrapper {
364 position: relative;
365 display: flex;
366 align-items: center;
367 justify-content: center;
368 width: auto;
369 height: auto;
370 }
371
372 .xfaContentArea {
373 overflow: hidden;
374 }
375
376 .xfaTextfield,
377 .xfaSelect {
378 background-color: rgba(0, 54, 255, 0.13);
379 }
380
381 .xfaTextfield:focus,
382 .xfaSelect:focus {
383 background-color: transparent;
384 }
385
386 .xfaTextfield,
387 .xfaSelect {
388 width: 100%;
389 height: 100%;
390 flex: 100 1 0;
391 border: none;
392 resize: none;
393 }
394
395 .xfaLabel > input[type="radio"] {
396 /* Use this trick to make the checkbox invisible but
397 but still focusable. */
398 position: absolute;
399 left: -99999px;
400 }
401
402 .xfaLabel > input[type="radio"]:focus + .xfaCheckboxMark {
403 box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
404 }
405
406 .xfaCheckboxMark {
407 cursor: pointer;
408 flex: 0 0 auto;
409 border-style: solid;
410 border-width: 2px;
411 border-color: #8f8f9d;
412 font-size: 10px;
413 line-height: 10px;
414 width: 10px;
415 height: 10px;
416 text-align: center;
417 vertical-align: middle;
418 display: flex;
419 flex-direction: row;
420 align-items: center;
421 }
422
423 .xfaCheckbox:checked + .xfaCheckboxMark::after {
424 content: attr(mark);
425 }
426
427 .xfaButton {
428 cursor: pointer;
429 width: 100%;
430 height: 100%;
431 border: none;
432 text-align: center;
433 }
434
435 .xfaButton:hover {
436 background: Highlight;
437 }
438
439 .xfaRich {
440 white-space: pre-wrap;
441 }
442
443 .xfaImage {
444 width: 100%;
445 height: 100%;
446 }
447
448 .xfaRich {
449 width: 100%;
450 height: auto;
451 }
452
453 .xfaPosition {
454 display: block;
455 }
456
457 .xfaLrTb,
458 .xfaRlTb,
459 .xfaTb {
460 display: flex;
461 flex-direction: column;
462 align-items: stretch;
463 }
464
465 .xfaLr,
466 .xfaRl,
467 .xfaTb > div {
468 flex: 1 1 auto;
469 }
470
471 .xfaTb > div {
472 justify-content: left;
473 }
474
475 .xfaLr > div {
476 display: inline;
477 float: left;
478 }
479
480 .xfaRl > div {
481 display: inline;
482 float: right;
483 }
484
485 .xfaPosition {
486 position: relative;
487 }
488
489 .xfaArea {
490 position: relative;
491 }
492
493 .xfaValignMiddle {
494 display: flex;
495 align-items: center;
496 }
497
498 .xfaLrTb > div {
499 display: inline;
500 float: left;
501 }
502
503 .xfaRlTb > div {
504 display: inline;
505 float: right;
506 }
507
508 .xfaTable {
509 display: flex;
510 flex-direction: column;
511 }
512
513 .xfaTable .xfaRow {
514 display: flex;
515 flex-direction: row;
516 flex: 1 1 auto;
517 }
518
519 .xfaTable .xfaRow > div {
520 flex: 1 1 auto;
521 }
522
523 .xfaTable .xfaRlRow {
524 display: flex;
525 flex-direction: row-reverse;
526 flex: 1;
527 }
528
529 .xfaTable .xfaRlRow > div {
530 flex: 1;
531 }
532
533 :root {
534 --pdfViewer-padding-bottom: none;
535 --page-margin: 1px auto -8px;
536 --page-border: 9px solid transparent;
537 --spreadHorizontalWrapped-margin-LR: -3.5px;
538 }
539
540 @media screen and (forced-colors: active) {
541 :root {
542 --pdfViewer-padding-bottom: 9px;
543 --page-margin: 9px auto 0;
544 --page-border: none;
545 --spreadHorizontalWrapped-margin-LR: 4.5px;
546 }
547 }
548
549 .pdfViewer {
550 padding-bottom: var(--pdfViewer-padding-bottom);
551 }
552
553 .pdfViewer .canvasWrapper {
554 overflow: hidden;
555 }
556
557 .pdfViewer .page {
558 direction: ltr;
559 width: 816px;
560 height: 1056px;
561 margin: var(--page-margin);
562 position: relative;
563 overflow: visible;
564 border: var(--page-border);
565 background-clip: content-box;
566 -o-border-image: url(images/shadow.png) 9 9 repeat;
567 border-image: url(images/shadow.png) 9 9 repeat;
568 background-color: rgba(255, 255, 255, 1);
569 }
570
571 .pdfViewer.removePageBorders .page {
572 margin: 0 auto 10px;
573 border: none;
574 }
575
576 .pdfViewer.singlePageView {
577 display: inline-block;
578 }
579
580 .pdfViewer.singlePageView .page {
581 margin: 0;
582 border: none;
583 }
584
585 .pdfViewer.scrollHorizontal,
586 .pdfViewer.scrollWrapped,
587 .spread {
588 margin-left: 3.5px;
589 margin-right: 3.5px;
590 text-align: center;
591 }
592
593 .pdfViewer.scrollHorizontal,
594 .spread {
595 white-space: nowrap;
596 }
597
598 .pdfViewer.removePageBorders,
599 .pdfViewer.scrollHorizontal .spread,
600 .pdfViewer.scrollWrapped .spread {
601 margin-left: 0;
602 margin-right: 0;
603 }
604
605 .spread .page,
606 .pdfViewer.scrollHorizontal .page,
607 .pdfViewer.scrollWrapped .page,
608 .pdfViewer.scrollHorizontal .spread,
609 .pdfViewer.scrollWrapped .spread {
610 display: inline-block;
611 vertical-align: middle;
612 }
613
614 .spread .page,
615 .pdfViewer.scrollHorizontal .page,
616 .pdfViewer.scrollWrapped .page {
617 margin-left: var(--spreadHorizontalWrapped-margin-LR);
618 margin-right: var(--spreadHorizontalWrapped-margin-LR);
619 }
620
621 .pdfViewer.removePageBorders .spread .page,
622 .pdfViewer.removePageBorders.scrollHorizontal .page,
623 .pdfViewer.removePageBorders.scrollWrapped .page {
624 margin-left: 5px;
625 margin-right: 5px;
626 }
627
628 .pdfViewer .page canvas {
629 margin: 0;
630 display: block;
631 }
632
633 .pdfViewer .page canvas[hidden] {
634 display: none;
635 }
636
637 .pdfViewer .page .loadingIcon {
638 position: absolute;
639 display: block;
640 left: 0;
641 top: 0;
642 right: 0;
643 bottom: 0;
644 background: url("images/loading-icon.gif") center no-repeat;
645 }
646
647 .pdfPresentationMode .pdfViewer {
648 margin-left: 0;
649 margin-right: 0;
650 }
651
652 .pdfPresentationMode .pdfViewer .page,
653 .pdfPresentationMode .pdfViewer .spread {
654 display: block;
655 }
656
657 .pdfPresentationMode .pdfViewer .page,
658 .pdfPresentationMode .pdfViewer.removePageBorders .page {
659 margin-left: auto;
660 margin-right: auto;
661 }
662
663 .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
664 margin-bottom: 100%;
665 border: 0;
666 }
667
668 .pdfPresentationMode:fullscreen .pdfViewer .page {
669 margin-bottom: 100%;
670 border: 0;
671 }
672
673 :root {
674 --sidebar-width: 200px;
675 --sidebar-transition-duration: 200ms;
676 --sidebar-transition-timing-function: ease;
677 --loadingBar-end-offset: 0;
678
679 --toolbar-icon-opacity: 0.7;
680 --doorhanger-icon-opacity: 0.9;
681
682 --main-color: rgba(12, 12, 13, 1);
683 --body-bg-color: rgba(237, 237, 240, 1);
684 --errorWrapper-bg-color: rgba(255, 110, 110, 1);
685 --progressBar-color: rgba(10, 132, 255, 1);
686 --progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1);
687 --progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1);
688 --scrollbar-color: auto;
689 --scrollbar-bg-color: auto;
690 --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
691 --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
692
693 --sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9);
694 --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
695 --toolbar-bg-color: rgba(249, 249, 250, 1);
696 --toolbar-border-color: rgba(204, 204, 204, 1);
697 --button-hover-color: rgba(221, 222, 223, 1);
698 --toggled-btn-color: rgba(0, 0, 0, 1);
699 --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
700 --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
701 --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
702 --separator-color: rgba(0, 0, 0, 0.3);
703 --field-color: rgba(6, 6, 6, 1);
704 --field-bg-color: rgba(255, 255, 255, 1);
705 --field-border-color: rgba(187, 187, 188, 1);
706 --findbar-nextprevious-btn-bg-color: rgba(227, 228, 230, 1);
707 --treeitem-color: rgba(0, 0, 0, 0.8);
708 --treeitem-hover-color: rgba(0, 0, 0, 0.9);
709 --treeitem-selected-color: rgba(0, 0, 0, 0.9);
710 --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
711 --sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
712 --doorhanger-bg-color: rgba(255, 255, 255, 1);
713 --doorhanger-border-color: rgba(12, 12, 13, 0.2);
714 --doorhanger-hover-color: rgba(12, 12, 13, 1);
715 --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
716 --doorhanger-separator-color: rgba(222, 222, 222, 1);
717 --overlay-button-border: 0 none;
718 --overlay-button-bg-color: rgba(12, 12, 13, 0.1);
719 --overlay-button-hover-bg-color: rgba(12, 12, 13, 0.3);
720
721 --loading-icon: url(images/loading.svg);
722 --treeitem-expanded-icon: url(images/treeitem-expanded.svg);
723 --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
724 --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
725 --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
726 --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
727 --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
728 --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
729 --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
730 --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
731 --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
732 --toolbarButton-print-icon: url(images/toolbarButton-print.svg);
733 --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
734 --toolbarButton-download-icon: url(images/toolbarButton-download.svg);
735 --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
736 --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
737 --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
738 --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
739 --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
740 --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
741 --toolbarButton-search-icon: url(images/toolbarButton-search.svg);
742 --findbarButton-previous-icon: url(images/findbarButton-previous.svg);
743 --findbarButton-next-icon: url(images/findbarButton-next.svg);
744 --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
745 --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
746 --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
747 --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
748 --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
749 --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
750 --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
751 --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
752 --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
753 --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
754 --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
755 --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
756 --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
757 }
758
759 @media (prefers-color-scheme: dark) {
760 :root {
761 --main-color: rgba(249, 249, 250, 1);
762 --body-bg-color: rgba(42, 42, 46, 1);
763 --errorWrapper-bg-color: rgba(169, 14, 14, 1);
764 --progressBar-color: rgba(0, 96, 223, 1);
765 --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
766 --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
767 --scrollbar-color: rgba(121, 121, 123, 1);
768 --scrollbar-bg-color: rgba(35, 35, 39, 1);
769 --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
770 --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
771
772 --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
773 --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
774 --toolbar-bg-color: rgba(56, 56, 61, 1);
775 --toolbar-border-color: rgba(12, 12, 13, 1);
776 --button-hover-color: rgba(102, 102, 103, 1);
777 --toggled-btn-color: rgba(255, 255, 255, 1);
778 --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
779 --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
780 --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
781 --separator-color: rgba(0, 0, 0, 0.3);
782 --field-color: rgba(250, 250, 250, 1);
783 --field-bg-color: rgba(64, 64, 68, 1);
784 --field-border-color: rgba(115, 115, 115, 1);
785 --findbar-nextprevious-btn-bg-color: rgba(89, 89, 89, 1);
786 --treeitem-color: rgba(255, 255, 255, 0.8);
787 --treeitem-hover-color: rgba(255, 255, 255, 0.9);
788 --treeitem-selected-color: rgba(255, 255, 255, 0.9);
789 --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
790 --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
791 --doorhanger-bg-color: rgba(74, 74, 79, 1);
792 --doorhanger-border-color: rgba(39, 39, 43, 1);
793 --doorhanger-hover-color: rgba(249, 249, 250, 1);
794 --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
795 --doorhanger-separator-color: rgba(92, 92, 97, 1);
796 --overlay-button-bg-color: rgba(92, 92, 97, 1);
797 --overlay-button-hover-bg-color: rgba(115, 115, 115, 1);
798
799 /* This image is used in <input> elements, which unfortunately means that
800 * the `mask-image` approach used with all of the other images doesn't work
801 * here; hence why we still have two versions of this particular image. */
802 --loading-icon: url(images/loading-dark.svg);
803 }
804 }
805
806 @media screen and (forced-colors: active) {
807 :root {
808 --main-color: ButtonText;
809 --button-hover-color: Highlight;
810 --doorhanger-hover-bg-color: Highlight;
811 --toolbar-icon-opacity: 1;
812 --toolbar-icon-bg-color: ButtonText;
813 --toolbar-icon-hover-bg-color: ButtonFace;
814 --toggled-btn-color: HighlightText;
815 --toggled-btn-bg-color: LinkText;
816 --doorhanger-hover-color: ButtonFace;
817 --doorhanger-border-color-whcm: 1px solid ButtonText;
818 --doorhanger-triangle-opacity-whcm: 0;
819 --overlay-button-border: 1px solid Highlight;
820 --overlay-button-hover-bg-color: Highlight;
821 --overlay-button-hover-color: ButtonFace;
822 --field-border-color: ButtonText;
823 }
824 }
825
826 * {
827 padding: 0;
828 margin: 0;
829 }
830
831 html {
832 height: 100%;
833 width: 100%;
834 /* Font size is needed to make the activity bar the correct size. */
835 font-size: 10px;
836 }
837
838 body {
839 height: 100%;
840 width: 100%;
841 background-color: var(--body-bg-color);
842 }
843
844 body,
845 input,
846 button,
847 select {
848 font: message-box;
849 outline: none;
850 scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
851 }
852
853 .hidden {
854 display: none !important;
855 }
856 [hidden] {
857 display: none !important;
858 }
859
860 .pdfViewer.enablePermissions .textLayer span {
861 -webkit-user-select: none !important;
862 -moz-user-select: none !important;
863 user-select: none !important;
864 cursor: not-allowed;
865 }
866
867 #viewerContainer.pdfPresentationMode:-webkit-full-screen {
868 top: 0;
869 border-top: 2px solid rgba(0, 0, 0, 0);
870 background-color: rgba(0, 0, 0, 1);
871 width: 100%;
872 height: 100%;
873 overflow: hidden;
874 cursor: none;
875 -webkit-user-select: none;
876 user-select: none;
877 }
878
879 #viewerContainer.pdfPresentationMode:fullscreen {
880 top: 0;
881 border-top: 2px solid rgba(0, 0, 0, 0);
882 background-color: rgba(0, 0, 0, 1);
883 width: 100%;
884 height: 100%;
885 overflow: hidden;
886 cursor: none;
887 -webkit-user-select: none;
888 -moz-user-select: none;
889 user-select: none;
890 }
891
892 .pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
893 display: none;
894 }
895
896 .pdfPresentationMode:fullscreen a:not(.internalLink) {
897 display: none;
898 }
899
900 .pdfPresentationMode:-webkit-full-screen .textLayer span {
901 cursor: none;
902 }
903
904 .pdfPresentationMode:fullscreen .textLayer span {
905 cursor: none;
906 }
907
908 .pdfPresentationMode.pdfPresentationModeControls > *,
909 .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
910 cursor: default;
911 }
912
913 #outerContainer {
914 width: 100%;
915 height: 100%;
916 position: relative;
917 }
918
919 #sidebarContainer {
920 position: absolute;
921 top: 32px;
922 bottom: 0;
923 width: var(--sidebar-width);
924 visibility: hidden;
925 z-index: 100;
926 border-top: 1px solid rgba(51, 51, 51, 1);
927 transition-duration: var(--sidebar-transition-duration);
928 transition-timing-function: var(--sidebar-transition-timing-function);
929 }
930 html[dir="ltr"] #sidebarContainer {
931 transition-property: left;
932 left: calc(0px - var(--sidebar-width));
933 border-right: var(--doorhanger-border-color-whcm);
934 }
935 html[dir="rtl"] #sidebarContainer {
936 transition-property: right;
937 right: calc(0px - var(--sidebar-width));
938 border-left: var(--doorhanger-border-color-whcm);
939 }
940
941 #outerContainer.sidebarResizing #sidebarContainer {
942 /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
943 transition-duration: 0s;
944 /* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
945 -webkit-user-select: none;
946 -moz-user-select: none;
947 user-select: none;
948 }
949
950 #outerContainer.sidebarMoving #sidebarContainer,
951 #outerContainer.sidebarOpen #sidebarContainer {
952 visibility: visible;
953 }
954 html[dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer {
955 left: 0;
956 }
957 html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
958 right: 0;
959 }
960
961 #mainContainer {
962 position: absolute;
963 top: 0;
964 right: 0;
965 bottom: 0;
966 left: 0;
967 min-width: 320px;
968 }
969
970 #sidebarContent {
971 top: 32px;
972 bottom: 0;
973 overflow: auto;
974 -webkit-overflow-scrolling: touch;
975 position: absolute;
976 width: 100%;
977 background-color: rgba(0, 0, 0, 0.1);
978 }
979 html[dir="ltr"] #sidebarContent {
980 left: 0;
981 box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
982 }
983 html[dir="rtl"] #sidebarContent {
984 right: 0;
985 box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
986 }
987
988 #viewerContainer {
989 overflow: auto;
990 -webkit-overflow-scrolling: touch;
991 position: absolute;
992 top: 32px;
993 right: 0;
994 bottom: 0;
995 left: 0;
996 outline: none;
997 }
998 #viewerContainer:not(.pdfPresentationMode) {
999 transition-duration: var(--sidebar-transition-duration);
1000 transition-timing-function: var(--sidebar-transition-timing-function);
1001 }
1002
1003 #outerContainer.sidebarResizing #viewerContainer {
1004 /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
1005 transition-duration: 0s;
1006 }
1007
1008 html[dir="ltr"]
1009 #outerContainer.sidebarOpen
1010 #viewerContainer:not(.pdfPresentationMode) {
1011 transition-property: left;
1012 left: var(--sidebar-width);
1013 }
1014 html[dir="rtl"]
1015 #outerContainer.sidebarOpen
1016 #viewerContainer:not(.pdfPresentationMode) {
1017 transition-property: right;
1018 right: var(--sidebar-width);
1019 }
1020
1021 .toolbar {
1022 position: relative;
1023 left: 0;
1024 right: 0;
1025 z-index: 9999;
1026 cursor: default;
1027 }
1028
1029 #toolbarContainer {
1030 width: 100%;
1031 }
1032
1033 #toolbarSidebar {
1034 width: 100%;
1035 height: 32px;
1036 background-color: var(--sidebar-toolbar-bg-color);
1037 }
1038 html[dir="ltr"] #toolbarSidebar {
1039 box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1040 0 0 1px rgba(0, 0, 0, 0.1);
1041 }
1042 html[dir="rtl"] #toolbarSidebar {
1043 box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1044 0 0 1px rgba(0, 0, 0, 0.1);
1045 }
1046
1047 html[dir="ltr"] #toolbarSidebar .toolbarButton {
1048 margin-right: 2px !important;
1049 }
1050 html[dir="rtl"] #toolbarSidebar .toolbarButton {
1051 margin-left: 2px !important;
1052 }
1053
1054 html[dir="ltr"] #toolbarSidebarRight .toolbarButton {
1055 margin-right: 3px !important;
1056 }
1057 html[dir="rtl"] #toolbarSidebarRight .toolbarButton {
1058 margin-left: 3px !important;
1059 }
1060
1061 #sidebarResizer {
1062 position: absolute;
1063 top: 0;
1064 bottom: 0;
1065 width: 6px;
1066 z-index: 200;
1067 cursor: ew-resize;
1068 }
1069 html[dir="ltr"] #sidebarResizer {
1070 right: -6px;
1071 }
1072 html[dir="rtl"] #sidebarResizer {
1073 left: -6px;
1074 }
1075
1076 #toolbarContainer,
1077 .findbar,
1078 .secondaryToolbar {
1079 position: relative;
1080 height: 32px;
1081 background-color: var(--toolbar-bg-color);
1082 box-shadow: 0 1px 0 var(--toolbar-border-color);
1083 }
1084
1085 #toolbarViewer {
1086 height: 32px;
1087 }
1088
1089 #loadingBar {
1090 position: absolute;
1091 height: 4px;
1092 background-color: var(--body-bg-color);
1093 border-bottom: 1px solid var(--toolbar-border-color);
1094
1095 transition-duration: var(--sidebar-transition-duration);
1096 transition-timing-function: var(--sidebar-transition-timing-function);
1097 }
1098 html[dir="ltr"] #loadingBar {
1099 transition-property: left;
1100 left: 0;
1101 right: var(--loadingBar-end-offset);
1102 }
1103 html[dir="rtl"] #loadingBar {
1104 transition-property: right;
1105 left: var(--loadingBar-end-offset);
1106 right: 0;
1107 }
1108
1109 html[dir="ltr"] #outerContainer.sidebarOpen #loadingBar {
1110 left: var(--sidebar-width);
1111 }
1112 html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1113 right: var(--sidebar-width);
1114 }
1115
1116 #outerContainer.sidebarResizing #loadingBar {
1117 /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
1118 transition-duration: 0s;
1119 }
1120
1121 #loadingBar .progress {
1122 position: absolute;
1123 top: 0;
1124 left: 0;
1125 width: 0%;
1126 height: 100%;
1127 background-color: var(--progressBar-color);
1128 overflow: hidden;
1129 transition: width 200ms;
1130 }
1131
1132 @-webkit-keyframes progressIndeterminate {
1133 0% {
1134 left: -142px;
1135 }
1136 100% {
1137 left: 0;
1138 }
1139 }
1140
1141 @keyframes progressIndeterminate {
1142 0% {
1143 left: -142px;
1144 }
1145 100% {
1146 left: 0;
1147 }
1148 }
1149
1150 #loadingBar .progress.indeterminate {
1151 background-color: var(--progressBar-indeterminate-bg-color);
1152 transition: none;
1153 }
1154
1155 #loadingBar .progress.indeterminate .glimmer {
1156 position: absolute;
1157 top: 0;
1158 left: 0;
1159 height: 100%;
1160 width: calc(100% + 150px);
1161 background: repeating-linear-gradient(
1162 135deg,
1163 var(--progressBar-indeterminate-blend-color) 0,
1164 var(--progressBar-indeterminate-bg-color) 5px,
1165 var(--progressBar-indeterminate-bg-color) 45px,
1166 var(--progressBar-color) 55px,
1167 var(--progressBar-color) 95px,
1168 var(--progressBar-indeterminate-blend-color) 100px
1169 );
1170 -webkit-animation: progressIndeterminate 1s linear infinite;
1171 animation: progressIndeterminate 1s linear infinite;
1172 }
1173
1174 .findbar,
1175 .secondaryToolbar {
1176 top: 32px;
1177 position: absolute;
1178 z-index: 10000;
1179 height: auto;
1180 min-width: 16px;
1181 padding: 0 4px;
1182 margin: 4px 2px;
1183 color: rgba(217, 217, 217, 1);
1184 font-size: 12px;
1185 line-height: 14px;
1186 text-align: left;
1187 cursor: default;
1188 }
1189
1190 .findbar {
1191 min-width: 300px;
1192 background-color: var(--toolbar-bg-color);
1193 }
1194 .findbar > div {
1195 height: 32px;
1196 }
1197 .findbar.wrapContainers > div {
1198 clear: both;
1199 }
1200 .findbar.wrapContainers > div#findbarMessageContainer {
1201 height: auto;
1202 }
1203 html[dir="ltr"] .findbar {
1204 left: 64px;
1205 }
1206 html[dir="rtl"] .findbar {
1207 right: 64px;
1208 }
1209
1210 .findbar .splitToolbarButton {
1211 margin-top: 3px;
1212 }
1213 html[dir="ltr"] .findbar .splitToolbarButton {
1214 margin-left: 0;
1215 margin-right: 5px;
1216 }
1217 html[dir="rtl"] .findbar .splitToolbarButton {
1218 margin-left: 5px;
1219 margin-right: 0;
1220 }
1221
1222 .findbar .splitToolbarButton > .toolbarButton {
1223 background-color: var(--findbar-nextprevious-btn-bg-color);
1224 border-radius: 0;
1225 height: 26px;
1226 border-top: 1px solid var(--field-border-color);
1227 border-bottom: 1px solid var(--field-border-color);
1228 }
1229
1230 .findbar .splitToolbarButton > .toolbarButton::before {
1231 top: 5px;
1232 }
1233
1234 .findbar .splitToolbarButton > .findNext {
1235 width: 29px;
1236 }
1237 html[dir="ltr"] .findbar .splitToolbarButton > .findNext {
1238 border-bottom-right-radius: 2px;
1239 border-top-right-radius: 2px;
1240 border-right: 1px solid var(--field-border-color);
1241 }
1242 html[dir="rtl"] .findbar .splitToolbarButton > .findNext {
1243 border-bottom-left-radius: 2px;
1244 border-top-left-radius: 2px;
1245 border-left: 1px solid var(--field-border-color);
1246 }
1247
1248 .findbar input[type="checkbox"] {
1249 pointer-events: none;
1250 }
1251
1252 .findbar label {
1253 -webkit-user-select: none;
1254 -moz-user-select: none;
1255 user-select: none;
1256 }
1257
1258 .findbar label:hover,
1259 .findbar input:focus + label {
1260 color: var(--toggled-btn-color);
1261 background-color: var(--button-hover-color);
1262 }
1263
1264 html[dir="ltr"] #findInput {
1265 border-top-right-radius: 0;
1266 border-bottom-right-radius: 0;
1267 }
1268 html[dir="rtl"] #findInput {
1269 border-top-left-radius: 0;
1270 border-bottom-left-radius: 0;
1271 }
1272
1273 .findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel {
1274 background-color: var(--toggled-btn-bg-color) !important;
1275 color: var(--toggled-btn-color);
1276 }
1277
1278 #findInput {
1279 width: 200px;
1280 }
1281 #findInput::-moz-placeholder {
1282 font-style: normal;
1283 }
1284 #findInput::placeholder {
1285 font-style: normal;
1286 }
1287 #findInput[data-status="pending"] {
1288 background-image: var(--loading-icon);
1289 background-repeat: no-repeat;
1290 background-position: 98%;
1291 }
1292 html[dir="rtl"] #findInput[data-status="pending"] {
1293 background-position: 3px;
1294 }
1295 #findInput[data-status="notFound"] {
1296 background-color: rgba(255, 102, 102, 1);
1297 }
1298
1299 .secondaryToolbar {
1300 padding: 6px 0 10px;
1301 height: auto;
1302 z-index: 30000;
1303 background-color: var(--doorhanger-bg-color);
1304 }
1305 html[dir="ltr"] .secondaryToolbar {
1306 right: 4px;
1307 }
1308 html[dir="rtl"] .secondaryToolbar {
1309 left: 4px;
1310 }
1311
1312 #secondaryToolbarButtonContainer {
1313 max-width: 220px;
1314 max-height: 400px;
1315 overflow-y: auto;
1316 -webkit-overflow-scrolling: touch;
1317 margin-bottom: -4px;
1318 }
1319
1320 #secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
1321 #secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
1322 display: none !important;
1323 }
1324
1325 .doorHanger,
1326 .doorHangerRight {
1327 border-radius: 2px;
1328 box-shadow: 0 1px 5px var(--doorhanger-border-color),
1329 0 0 0 1px var(--doorhanger-border-color);
1330 border: var(--doorhanger-border-color-whcm);
1331 }
1332 .doorHanger:after,
1333 .doorHanger:before,
1334 .doorHangerRight:after,
1335 .doorHangerRight:before {
1336 bottom: 100%;
1337 border: solid rgba(0, 0, 0, 0);
1338 content: " ";
1339 height: 0;
1340 width: 0;
1341 position: absolute;
1342 pointer-events: none;
1343 opacity: var(--doorhanger-triangle-opacity-whcm);
1344 }
1345 .doorHanger:after,
1346 .doorHangerRight:after {
1347 border-width: 8px;
1348 }
1349 .doorHanger:after {
1350 border-bottom-color: var(--toolbar-bg-color);
1351 }
1352 .doorHangerRight:after {
1353 border-bottom-color: var(--doorhanger-bg-color);
1354 }
1355 .doorHanger:before,
1356 .doorHangerRight:before {
1357 border-bottom-color: var(--doorhanger-border-color);
1358 border-width: 9px;
1359 }
1360
1361 html[dir="ltr"] .doorHanger:after,
1362 html[dir="rtl"] .doorHangerRight:after {
1363 left: 10px;
1364 margin-left: -8px;
1365 }
1366
1367 html[dir="ltr"] .doorHanger:before,
1368 html[dir="rtl"] .doorHangerRight:before {
1369 left: 10px;
1370 margin-left: -9px;
1371 }
1372
1373 html[dir="rtl"] .doorHanger:after,
1374 html[dir="ltr"] .doorHangerRight:after {
1375 right: 10px;
1376 margin-right: -8px;
1377 }
1378
1379 html[dir="rtl"] .doorHanger:before,
1380 html[dir="ltr"] .doorHangerRight:before {
1381 right: 10px;
1382 margin-right: -9px;
1383 }
1384
1385 #findResultsCount {
1386 background-color: rgba(217, 217, 217, 1);
1387 color: rgba(82, 82, 82, 1);
1388 text-align: center;
1389 padding: 4px 5px;
1390 margin: 5px;
1391 }
1392
1393 #findMsg {
1394 color: rgba(251, 0, 0, 1);
1395 }
1396 #findMsg:empty {
1397 display: none;
1398 }
1399
1400 #toolbarViewerMiddle {
1401 position: absolute;
1402 left: 50%;
1403 transform: translateX(-50%);
1404 }
1405
1406 html[dir="ltr"] #toolbarViewerLeft,
1407 html[dir="rtl"] #toolbarViewerRight,
1408 html[dir="ltr"] #toolbarSidebarLeft,
1409 html[dir="rtl"] #toolbarSidebarRight {
1410 float: left;
1411 }
1412 html[dir="ltr"] #toolbarViewerRight,
1413 html[dir="rtl"] #toolbarViewerLeft,
1414 html[dir="ltr"] #toolbarSidebarRight,
1415 html[dir="rtl"] #toolbarSidebarLeft {
1416 float: right;
1417 }
1418 html[dir="ltr"] #toolbarViewerLeft > *,
1419 html[dir="ltr"] #toolbarViewerMiddle > *,
1420 html[dir="ltr"] #toolbarViewerRight > *,
1421 html[dir="ltr"] #toolbarSidebarLeft *,
1422 html[dir="ltr"] #toolbarSidebarRight *,
1423 html[dir="ltr"] .findbar * {
1424 position: relative;
1425 float: left;
1426 }
1427 html[dir="rtl"] #toolbarViewerLeft > *,
1428 html[dir="rtl"] #toolbarViewerMiddle > *,
1429 html[dir="rtl"] #toolbarViewerRight > *,
1430 html[dir="rtl"] #toolbarSidebarLeft *,
1431 html[dir="rtl"] #toolbarSidebarRight *,
1432 html[dir="rtl"] .findbar * {
1433 position: relative;
1434 float: right;
1435 }
1436
1437 .splitToolbarButton {
1438 margin: 2px 2px 0;
1439 display: inline-block;
1440 }
1441 html[dir="ltr"] .splitToolbarButton > .toolbarButton {
1442 float: left;
1443 }
1444 html[dir="rtl"] .splitToolbarButton > .toolbarButton {
1445 float: right;
1446 }
1447
1448 .toolbarButton,
1449 .secondaryToolbarButton,
1450 .overlayButton {
1451 border: 0 none;
1452 background: none;
1453 width: 28px;
1454 height: 28px;
1455 }
1456
1457 .overlayButton:hover,
1458 .overlayButton:focus {
1459 background-color: var(--overlay-button-hover-bg-color);
1460 }
1461
1462 .overlayButton:hover > span,
1463 .overlayButton:focus > span {
1464 color: var(--overlay-button-hover-color);
1465 }
1466
1467 .toolbarButton > span {
1468 display: inline-block;
1469 width: 0;
1470 height: 0;
1471 overflow: hidden;
1472 }
1473
1474 .toolbarButton[disabled],
1475 .secondaryToolbarButton[disabled],
1476 .overlayButton[disabled] {
1477 opacity: 0.5;
1478 }
1479
1480 .splitToolbarButton.toggled .toolbarButton {
1481 margin: 0;
1482 }
1483
1484 .splitToolbarButton > .toolbarButton:hover,
1485 .splitToolbarButton > .toolbarButton:focus,
1486 .dropdownToolbarButton:hover,
1487 .toolbarButton.textButton:hover,
1488 .toolbarButton.textButton:focus {
1489 background-color: var(--button-hover-color);
1490 z-index: 199;
1491 }
1492 .splitToolbarButton > .toolbarButton {
1493 position: relative;
1494 }
1495 html[dir="ltr"] .splitToolbarButton > .toolbarButton:first-child,
1496 html[dir="rtl"] .splitToolbarButton > .toolbarButton:last-child {
1497 margin: 0;
1498 }
1499 html[dir="ltr"] .splitToolbarButton > .toolbarButton:last-child,
1500 html[dir="rtl"] .splitToolbarButton > .toolbarButton:first-child {
1501 margin: 0;
1502 }
1503 .splitToolbarButtonSeparator {
1504 padding: 10px 0;
1505 width: 1px;
1506 background-color: var(--separator-color);
1507 z-index: 99;
1508 display: inline-block;
1509 margin: 4px 0;
1510 }
1511
1512 .findbar .splitToolbarButtonSeparator {
1513 background-color: var(--field-border-color);
1514 margin: 0;
1515 padding: 13px 0;
1516 }
1517
1518 html[dir="ltr"] .splitToolbarButtonSeparator {
1519 float: left;
1520 }
1521 html[dir="rtl"] .splitToolbarButtonSeparator {
1522 float: right;
1523 }
1524
1525 .toolbarButton,
1526 .dropdownToolbarButton,
1527 .secondaryToolbarButton,
1528 .overlayButton {
1529 min-width: 16px;
1530 margin: 2px 1px;
1531 padding: 2px 6px 0;
1532 border: none;
1533 border-radius: 2px;
1534 color: var(--main-color);
1535 font-size: 12px;
1536 line-height: 14px;
1537 -webkit-user-select: none;
1538 -moz-user-select: none;
1539 user-select: none;
1540 cursor: default;
1541 box-sizing: border-box;
1542 }
1543
1544 html[dir="ltr"] #toolbarViewerLeft > .toolbarButton:first-child,
1545 html[dir="rtl"] #toolbarViewerRight > .toolbarButton:last-child {
1546 margin-left: 2px;
1547 }
1548
1549 html[dir="ltr"] #toolbarViewerRight > .toolbarButton:last-child,
1550 html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1551 margin-right: 2px;
1552 }
1553 .toolbarButton:hover,
1554 .toolbarButton:focus {
1555 background-color: var(--button-hover-color);
1556 }
1557 .secondaryToolbarButton:hover,
1558 .secondaryToolbarButton:focus {
1559 background-color: var(--doorhanger-hover-bg-color);
1560 color: var(--doorhanger-hover-color);
1561 }
1562
1563 .toolbarButton.toggled,
1564 .splitToolbarButton.toggled > .toolbarButton.toggled,
1565 .secondaryToolbarButton.toggled {
1566 background-color: var(--toggled-btn-bg-color);
1567 color: var(--toggled-btn-color);
1568 }
1569
1570 .secondaryToolbarButton.toggled::before {
1571 background-color: var(--toggled-btn-color);
1572 }
1573
1574 .toolbarButton.toggled::before {
1575 background-color: var(--toggled-btn-color);
1576 }
1577
1578 .toolbarButton.toggled:hover:active,
1579 .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
1580 .secondaryToolbarButton.toggled:hover:active {
1581 background-color: var(--toggled-hover-active-btn-color);
1582 }
1583
1584 .dropdownToolbarButton {
1585 width: 140px;
1586 padding: 0;
1587 overflow: hidden;
1588 background-color: var(--dropdown-btn-bg-color);
1589 margin-top: 2px !important;
1590 }
1591 .dropdownToolbarButton::after {
1592 top: 6px;
1593 pointer-events: none;
1594
1595 -webkit-mask-image: var(--toolbarButton-menuArrow-icon);
1596 mask-image: var(--toolbarButton-menuArrow-icon);
1597 }
1598 html[dir="ltr"] .dropdownToolbarButton::after {
1599 right: 7px;
1600 }
1601 html[dir="rtl"] .dropdownToolbarButton::after {
1602 left: 7px;
1603 }
1604
1605 .dropdownToolbarButton > select {
1606 width: 162px;
1607 height: 28px;
1608 font-size: 12px;
1609 color: var(--main-color);
1610 margin: 0;
1611 padding: 1px 0 2px;
1612 border: none;
1613 background-color: var(--dropdown-btn-bg-color);
1614 }
1615 html[dir="ltr"] .dropdownToolbarButton > select {
1616 padding-left: 4px;
1617 }
1618 html[dir="rtl"] .dropdownToolbarButton > select {
1619 padding-right: 4px;
1620 }
1621 .dropdownToolbarButton > select:hover,
1622 .dropdownToolbarButton > select:focus {
1623 background-color: var(--button-hover-color);
1624 color: var(--toggled-btn-color);
1625 }
1626
1627 .dropdownToolbarButton > select > option {
1628 background: var(--doorhanger-bg-color);
1629 color: var(--main-color);
1630 }
1631
1632 #customScaleOption {
1633 display: none;
1634 }
1635
1636 #pageWidthOption {
1637 border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
1638 }
1639
1640 .toolbarButtonSpacer {
1641 width: 30px;
1642 display: inline-block;
1643 height: 1px;
1644 }
1645
1646 .toolbarButton::before,
1647 .secondaryToolbarButton::before,
1648 .dropdownToolbarButton::after,
1649 .treeItemToggler::before {
1650 /* All matching images have a size of 16x16
1651 * All relevant containers have a size of 28x28 */
1652 position: absolute;
1653 display: inline-block;
1654 width: 16px;
1655 height: 16px;
1656
1657 content: "";
1658 background-color: var(--toolbar-icon-bg-color);
1659 -webkit-mask-size: cover;
1660 mask-size: cover;
1661 }
1662
1663 .dropdownToolbarButton:hover::after,
1664 .dropdownToolbarButton:focus::after,
1665 .dropdownToolbarButton:active::after {
1666 background-color: var(--toolbar-icon-hover-bg-color);
1667 }
1668
1669 .toolbarButton::before {
1670 opacity: var(--toolbar-icon-opacity);
1671 top: 6px;
1672 left: 6px;
1673 }
1674
1675 .toolbarButton:hover::before,
1676 .toolbarButton:focus::before,
1677 .secondaryToolbarButton:hover::before,
1678 .secondaryToolbarButton:focus::before {
1679 background-color: var(--toolbar-icon-hover-bg-color);
1680 }
1681
1682 .secondaryToolbarButton::before {
1683 opacity: var(--doorhanger-icon-opacity);
1684 top: 5px;
1685 }
1686 html[dir="ltr"] .secondaryToolbarButton::before {
1687 left: 12px;
1688 }
1689 html[dir="rtl"] .secondaryToolbarButton::before {
1690 right: 12px;
1691 }
1692
1693 .toolbarButton#sidebarToggle::before {
1694 -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
1695 mask-image: var(--toolbarButton-sidebarToggle-icon);
1696 }
1697 html[dir="rtl"] .toolbarButton#sidebarToggle::before {
1698 transform: scaleX(-1);
1699 }
1700
1701 .toolbarButton#secondaryToolbarToggle::before {
1702 -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1703 mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1704 }
1705 html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
1706 transform: scaleX(-1);
1707 }
1708
1709 .toolbarButton.findPrevious::before {
1710 -webkit-mask-image: var(--findbarButton-previous-icon);
1711 mask-image: var(--findbarButton-previous-icon);
1712 }
1713
1714 .toolbarButton.findNext::before {
1715 -webkit-mask-image: var(--findbarButton-next-icon);
1716 mask-image: var(--findbarButton-next-icon);
1717 }
1718
1719 .toolbarButton.pageUp::before {
1720 -webkit-mask-image: var(--toolbarButton-pageUp-icon);
1721 mask-image: var(--toolbarButton-pageUp-icon);
1722 }
1723
1724 .toolbarButton.pageDown::before {
1725 -webkit-mask-image: var(--toolbarButton-pageDown-icon);
1726 mask-image: var(--toolbarButton-pageDown-icon);
1727 }
1728
1729 .toolbarButton.zoomOut::before {
1730 -webkit-mask-image: var(--toolbarButton-zoomOut-icon);
1731 mask-image: var(--toolbarButton-zoomOut-icon);
1732 }
1733
1734 .toolbarButton.zoomIn::before {
1735 -webkit-mask-image: var(--toolbarButton-zoomIn-icon);
1736 mask-image: var(--toolbarButton-zoomIn-icon);
1737 }
1738
1739 .toolbarButton.presentationMode::before,
1740 .secondaryToolbarButton.presentationMode::before {
1741 -webkit-mask-image: var(--toolbarButton-presentationMode-icon);
1742 mask-image: var(--toolbarButton-presentationMode-icon);
1743 }
1744
1745 .toolbarButton.print::before,
1746 .secondaryToolbarButton.print::before {
1747 -webkit-mask-image: var(--toolbarButton-print-icon);
1748 mask-image: var(--toolbarButton-print-icon);
1749 }
1750
1751 .toolbarButton.openFile::before,
1752 .secondaryToolbarButton.openFile::before {
1753 -webkit-mask-image: var(--toolbarButton-openFile-icon);
1754 mask-image: var(--toolbarButton-openFile-icon);
1755 }
1756
1757 .toolbarButton.download::before,
1758 .secondaryToolbarButton.download::before {
1759 -webkit-mask-image: var(--toolbarButton-download-icon);
1760 mask-image: var(--toolbarButton-download-icon);
1761 }
1762
1763 .secondaryToolbarButton.bookmark {
1764 padding-top: 6px;
1765 text-decoration: none;
1766 }
1767
1768 .bookmark[href="#"] {
1769 opacity: 0.5;
1770 pointer-events: none;
1771 }
1772
1773 .toolbarButton.bookmark::before,
1774 .secondaryToolbarButton.bookmark::before {
1775 -webkit-mask-image: var(--toolbarButton-bookmark-icon);
1776 mask-image: var(--toolbarButton-bookmark-icon);
1777 }
1778
1779 #viewThumbnail.toolbarButton::before {
1780 -webkit-mask-image: var(--toolbarButton-viewThumbnail-icon);
1781 mask-image: var(--toolbarButton-viewThumbnail-icon);
1782 }
1783
1784 #viewOutline.toolbarButton::before {
1785 -webkit-mask-image: var(--toolbarButton-viewOutline-icon);
1786 mask-image: var(--toolbarButton-viewOutline-icon);
1787 }
1788 html[dir="rtl"] #viewOutline.toolbarButton::before {
1789 transform: scaleX(-1);
1790 }
1791
1792 #viewAttachments.toolbarButton::before {
1793 -webkit-mask-image: var(--toolbarButton-viewAttachments-icon);
1794 mask-image: var(--toolbarButton-viewAttachments-icon);
1795 }
1796
1797 #viewLayers.toolbarButton::before {
1798 -webkit-mask-image: var(--toolbarButton-viewLayers-icon);
1799 mask-image: var(--toolbarButton-viewLayers-icon);
1800 }
1801
1802 #currentOutlineItem.toolbarButton::before {
1803 -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
1804 mask-image: var(--toolbarButton-currentOutlineItem-icon);
1805 }
1806 html[dir="rtl"] #currentOutlineItem.toolbarButton::before {
1807 transform: scaleX(-1);
1808 }
1809
1810 #viewFind.toolbarButton::before {
1811 -webkit-mask-image: var(--toolbarButton-search-icon);
1812 mask-image: var(--toolbarButton-search-icon);
1813 }
1814
1815 .toolbarButton.pdfSidebarNotification::after {
1816 position: absolute;
1817 display: inline-block;
1818 top: 1px;
1819 /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
1820 content: "";
1821 background-color: rgba(112, 219, 85, 1);
1822 height: 9px;
1823 width: 9px;
1824 border-radius: 50%;
1825 }
1826 html[dir="ltr"] .toolbarButton.pdfSidebarNotification::after {
1827 left: 17px;
1828 }
1829 html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
1830 right: 17px;
1831 }
1832
1833 .secondaryToolbarButton {
1834 position: relative;
1835 margin: 0;
1836 padding: 0 0 1px;
1837 height: auto;
1838 min-height: 26px;
1839 width: auto;
1840 min-width: 100%;
1841 white-space: normal;
1842 border-radius: 0;
1843 box-sizing: border-box;
1844 }
1845 html[dir="ltr"] .secondaryToolbarButton {
1846 padding-left: 36px;
1847 text-align: left;
1848 }
1849 html[dir="rtl"] .secondaryToolbarButton {
1850 padding-right: 36px;
1851 text-align: right;
1852 }
1853
1854 html[dir="ltr"] .secondaryToolbarButton > span {
1855 padding-right: 4px;
1856 }
1857 html[dir="rtl"] .secondaryToolbarButton > span {
1858 padding-left: 4px;
1859 }
1860
1861 .secondaryToolbarButton.firstPage::before {
1862 -webkit-mask-image: var(--secondaryToolbarButton-firstPage-icon);
1863 mask-image: var(--secondaryToolbarButton-firstPage-icon);
1864 }
1865
1866 .secondaryToolbarButton.lastPage::before {
1867 -webkit-mask-image: var(--secondaryToolbarButton-lastPage-icon);
1868 mask-image: var(--secondaryToolbarButton-lastPage-icon);
1869 }
1870
1871 .secondaryToolbarButton.rotateCcw::before {
1872 -webkit-mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1873 mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1874 }
1875
1876 .secondaryToolbarButton.rotateCw::before {
1877 -webkit-mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1878 mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1879 }
1880
1881 .secondaryToolbarButton.selectTool::before {
1882 -webkit-mask-image: var(--secondaryToolbarButton-selectTool-icon);
1883 mask-image: var(--secondaryToolbarButton-selectTool-icon);
1884 }
1885
1886 .secondaryToolbarButton.handTool::before {
1887 -webkit-mask-image: var(--secondaryToolbarButton-handTool-icon);
1888 mask-image: var(--secondaryToolbarButton-handTool-icon);
1889 }
1890
1891 .secondaryToolbarButton.scrollVertical::before {
1892 -webkit-mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1893 mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1894 }
1895
1896 .secondaryToolbarButton.scrollHorizontal::before {
1897 -webkit-mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1898 mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1899 }
1900
1901 .secondaryToolbarButton.scrollWrapped::before {
1902 -webkit-mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1903 mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1904 }
1905
1906 .secondaryToolbarButton.spreadNone::before {
1907 -webkit-mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1908 mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1909 }
1910
1911 .secondaryToolbarButton.spreadOdd::before {
1912 -webkit-mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1913 mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1914 }
1915
1916 .secondaryToolbarButton.spreadEven::before {
1917 -webkit-mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1918 mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1919 }
1920
1921 .secondaryToolbarButton.documentProperties::before {
1922 -webkit-mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1923 mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1924 }
1925
1926 .verticalToolbarSeparator {
1927 display: block;
1928 padding: 11px 0;
1929 margin: 5px 2px;
1930 width: 1px;
1931 background-color: var(--separator-color);
1932 }
1933 html[dir="ltr"] .verticalToolbarSeparator {
1934 margin-left: 2px;
1935 }
1936 html[dir="rtl"] .verticalToolbarSeparator {
1937 margin-right: 2px;
1938 }
1939
1940 .horizontalToolbarSeparator {
1941 display: block;
1942 margin: 6px 0 5px;
1943 height: 1px;
1944 width: 100%;
1945 border-top: 1px solid var(--doorhanger-separator-color);
1946 }
1947
1948 .toolbarField {
1949 padding: 4px 7px;
1950 margin: 3px 0;
1951 border-radius: 2px;
1952 background-color: var(--field-bg-color);
1953 background-clip: padding-box;
1954 border-width: 1px;
1955 border-style: solid;
1956 border-color: var(--field-border-color);
1957 box-shadow: none;
1958 color: var(--field-color);
1959 font-size: 12px;
1960 line-height: 16px;
1961 outline-style: none;
1962 }
1963
1964 .toolbarField[type="checkbox"] {
1965 opacity: 0;
1966 position: absolute !important;
1967 left: 0;
1968 }
1969
1970 html[dir="ltr"] .toolbarField[type="checkbox"] {
1971 margin: 10px 0 3px 7px;
1972 }
1973
1974 html[dir="rtl"] .toolbarField[type="checkbox"] {
1975 margin: 10px 7px 3px 0;
1976 }
1977
1978 .toolbarField.pageNumber {
1979 -moz-appearance: textfield; /* hides the spinner in moz */
1980 min-width: 16px;
1981 text-align: right;
1982 width: 40px;
1983 }
1984
1985 .toolbarField.pageNumber.visiblePageIsLoading {
1986 background-image: var(--loading-icon);
1987 background-repeat: no-repeat;
1988 background-position: 3px;
1989 }
1990
1991 .toolbarField.pageNumber::-webkit-inner-spin-button,
1992 .toolbarField.pageNumber::-webkit-outer-spin-button {
1993 -webkit-appearance: none;
1994 margin: 0;
1995 }
1996
1997 .toolbarField:focus {
1998 border-color: #0a84ff;
1999 }
2000
2001 .toolbarLabel {
2002 min-width: 16px;
2003 padding: 7px;
2004 margin: 2px;
2005 border-radius: 2px;
2006 color: var(--main-color);
2007 font-size: 12px;
2008 line-height: 14px;
2009 text-align: left;
2010 -webkit-user-select: none;
2011 -moz-user-select: none;
2012 user-select: none;
2013 cursor: default;
2014 }
2015
2016 html[dir="ltr"] #numPages.toolbarLabel {
2017 padding-left: 3px;
2018 }
2019 html[dir="rtl"] #numPages.toolbarLabel {
2020 padding-right: 3px;
2021 }
2022
2023 #thumbnailView {
2024 position: absolute;
2025 width: calc(100% - 60px);
2026 top: 0;
2027 bottom: 0;
2028 padding: 10px 30px 0;
2029 overflow: auto;
2030 -webkit-overflow-scrolling: touch;
2031 }
2032
2033 #thumbnailView > a:active,
2034 #thumbnailView > a:focus {
2035 outline: 0;
2036 }
2037
2038 .thumbnail {
2039 margin: 0 10px 5px;
2040 }
2041 html[dir="ltr"] .thumbnail {
2042 float: left;
2043 }
2044 html[dir="rtl"] .thumbnail {
2045 float: right;
2046 }
2047
2048 #thumbnailView > a:last-of-type > .thumbnail {
2049 margin-bottom: 10px;
2050 }
2051
2052 #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
2053 margin-bottom: 9px;
2054 }
2055
2056 .thumbnail:not([data-loaded]) {
2057 border: 1px dashed rgba(132, 132, 132, 1);
2058 margin: -1px 9px 4px;
2059 }
2060
2061 .thumbnailImage {
2062 border: 1px solid rgba(0, 0, 0, 0);
2063 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
2064 opacity: 0.8;
2065 z-index: 99;
2066 background-color: rgba(255, 255, 255, 1);
2067 background-clip: content-box;
2068 }
2069
2070 .thumbnailSelectionRing {
2071 border-radius: 2px;
2072 padding: 7px;
2073 }
2074
2075 a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
2076 .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
2077 opacity: 0.9;
2078 }
2079
2080 a:focus > .thumbnail > .thumbnailSelectionRing,
2081 .thumbnail:hover > .thumbnailSelectionRing {
2082 background-color: var(--sidebaritem-bg-color);
2083 background-clip: padding-box;
2084 color: rgba(255, 255, 255, 0.9);
2085 }
2086
2087 .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
2088 opacity: 1;
2089 }
2090
2091 .thumbnail.selected > .thumbnailSelectionRing {
2092 background-color: var(--sidebaritem-bg-color);
2093 background-clip: padding-box;
2094 color: rgba(255, 255, 255, 1);
2095 }
2096
2097 #outlineView,
2098 #attachmentsView,
2099 #layersView {
2100 position: absolute;
2101 width: calc(100% - 8px);
2102 top: 0;
2103 bottom: 0;
2104 padding: 4px 4px 0;
2105 overflow: auto;
2106 -webkit-overflow-scrolling: touch;
2107 -webkit-user-select: none;
2108 -moz-user-select: none;
2109 user-select: none;
2110 }
2111
2112 html[dir="ltr"] .treeWithDeepNesting > .treeItem,
2113 html[dir="ltr"] .treeItem > .treeItems {
2114 margin-left: 20px;
2115 }
2116
2117 html[dir="rtl"] .treeWithDeepNesting > .treeItem,
2118 html[dir="rtl"] .treeItem > .treeItems {
2119 margin-right: 20px;
2120 }
2121
2122 .treeItem > a {
2123 text-decoration: none;
2124 display: inline-block;
2125 min-width: 95%;
2126 /* Subtract the right padding (left, in RTL mode) of the container: */
2127 min-width: calc(100% - 4px);
2128 height: auto;
2129 margin-bottom: 1px;
2130 border-radius: 2px;
2131 color: var(--treeitem-color);
2132 font-size: 13px;
2133 line-height: 15px;
2134 -webkit-user-select: none;
2135 -moz-user-select: none;
2136 user-select: none;
2137 white-space: normal;
2138 cursor: pointer;
2139 }
2140 html[dir="ltr"] .treeItem > a {
2141 padding: 2px 0 5px 4px;
2142 }
2143 html[dir="rtl"] .treeItem > a {
2144 padding: 2px 4px 5px 0;
2145 }
2146
2147 #layersView .treeItem > a > * {
2148 cursor: pointer;
2149 }
2150 html[dir="ltr"] #layersView .treeItem > a > label {
2151 padding-left: 4px;
2152 }
2153 html[dir="rtl"] #layersView .treesItem > a > label {
2154 padding-right: 4px;
2155 }
2156
2157 .treeItemToggler {
2158 position: relative;
2159 height: 0;
2160 width: 0;
2161 color: rgba(255, 255, 255, 0.5);
2162 }
2163 .treeItemToggler::before {
2164 -webkit-mask-image: var(--treeitem-expanded-icon);
2165 mask-image: var(--treeitem-expanded-icon);
2166 }
2167 .treeItemToggler.treeItemsHidden::before {
2168 -webkit-mask-image: var(--treeitem-collapsed-icon);
2169 mask-image: var(--treeitem-collapsed-icon);
2170 }
2171 html[dir="rtl"] .treeItemToggler.treeItemsHidden::before {
2172 transform: scaleX(-1);
2173 }
2174 .treeItemToggler.treeItemsHidden ~ .treeItems {
2175 display: none;
2176 }
2177 html[dir="ltr"] .treeItemToggler {
2178 float: left;
2179 }
2180 html[dir="rtl"] .treeItemToggler {
2181 float: right;
2182 }
2183 html[dir="ltr"] .treeItemToggler::before {
2184 right: 4px;
2185 }
2186 html[dir="rtl"] .treeItemToggler::before {
2187 left: 4px;
2188 }
2189
2190 .treeItem.selected > a {
2191 background-color: var(--treeitem-selected-bg-color);
2192 color: var(--treeitem-selected-color);
2193 }
2194
2195 .treeItemToggler:hover,
2196 .treeItemToggler:hover + a,
2197 .treeItemToggler:hover ~ .treeItems,
2198 .treeItem > a:hover {
2199 background-color: var(--sidebaritem-bg-color);
2200 background-clip: padding-box;
2201 border-radius: 2px;
2202 color: var(--treeitem-hover-color);
2203 }
2204
2205 /* TODO: file FF bug to support ::-moz-selection:window-inactive
2206 so we can override the opaque grey background when the window is inactive;
2207 see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
2208 ::-moz-selection {
2209 background: rgba(0, 0, 255, 0.3);
2210 }
2211 ::selection {
2212 background: rgba(0, 0, 255, 0.3);
2213 }
2214
2215 #errorWrapper {
2216 background: none repeat scroll 0 0 var(--errorWrapper-bg-color);
2217 color: var(--main-color);
2218 left: 0;
2219 position: absolute;
2220 right: 0;
2221 z-index: 1000;
2222 padding: 3px 6px;
2223 }
2224
2225 #errorMessageLeft {
2226 float: left;
2227 }
2228
2229 #errorMessageRight {
2230 float: right;
2231 }
2232
2233 #errorMoreInfo {
2234 background-color: var(--field-bg-color);
2235 color: var(--field-color);
2236 border: 1px solid var(--field-border-color);
2237 padding: 3px;
2238 margin: 3px;
2239 width: 98%;
2240 }
2241
2242 .overlayButton {
2243 width: auto;
2244 margin: 3px 4px 2px !important;
2245 padding: 2px 11px;
2246 color: var(--main-color);
2247 background-color: var(--overlay-button-bg-color);
2248 border: var(--overlay-button-border) !important;
2249 }
2250
2251 #overlayContainer {
2252 display: table;
2253 position: absolute;
2254 width: 100%;
2255 height: 100%;
2256 background-color: rgba(0, 0, 0, 0.2);
2257 z-index: 40000;
2258 }
2259 #overlayContainer > * {
2260 overflow: auto;
2261 -webkit-overflow-scrolling: touch;
2262 }
2263
2264 #overlayContainer > .container {
2265 display: table-cell;
2266 vertical-align: middle;
2267 text-align: center;
2268 }
2269
2270 #overlayContainer > .container > .dialog {
2271 display: inline-block;
2272 padding: 15px;
2273 border-spacing: 4px;
2274 color: var(--main-color);
2275 font-size: 12px;
2276 line-height: 14px;
2277 background-color: var(--doorhanger-bg-color);
2278 border: 1px solid rgba(0, 0, 0, 0.5);
2279 border-radius: 4px;
2280 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2281 }
2282
2283 .dialog > .row {
2284 display: table-row;
2285 }
2286
2287 .dialog > .row > * {
2288 display: table-cell;
2289 }
2290
2291 .dialog .toolbarField {
2292 margin: 5px 0;
2293 }
2294
2295 .dialog .separator {
2296 display: block;
2297 margin: 4px 0;
2298 height: 1px;
2299 width: 100%;
2300 background-color: var(--separator-color);
2301 }
2302
2303 .dialog .buttonRow {
2304 text-align: center;
2305 vertical-align: middle;
2306 }
2307
2308 .dialog :link {
2309 color: rgba(255, 255, 255, 1);
2310 }
2311
2312 #passwordOverlay > .dialog {
2313 text-align: center;
2314 }
2315 #passwordOverlay .toolbarField {
2316 width: 200px;
2317 }
2318
2319 #documentPropertiesOverlay > .dialog {
2320 text-align: left;
2321 }
2322 #documentPropertiesOverlay .row > * {
2323 min-width: 100px;
2324 }
2325 html[dir="ltr"] #documentPropertiesOverlay .row > * {
2326 text-align: left;
2327 }
2328 html[dir="rtl"] #documentPropertiesOverlay .row > * {
2329 text-align: right;
2330 }
2331 #documentPropertiesOverlay .row > span {
2332 width: 125px;
2333 word-wrap: break-word;
2334 }
2335 #documentPropertiesOverlay .row > p {
2336 max-width: 225px;
2337 word-wrap: break-word;
2338 }
2339 #documentPropertiesOverlay .buttonRow {
2340 margin-top: 10px;
2341 }
2342
2343 .clearBoth {
2344 clear: both;
2345 }
2346
2347 .fileInput {
2348 background: rgba(255, 255, 255, 1);
2349 color: rgba(0, 0, 0, 1);
2350 margin-top: 5px;
2351 visibility: hidden;
2352 position: fixed;
2353 right: 0;
2354 top: 0;
2355 }
2356
2357 #PDFBug {
2358 background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
2359 border: 1px solid rgba(102, 102, 102, 1);
2360 position: fixed;
2361 top: 32px;
2362 right: 0;
2363 bottom: 0;
2364 font-size: 10px;
2365 padding: 0;
2366 width: 300px;
2367 }
2368 #PDFBug .controls {
2369 background: rgba(238, 238, 238, 1);
2370 border-bottom: 1px solid rgba(102, 102, 102, 1);
2371 padding: 3px;
2372 }
2373 #PDFBug .panels {
2374 bottom: 0;
2375 left: 0;
2376 overflow: auto;
2377 -webkit-overflow-scrolling: touch;
2378 position: absolute;
2379 right: 0;
2380 top: 27px;
2381 }
2382 #PDFBug .panels > div {
2383 padding: 5px;
2384 }
2385 #PDFBug button.active {
2386 font-weight: bold;
2387 }
2388 .debuggerShowText {
2389 background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2390 color: rgba(0, 0, 255, 1);
2391 }
2392 .debuggerHideText:hover {
2393 background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2394 }
2395 #PDFBug .stats {
2396 font-family: courier;
2397 font-size: 10px;
2398 white-space: pre;
2399 }
2400 #PDFBug .stats .title {
2401 font-weight: bold;
2402 }
2403 #PDFBug table {
2404 font-size: 10px;
2405 }
2406
2407 #viewer.textLayer-visible .textLayer {
2408 opacity: 1;
2409 }
2410
2411 #viewer.textLayer-visible .canvasWrapper {
2412 background-color: rgba(128, 255, 128, 1);
2413 }
2414
2415 #viewer.textLayer-visible .canvasWrapper canvas {
2416 mix-blend-mode: screen;
2417 }
2418
2419 #viewer.textLayer-visible .textLayer span {
2420 background-color: rgba(255, 255, 0, 0.1);
2421 color: rgba(0, 0, 0, 1);
2422 border: solid 1px rgba(255, 0, 0, 0.5);
2423 box-sizing: border-box;
2424 }
2425
2426 #viewer.textLayer-hover .textLayer span:hover {
2427 background-color: rgba(255, 255, 255, 1);
2428 color: rgba(0, 0, 0, 1);
2429 }
2430
2431 #viewer.textLayer-shadow .textLayer span {
2432 background-color: rgba(255, 255, 255, 0.6);
2433 color: rgba(0, 0, 0, 1);
2434 }
2435
2436 .grab-to-pan-grab {
2437 cursor: url("images/grab.cur"), move !important;
2438 cursor: -webkit-grab !important;
2439 cursor: grab !important;
2440 }
2441 .grab-to-pan-grab
2442 *:not(input):not(textarea):not(button):not(select):not(:link) {
2443 cursor: inherit !important;
2444 }
2445 .grab-to-pan-grab:active,
2446 .grab-to-pan-grabbing {
2447 cursor: url("images/grabbing.cur"), move !important;
2448 cursor: -webkit-grabbing !important;
2449 cursor: grabbing !important;
2450 position: fixed;
2451 background: rgba(0, 0, 0, 0);
2452 display: block;
2453 top: 0;
2454 left: 0;
2455 right: 0;
2456 bottom: 0;
2457 overflow: hidden;
2458 z-index: 50000; /* should be higher than anything else in PDF.js! */
2459 }
2460
2461 @page { {
2462 margin: 0;
2463 }
2464
2465 #printContainer {
2466 display: none;
2467 }
2468
2469 @media print {
2470 /* General rules for printing. */
2471 body {
2472 background: rgba(0, 0, 0, 0) none;
2473 }
2474
2475 /* Rules for browsers that don't support mozPrintCallback. */
2476 #sidebarContainer,
2477 #secondaryToolbar,
2478 .toolbar,
2479 #loadingBox,
2480 #errorWrapper,
2481 .textLayer {
2482 display: none;
2483 }
2484 #viewerContainer {
2485 overflow: visible;
2486 }
2487
2488 #mainContainer,
2489 #viewerContainer,
2490 .page,
2491 .page canvas {
2492 position: static;
2493 padding: 0;
2494 margin: 0;
2495 }
2496
2497 .page {
2498 float: left;
2499 display: none;
2500 border: none;
2501 box-shadow: none;
2502 background-clip: content-box;
2503 background-color: rgba(255, 255, 255, 1);
2504 }
2505
2506 .page[data-loaded] {
2507 display: block;
2508 }
2509
2510 .fileInput {
2511 display: none;
2512 }
2513
2514 /* Rules for browsers that support PDF.js printing */
2515 body[data-pdfjsprinting] #outerContainer {
2516 display: none;
2517 }
2518 body[data-pdfjsprinting] #printContainer {
2519 display: block;
2520 }
2521 #printContainer {
2522 height: 100%;
2523 }
2524 /* wrapper around (scaled) print canvas elements */
2525 #printContainer > div {
2526 page-break-after: always;
2527 page-break-inside: avoid;
2528
2529 /* The wrapper always cover the whole page. */
2530 height: 100%;
2531 width: 100%;
2532
2533 display: flex;
2534 flex-direction: column;
2535 justify-content: center;
2536 align-items: center;
2537 }
2538 #printContainer canvas,
2539 #printContainer img {
2540 /* The intrinsic canvas / image size will make sure that we fit the page. */
2541 max-width: 100%;
2542 max-height: 100%;
2543
2544 direction: ltr;
2545 display: block;
2546 }
2547 }
2548
2549 .visibleLargeView,
2550 .visibleMediumView,
2551 .visibleSmallView {
2552 display: none;
2553 }
2554
2555 @media all and (max-width: 900px) {
2556 #toolbarViewerMiddle {
2557 display: table;
2558 margin: auto;
2559 left: auto;
2560 position: inherit;
2561 transform: none;
2562 }
2563 }
2564
2565 @media all and (max-width: 840px) {
2566 #sidebarContainer {
2567 background-color: var(--sidebar-narrow-bg-color);
2568 }
2569
2570 html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
2571 left: 0 !important;
2572 }
2573 html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
2574 right: 0 !important;
2575 }
2576
2577 #outerContainer .hiddenLargeView,
2578 #outerContainer .hiddenMediumView {
2579 display: inherit;
2580 }
2581 #outerContainer .visibleLargeView,
2582 #outerContainer .visibleMediumView {
2583 display: none;
2584 }
2585 }
2586
2587 @media all and (max-width: 770px) {
2588 #outerContainer .hiddenLargeView {
2589 display: none;
2590 }
2591 #outerContainer .visibleLargeView {
2592 display: inherit;
2593 }
2594 }
2595
2596 @media all and (max-width: 700px) {
2597 #outerContainer .hiddenMediumView {
2598 display: none;
2599 }
2600 #outerContainer .visibleMediumView {
2601 display: inherit;
2602 }
2603 }
2604
2605 @media all and (max-width: 640px) {
2606 .hiddenSmallView,
2607 .hiddenSmallView * {
2608 display: none;
2609 }
2610 .visibleSmallView {
2611 display: inherit;
2612 }
2613 .toolbarButtonSpacer {
2614 width: 0;
2615 }
2616 html[dir="ltr"] .findbar {
2617 left: 34px;
2618 }
2619 html[dir="rtl"] .findbar {
2620 right: 34px;
2621 }
2622 }
2623
2624 @media all and (max-width: 535px) {
2625 #scaleSelectContainer {
2626 display: none;
2627 }
2628 }
2629