Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/pdf/pdfjs/web/viewer.css
12923 views
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
}
582
583
:root {
584
--sidebar-width: 200px;
585
--sidebar-transition-duration: 200ms;
586
--sidebar-transition-timing-function: ease;
587
--loadingBar-end-offset: 0;
588
589
--toolbar-icon-opacity: 0.7;
590
--doorhanger-icon-opacity: 0.9;
591
592
--main-color: rgba(12, 12, 13, 1);
593
--body-bg-color: rgba(237, 237, 240, 1);
594
--errorWrapper-bg-color: rgba(255, 74, 74, 1);
595
--progressBar-color: rgba(10, 132, 255, 1);
596
--progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1);
597
--progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1);
598
--scrollbar-color: auto;
599
--scrollbar-bg-color: auto;
600
--toolbar-icon-bg-color: rgba(0, 0, 0, 1);
601
602
--sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9);
603
--sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
604
--toolbar-bg-color: rgba(249, 249, 250, 1);
605
--toolbar-border-color: rgba(204, 204, 204, 1);
606
--button-hover-color: rgba(221, 222, 223, 1);
607
--toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
608
--toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
609
--dropdown-btn-bg-color: rgba(215, 215, 219, 1);
610
--separator-color: rgba(0, 0, 0, 0.3);
611
--field-color: rgba(6, 6, 6, 1);
612
--field-bg-color: rgba(255, 255, 255, 1);
613
--field-border-color: rgba(187, 187, 188, 1);
614
--findbar-nextprevious-btn-bg-color: rgba(227, 228, 230, 1);
615
--treeitem-color: rgba(0, 0, 0, 0.8);
616
--treeitem-hover-color: rgba(0, 0, 0, 0.9);
617
--treeitem-selected-color: rgba(0, 0, 0, 0.9);
618
--treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
619
--sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
620
--doorhanger-bg-color: rgba(255, 255, 255, 1);
621
--doorhanger-border-color: rgba(12, 12, 13, 0.2);
622
--doorhanger-hover-color: rgba(237, 237, 237, 1);
623
--doorhanger-separator-color: rgba(222, 222, 222, 1);
624
--overlay-button-bg-color: rgba(12, 12, 13, 0.1);
625
--overlay-button-hover-color: rgba(12, 12, 13, 0.3);
626
627
--loading-icon: url(images/loading.svg);
628
--treeitem-expanded-icon: url(images/treeitem-expanded.svg);
629
--treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
630
--toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
631
--toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
632
--toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
633
--toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
634
--toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
635
--toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
636
--toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
637
--toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
638
--toolbarButton-print-icon: url(images/toolbarButton-print.svg);
639
--toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
640
--toolbarButton-download-icon: url(images/toolbarButton-download.svg);
641
--toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
642
--toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
643
--toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
644
--toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
645
--toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
646
--toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
647
--toolbarButton-search-icon: url(images/toolbarButton-search.svg);
648
--findbarButton-previous-icon: url(images/findbarButton-previous.svg);
649
--findbarButton-next-icon: url(images/findbarButton-next.svg);
650
--secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
651
--secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
652
--secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
653
--secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
654
--secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
655
--secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
656
--secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
657
--secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
658
--secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
659
--secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
660
--secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
661
--secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
662
--secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
663
}
664
665
@media (prefers-color-scheme: dark) {
666
:root {
667
--main-color: rgba(249, 249, 250, 1);
668
--body-bg-color: rgba(42, 42, 46, 1);
669
--errorWrapper-bg-color: rgba(199, 17, 17, 1);
670
--progressBar-color: rgba(0, 96, 223, 1);
671
--progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
672
--progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
673
--scrollbar-color: rgba(121, 121, 123, 1);
674
--scrollbar-bg-color: rgba(35, 35, 39, 1);
675
--toolbar-icon-bg-color: rgba(255, 255, 255, 1);
676
677
--sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
678
--sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
679
--toolbar-bg-color: rgba(56, 56, 61, 1);
680
--toolbar-border-color: rgba(12, 12, 13, 1);
681
--button-hover-color: rgba(102, 102, 103, 1);
682
--toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
683
--toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
684
--dropdown-btn-bg-color: rgba(74, 74, 79, 1);
685
--separator-color: rgba(0, 0, 0, 0.3);
686
--field-color: rgba(250, 250, 250, 1);
687
--field-bg-color: rgba(64, 64, 68, 1);
688
--field-border-color: rgba(115, 115, 115, 1);
689
--findbar-nextprevious-btn-bg-color: rgba(89, 89, 89, 1);
690
--treeitem-color: rgba(255, 255, 255, 0.8);
691
--treeitem-hover-color: rgba(255, 255, 255, 0.9);
692
--treeitem-selected-color: rgba(255, 255, 255, 0.9);
693
--treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
694
--sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
695
--doorhanger-bg-color: rgba(74, 74, 79, 1);
696
--doorhanger-border-color: rgba(39, 39, 43, 1);
697
--doorhanger-hover-color: rgba(93, 94, 98, 1);
698
--doorhanger-separator-color: rgba(92, 92, 97, 1);
699
--overlay-button-bg-color: rgba(92, 92, 97, 1);
700
--overlay-button-hover-color: rgba(115, 115, 115, 1);
701
702
/* This image is used in <input> elements, which unfortunately means that
703
* the `mask-image` approach used with all of the other images doesn't work
704
* here; hence why we still have two versions of this particular image. */
705
--loading-icon: url(images/loading-dark.svg);
706
}
707
}
708
709
* {
710
padding: 0;
711
margin: 0;
712
}
713
714
html {
715
height: 100%;
716
width: 100%;
717
/* Font size is needed to make the activity bar the correct size. */
718
font-size: 10px;
719
}
720
721
body {
722
height: 100%;
723
width: 100%;
724
background-color: var(--body-bg-color);
725
}
726
727
body,
728
input,
729
button,
730
select {
731
font: message-box;
732
outline: none;
733
scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
734
}
735
736
.hidden {
737
display: none !important;
738
}
739
[hidden] {
740
display: none !important;
741
}
742
743
.pdfViewer.enablePermissions .textLayer > span {
744
-webkit-user-select: none !important;
745
-moz-user-select: none !important;
746
user-select: none !important;
747
cursor: not-allowed;
748
}
749
750
#viewerContainer.pdfPresentationMode:-webkit-full-screen {
751
top: 0;
752
border-top: 2px solid rgba(0, 0, 0, 0);
753
background-color: rgba(0, 0, 0, 1);
754
width: 100%;
755
height: 100%;
756
overflow: hidden;
757
cursor: none;
758
-webkit-user-select: none;
759
user-select: none;
760
}
761
762
#viewerContainer.pdfPresentationMode:-moz-full-screen {
763
top: 0;
764
border-top: 2px solid rgba(0, 0, 0, 0);
765
background-color: rgba(0, 0, 0, 1);
766
width: 100%;
767
height: 100%;
768
overflow: hidden;
769
cursor: none;
770
-moz-user-select: none;
771
user-select: none;
772
}
773
774
#viewerContainer.pdfPresentationMode:fullscreen {
775
top: 0;
776
border-top: 2px solid rgba(0, 0, 0, 0);
777
background-color: rgba(0, 0, 0, 1);
778
width: 100%;
779
height: 100%;
780
overflow: hidden;
781
cursor: none;
782
-webkit-user-select: none;
783
-moz-user-select: none;
784
user-select: none;
785
}
786
787
.pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
788
display: none;
789
}
790
791
.pdfPresentationMode:-moz-full-screen a:not(.internalLink) {
792
display: none;
793
}
794
795
.pdfPresentationMode:fullscreen a:not(.internalLink) {
796
display: none;
797
}
798
799
.pdfPresentationMode:-webkit-full-screen .textLayer > span {
800
cursor: none;
801
}
802
803
.pdfPresentationMode:-moz-full-screen .textLayer > span {
804
cursor: none;
805
}
806
807
.pdfPresentationMode:fullscreen .textLayer > span {
808
cursor: none;
809
}
810
811
.pdfPresentationMode.pdfPresentationModeControls > *,
812
.pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
813
cursor: default;
814
}
815
816
#outerContainer {
817
width: 100%;
818
height: 100%;
819
position: relative;
820
}
821
822
#sidebarContainer {
823
position: absolute;
824
top: 32px;
825
bottom: 0;
826
width: var(--sidebar-width);
827
visibility: hidden;
828
z-index: 100;
829
border-top: 1px solid rgba(51, 51, 51, 1);
830
transition-duration: var(--sidebar-transition-duration);
831
transition-timing-function: var(--sidebar-transition-timing-function);
832
}
833
html[dir="ltr"] #sidebarContainer {
834
transition-property: left;
835
left: calc(0px - var(--sidebar-width));
836
}
837
html[dir="rtl"] #sidebarContainer {
838
transition-property: right;
839
right: calc(0px - var(--sidebar-width));
840
}
841
842
#outerContainer.sidebarResizing #sidebarContainer {
843
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
844
transition-duration: 0s;
845
/* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
846
-webkit-user-select: none;
847
-moz-user-select: none;
848
user-select: none;
849
}
850
851
#outerContainer.sidebarMoving #sidebarContainer,
852
#outerContainer.sidebarOpen #sidebarContainer {
853
visibility: visible;
854
}
855
html[dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer {
856
left: 0;
857
}
858
html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
859
right: 0;
860
}
861
862
#mainContainer {
863
position: absolute;
864
top: 0;
865
right: 0;
866
bottom: 0;
867
left: 0;
868
min-width: 320px;
869
}
870
871
#sidebarContent {
872
top: 32px;
873
bottom: 0;
874
overflow: auto;
875
-webkit-overflow-scrolling: touch;
876
position: absolute;
877
width: 100%;
878
background-color: rgba(0, 0, 0, 0.1);
879
}
880
html[dir="ltr"] #sidebarContent {
881
left: 0;
882
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
883
}
884
html[dir="rtl"] #sidebarContent {
885
right: 0;
886
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
887
}
888
889
#viewerContainer {
890
overflow: auto;
891
-webkit-overflow-scrolling: touch;
892
position: absolute;
893
top: 32px;
894
right: 0;
895
bottom: 0;
896
left: 0;
897
outline: none;
898
}
899
#viewerContainer:not(.pdfPresentationMode) {
900
transition-duration: var(--sidebar-transition-duration);
901
transition-timing-function: var(--sidebar-transition-timing-function);
902
}
903
904
#outerContainer.sidebarResizing #viewerContainer {
905
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
906
transition-duration: 0s;
907
}
908
909
html[dir="ltr"]
910
#outerContainer.sidebarOpen
911
#viewerContainer:not(.pdfPresentationMode) {
912
transition-property: left;
913
left: var(--sidebar-width);
914
}
915
html[dir="rtl"]
916
#outerContainer.sidebarOpen
917
#viewerContainer:not(.pdfPresentationMode) {
918
transition-property: right;
919
right: var(--sidebar-width);
920
}
921
922
.toolbar {
923
position: relative;
924
left: 0;
925
right: 0;
926
z-index: 9999;
927
cursor: default;
928
}
929
930
#toolbarContainer {
931
width: 100%;
932
}
933
934
#toolbarSidebar {
935
width: 100%;
936
height: 32px;
937
background-color: var(--sidebar-toolbar-bg-color);
938
}
939
html[dir="ltr"] #toolbarSidebar {
940
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
941
0 0 1px rgba(0, 0, 0, 0.1);
942
}
943
html[dir="rtl"] #toolbarSidebar {
944
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
945
0 0 1px rgba(0, 0, 0, 0.1);
946
}
947
948
html[dir="ltr"] #toolbarSidebar .toolbarButton {
949
margin-right: 2px !important;
950
}
951
html[dir="rtl"] #toolbarSidebar .toolbarButton {
952
margin-left: 2px !important;
953
}
954
955
html[dir="ltr"] #toolbarSidebarRight .toolbarButton {
956
margin-right: 3px !important;
957
}
958
html[dir="rtl"] #toolbarSidebarRight .toolbarButton {
959
margin-left: 3px !important;
960
}
961
962
#sidebarResizer {
963
position: absolute;
964
top: 0;
965
bottom: 0;
966
width: 6px;
967
z-index: 200;
968
cursor: ew-resize;
969
}
970
html[dir="ltr"] #sidebarResizer {
971
right: -6px;
972
}
973
html[dir="rtl"] #sidebarResizer {
974
left: -6px;
975
}
976
977
#toolbarContainer,
978
.findbar,
979
.secondaryToolbar {
980
position: relative;
981
height: 32px;
982
background-color: var(--toolbar-bg-color);
983
box-shadow: 0 1px 0 var(--toolbar-border-color);
984
}
985
986
#toolbarViewer {
987
height: 32px;
988
}
989
990
#loadingBar {
991
position: absolute;
992
height: 4px;
993
background-color: var(--body-bg-color);
994
border-bottom: 1px solid var(--toolbar-border-color);
995
996
transition-duration: var(--sidebar-transition-duration);
997
transition-timing-function: var(--sidebar-transition-timing-function);
998
}
999
html[dir="ltr"] #loadingBar {
1000
transition-property: left;
1001
left: 0;
1002
right: var(--loadingBar-end-offset);
1003
}
1004
html[dir="rtl"] #loadingBar {
1005
transition-property: right;
1006
left: var(--loadingBar-end-offset);
1007
right: 0;
1008
}
1009
1010
html[dir="ltr"] #outerContainer.sidebarOpen #loadingBar {
1011
left: var(--sidebar-width);
1012
}
1013
html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1014
right: var(--sidebar-width);
1015
}
1016
1017
#outerContainer.sidebarResizing #loadingBar {
1018
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
1019
transition-duration: 0s;
1020
}
1021
1022
#loadingBar .progress {
1023
position: absolute;
1024
top: 0;
1025
left: 0;
1026
width: 0%;
1027
height: 100%;
1028
background-color: var(--progressBar-color);
1029
overflow: hidden;
1030
transition: width 200ms;
1031
}
1032
1033
@-webkit-keyframes progressIndeterminate {
1034
0% {
1035
left: -142px;
1036
}
1037
100% {
1038
left: 0;
1039
}
1040
}
1041
1042
@keyframes progressIndeterminate {
1043
0% {
1044
left: -142px;
1045
}
1046
100% {
1047
left: 0;
1048
}
1049
}
1050
1051
#loadingBar .progress.indeterminate {
1052
background-color: var(--progressBar-indeterminate-bg-color);
1053
transition: none;
1054
}
1055
1056
#loadingBar .progress.indeterminate .glimmer {
1057
position: absolute;
1058
top: 0;
1059
left: 0;
1060
height: 100%;
1061
width: calc(100% + 150px);
1062
background: repeating-linear-gradient(
1063
135deg,
1064
var(--progressBar-indeterminate-blend-color) 0,
1065
var(--progressBar-indeterminate-bg-color) 5px,
1066
var(--progressBar-indeterminate-bg-color) 45px,
1067
var(--progressBar-color) 55px,
1068
var(--progressBar-color) 95px,
1069
var(--progressBar-indeterminate-blend-color) 100px
1070
);
1071
-webkit-animation: progressIndeterminate 1s linear infinite;
1072
animation: progressIndeterminate 1s linear infinite;
1073
}
1074
1075
.findbar,
1076
.secondaryToolbar {
1077
top: 32px;
1078
position: absolute;
1079
z-index: 10000;
1080
height: auto;
1081
min-width: 16px;
1082
padding: 0 4px;
1083
margin: 4px 2px;
1084
color: rgba(217, 217, 217, 1);
1085
font-size: 12px;
1086
line-height: 14px;
1087
text-align: left;
1088
cursor: default;
1089
}
1090
1091
.findbar {
1092
min-width: 300px;
1093
background-color: var(--toolbar-bg-color);
1094
}
1095
.findbar > div {
1096
height: 32px;
1097
}
1098
.findbar.wrapContainers > div {
1099
clear: both;
1100
}
1101
.findbar.wrapContainers > div#findbarMessageContainer {
1102
height: auto;
1103
}
1104
html[dir="ltr"] .findbar {
1105
left: 64px;
1106
}
1107
html[dir="rtl"] .findbar {
1108
right: 64px;
1109
}
1110
1111
.findbar .splitToolbarButton {
1112
margin-top: 3px;
1113
}
1114
html[dir="ltr"] .findbar .splitToolbarButton {
1115
margin-left: 0;
1116
margin-right: 5px;
1117
}
1118
html[dir="rtl"] .findbar .splitToolbarButton {
1119
margin-left: 5px;
1120
margin-right: 0;
1121
}
1122
1123
.findbar .splitToolbarButton > .toolbarButton {
1124
background-color: var(--findbar-nextprevious-btn-bg-color);
1125
border-radius: 0;
1126
height: 26px;
1127
border-top: 1px solid var(--field-border-color);
1128
border-bottom: 1px solid var(--field-border-color);
1129
}
1130
1131
.findbar .splitToolbarButton > .toolbarButton::before {
1132
top: 5px;
1133
}
1134
1135
.findbar .splitToolbarButton > .findNext {
1136
width: 29px;
1137
}
1138
html[dir="ltr"] .findbar .splitToolbarButton > .findNext {
1139
border-bottom-right-radius: 2px;
1140
border-top-right-radius: 2px;
1141
border-right: 1px solid var(--field-border-color);
1142
}
1143
html[dir="rtl"] .findbar .splitToolbarButton > .findNext {
1144
border-bottom-left-radius: 2px;
1145
border-top-left-radius: 2px;
1146
border-left: 1px solid var(--field-border-color);
1147
}
1148
1149
.findbar input[type="checkbox"] {
1150
pointer-events: none;
1151
}
1152
1153
.findbar label {
1154
-webkit-user-select: none;
1155
-moz-user-select: none;
1156
user-select: none;
1157
}
1158
1159
.findbar label:hover,
1160
.findbar input:focus + label {
1161
background-color: var(--button-hover-color);
1162
}
1163
1164
html[dir="ltr"] #findInput {
1165
border-top-right-radius: 0;
1166
border-bottom-right-radius: 0;
1167
}
1168
html[dir="rtl"] #findInput {
1169
border-top-left-radius: 0;
1170
border-bottom-left-radius: 0;
1171
}
1172
1173
.findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel {
1174
background-color: var(--toggled-btn-bg-color) !important;
1175
}
1176
1177
#findInput {
1178
width: 200px;
1179
}
1180
#findInput::-webkit-input-placeholder {
1181
color: rgba(191, 191, 191, 1);
1182
}
1183
#findInput::-moz-placeholder {
1184
font-style: normal;
1185
}
1186
#findInput::placeholder {
1187
font-style: normal;
1188
}
1189
#findInput[data-status="pending"] {
1190
background-image: var(--loading-icon);
1191
background-repeat: no-repeat;
1192
background-position: 98%;
1193
}
1194
html[dir="rtl"] #findInput[data-status="pending"] {
1195
background-position: 3px;
1196
}
1197
#findInput[data-status="notFound"] {
1198
background-color: rgba(255, 102, 102, 1);
1199
}
1200
1201
.secondaryToolbar {
1202
padding: 6px 0 10px;
1203
height: auto;
1204
z-index: 30000;
1205
background-color: var(--doorhanger-bg-color);
1206
}
1207
html[dir="ltr"] .secondaryToolbar {
1208
right: 4px;
1209
}
1210
html[dir="rtl"] .secondaryToolbar {
1211
left: 4px;
1212
}
1213
1214
#secondaryToolbarButtonContainer {
1215
max-width: 220px;
1216
max-height: 400px;
1217
overflow-y: auto;
1218
-webkit-overflow-scrolling: touch;
1219
margin-bottom: -4px;
1220
}
1221
1222
#secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
1223
#secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
1224
display: none !important;
1225
}
1226
1227
.doorHanger,
1228
.doorHangerRight {
1229
border-radius: 2px;
1230
box-shadow: 0 1px 5px var(--doorhanger-border-color),
1231
0 0 0 1px var(--doorhanger-border-color);
1232
}
1233
.doorHanger:after,
1234
.doorHanger:before,
1235
.doorHangerRight:after,
1236
.doorHangerRight:before {
1237
bottom: 100%;
1238
border: solid rgba(0, 0, 0, 0);
1239
content: " ";
1240
height: 0;
1241
width: 0;
1242
position: absolute;
1243
pointer-events: none;
1244
}
1245
.doorHanger:after,
1246
.doorHangerRight:after {
1247
border-width: 8px;
1248
}
1249
.doorHanger:after {
1250
border-bottom-color: var(--toolbar-bg-color);
1251
}
1252
.doorHangerRight:after {
1253
border-bottom-color: var(--doorhanger-bg-color);
1254
}
1255
.doorHanger:before,
1256
.doorHangerRight:before {
1257
border-bottom-color: var(--doorhanger-border-color);
1258
border-width: 9px;
1259
}
1260
1261
html[dir="ltr"] .doorHanger:after,
1262
html[dir="rtl"] .doorHangerRight:after {
1263
left: 10px;
1264
margin-left: -8px;
1265
}
1266
1267
html[dir="ltr"] .doorHanger:before,
1268
html[dir="rtl"] .doorHangerRight:before {
1269
left: 10px;
1270
margin-left: -9px;
1271
}
1272
1273
html[dir="rtl"] .doorHanger:after,
1274
html[dir="ltr"] .doorHangerRight:after {
1275
right: 10px;
1276
margin-right: -8px;
1277
}
1278
1279
html[dir="rtl"] .doorHanger:before,
1280
html[dir="ltr"] .doorHangerRight:before {
1281
right: 10px;
1282
margin-right: -9px;
1283
}
1284
1285
#findResultsCount {
1286
background-color: rgba(217, 217, 217, 1);
1287
color: rgba(82, 82, 82, 1);
1288
text-align: center;
1289
padding: 3px 4px;
1290
margin: 5px;
1291
}
1292
1293
#findMsg {
1294
color: rgba(251, 0, 0, 1);
1295
}
1296
#findMsg:empty {
1297
display: none;
1298
}
1299
1300
#toolbarViewerMiddle {
1301
position: absolute;
1302
left: 50%;
1303
transform: translateX(-50%);
1304
}
1305
1306
html[dir="ltr"] #toolbarViewerLeft,
1307
html[dir="rtl"] #toolbarViewerRight,
1308
html[dir="ltr"] #toolbarSidebarLeft,
1309
html[dir="rtl"] #toolbarSidebarRight {
1310
float: left;
1311
}
1312
html[dir="ltr"] #toolbarViewerRight,
1313
html[dir="rtl"] #toolbarViewerLeft,
1314
html[dir="ltr"] #toolbarSidebarRight,
1315
html[dir="rtl"] #toolbarSidebarLeft {
1316
float: right;
1317
}
1318
html[dir="ltr"] #toolbarViewerLeft > *,
1319
html[dir="ltr"] #toolbarViewerMiddle > *,
1320
html[dir="ltr"] #toolbarViewerRight > *,
1321
html[dir="ltr"] #toolbarSidebarLeft *,
1322
html[dir="ltr"] #toolbarSidebarRight *,
1323
html[dir="ltr"] .findbar * {
1324
position: relative;
1325
float: left;
1326
}
1327
html[dir="rtl"] #toolbarViewerLeft > *,
1328
html[dir="rtl"] #toolbarViewerMiddle > *,
1329
html[dir="rtl"] #toolbarViewerRight > *,
1330
html[dir="rtl"] #toolbarSidebarLeft *,
1331
html[dir="rtl"] #toolbarSidebarRight *,
1332
html[dir="rtl"] .findbar * {
1333
position: relative;
1334
float: right;
1335
}
1336
1337
.splitToolbarButton {
1338
margin: 2px 2px 0;
1339
display: inline-block;
1340
}
1341
html[dir="ltr"] .splitToolbarButton > .toolbarButton {
1342
float: left;
1343
}
1344
html[dir="rtl"] .splitToolbarButton > .toolbarButton {
1345
float: right;
1346
}
1347
1348
.toolbarButton,
1349
.secondaryToolbarButton,
1350
.overlayButton {
1351
border: 0 none;
1352
background: none;
1353
width: 28px;
1354
height: 28px;
1355
}
1356
.overlayButton {
1357
background-color: var(--overlay-button-bg-color);
1358
}
1359
1360
.overlayButton:hover,
1361
.overlayButton:focus {
1362
background-color: var(--overlay-button-hover-color);
1363
}
1364
1365
.toolbarButton > span {
1366
display: inline-block;
1367
width: 0;
1368
height: 0;
1369
overflow: hidden;
1370
}
1371
1372
.toolbarButton[disabled],
1373
.secondaryToolbarButton[disabled],
1374
.overlayButton[disabled] {
1375
opacity: 0.5;
1376
}
1377
1378
.splitToolbarButton.toggled .toolbarButton {
1379
margin: 0;
1380
}
1381
1382
.splitToolbarButton > .toolbarButton:hover,
1383
.splitToolbarButton > .toolbarButton:focus,
1384
.dropdownToolbarButton:hover,
1385
.toolbarButton.textButton:hover,
1386
.toolbarButton.textButton:focus {
1387
background-color: var(--button-hover-color);
1388
z-index: 199;
1389
}
1390
.splitToolbarButton > .toolbarButton {
1391
position: relative;
1392
}
1393
html[dir="ltr"] .splitToolbarButton > .toolbarButton:first-child,
1394
html[dir="rtl"] .splitToolbarButton > .toolbarButton:last-child {
1395
margin: 0;
1396
}
1397
html[dir="ltr"] .splitToolbarButton > .toolbarButton:last-child,
1398
html[dir="rtl"] .splitToolbarButton > .toolbarButton:first-child {
1399
margin: 0;
1400
}
1401
.splitToolbarButtonSeparator {
1402
padding: 10px 0;
1403
width: 1px;
1404
background-color: var(--separator-color);
1405
z-index: 99;
1406
display: inline-block;
1407
margin: 4px 0;
1408
}
1409
1410
.findbar .splitToolbarButtonSeparator {
1411
background-color: var(--field-border-color);
1412
margin: 0;
1413
padding: 13px 0;
1414
}
1415
1416
html[dir="ltr"] .splitToolbarButtonSeparator {
1417
float: left;
1418
}
1419
html[dir="rtl"] .splitToolbarButtonSeparator {
1420
float: right;
1421
}
1422
1423
.toolbarButton,
1424
.dropdownToolbarButton,
1425
.secondaryToolbarButton,
1426
.overlayButton {
1427
min-width: 16px;
1428
margin: 2px 1px;
1429
padding: 2px 6px 0;
1430
border: none;
1431
border-radius: 2px;
1432
color: var(--main-color);
1433
font-size: 12px;
1434
line-height: 14px;
1435
-webkit-user-select: none;
1436
-moz-user-select: none;
1437
user-select: none;
1438
cursor: default;
1439
box-sizing: border-box;
1440
}
1441
1442
html[dir="ltr"] #toolbarViewerLeft > .toolbarButton:first-child,
1443
html[dir="rtl"] #toolbarViewerRight > .toolbarButton:last-child {
1444
margin-left: 2px;
1445
}
1446
1447
html[dir="ltr"] #toolbarViewerRight > .toolbarButton:last-child,
1448
html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1449
margin-right: 2px;
1450
}
1451
.toolbarButton:hover,
1452
.toolbarButton:focus {
1453
background-color: var(--button-hover-color);
1454
}
1455
.secondaryToolbarButton:hover,
1456
.secondaryToolbarButton:focus {
1457
background-color: var(--doorhanger-hover-color);
1458
}
1459
1460
.toolbarButton.toggled,
1461
.splitToolbarButton.toggled > .toolbarButton.toggled,
1462
.secondaryToolbarButton.toggled {
1463
background-color: var(--toggled-btn-bg-color);
1464
}
1465
1466
.toolbarButton.toggled:hover:active,
1467
.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
1468
.secondaryToolbarButton.toggled:hover:active {
1469
background-color: var(--toggled-hover-active-btn-color);
1470
}
1471
1472
.dropdownToolbarButton {
1473
width: 140px;
1474
padding: 0;
1475
overflow: hidden;
1476
background-color: var(--dropdown-btn-bg-color);
1477
margin-top: 2px !important;
1478
}
1479
.dropdownToolbarButton::after {
1480
top: 6px;
1481
pointer-events: none;
1482
1483
-webkit-mask-image: var(--toolbarButton-menuArrow-icon);
1484
mask-image: var(--toolbarButton-menuArrow-icon);
1485
}
1486
html[dir="ltr"] .dropdownToolbarButton::after {
1487
right: 7px;
1488
}
1489
html[dir="rtl"] .dropdownToolbarButton::after {
1490
left: 7px;
1491
}
1492
1493
.dropdownToolbarButton > select {
1494
width: 162px;
1495
height: 28px;
1496
font-size: 12px;
1497
color: var(--main-color);
1498
margin: 0;
1499
padding: 1px 0 2px;
1500
border: none;
1501
background-color: var(--dropdown-btn-bg-color);
1502
}
1503
html[dir="ltr"] .dropdownToolbarButton > select {
1504
padding-left: 4px;
1505
}
1506
html[dir="rtl"] .dropdownToolbarButton > select {
1507
padding-right: 4px;
1508
}
1509
.dropdownToolbarButton > select:hover {
1510
background-color: var(--button-hover-color);
1511
}
1512
1513
.dropdownToolbarButton > select:focus {
1514
background-color: var(--button-hover-color);
1515
}
1516
1517
.dropdownToolbarButton > select > option {
1518
background: var(--doorhanger-bg-color);
1519
}
1520
1521
#customScaleOption {
1522
display: none;
1523
}
1524
1525
#pageWidthOption {
1526
border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
1527
}
1528
1529
.toolbarButtonSpacer {
1530
width: 30px;
1531
display: inline-block;
1532
height: 1px;
1533
}
1534
1535
.toolbarButton::before,
1536
.secondaryToolbarButton::before,
1537
.dropdownToolbarButton::after,
1538
.treeItemToggler::before {
1539
/* All matching images have a size of 16x16
1540
* All relevant containers have a size of 28x28 */
1541
position: absolute;
1542
display: inline-block;
1543
width: 16px;
1544
height: 16px;
1545
1546
content: "";
1547
background-color: var(--toolbar-icon-bg-color);
1548
-webkit-mask-size: cover;
1549
mask-size: cover;
1550
}
1551
1552
.toolbarButton::before {
1553
opacity: var(--toolbar-icon-opacity);
1554
top: 6px;
1555
left: 6px;
1556
}
1557
1558
.secondaryToolbarButton::before {
1559
opacity: var(--doorhanger-icon-opacity);
1560
top: 5px;
1561
}
1562
html[dir="ltr"] .secondaryToolbarButton::before {
1563
left: 12px;
1564
}
1565
html[dir="rtl"] .secondaryToolbarButton::before {
1566
right: 12px;
1567
}
1568
1569
.toolbarButton#sidebarToggle::before {
1570
-webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
1571
mask-image: var(--toolbarButton-sidebarToggle-icon);
1572
}
1573
html[dir="rtl"] .toolbarButton#sidebarToggle::before {
1574
transform: scaleX(-1);
1575
}
1576
1577
.toolbarButton#secondaryToolbarToggle::before {
1578
-webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1579
mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1580
}
1581
html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
1582
transform: scaleX(-1);
1583
}
1584
1585
.toolbarButton.findPrevious::before {
1586
-webkit-mask-image: var(--findbarButton-previous-icon);
1587
mask-image: var(--findbarButton-previous-icon);
1588
}
1589
1590
.toolbarButton.findNext::before {
1591
-webkit-mask-image: var(--findbarButton-next-icon);
1592
mask-image: var(--findbarButton-next-icon);
1593
}
1594
1595
.toolbarButton.pageUp::before {
1596
-webkit-mask-image: var(--toolbarButton-pageUp-icon);
1597
mask-image: var(--toolbarButton-pageUp-icon);
1598
}
1599
1600
.toolbarButton.pageDown::before {
1601
-webkit-mask-image: var(--toolbarButton-pageDown-icon);
1602
mask-image: var(--toolbarButton-pageDown-icon);
1603
}
1604
1605
.toolbarButton.zoomOut::before {
1606
-webkit-mask-image: var(--toolbarButton-zoomOut-icon);
1607
mask-image: var(--toolbarButton-zoomOut-icon);
1608
}
1609
1610
.toolbarButton.zoomIn::before {
1611
-webkit-mask-image: var(--toolbarButton-zoomIn-icon);
1612
mask-image: var(--toolbarButton-zoomIn-icon);
1613
}
1614
1615
.toolbarButton.presentationMode::before,
1616
.secondaryToolbarButton.presentationMode::before {
1617
-webkit-mask-image: var(--toolbarButton-presentationMode-icon);
1618
mask-image: var(--toolbarButton-presentationMode-icon);
1619
}
1620
1621
.toolbarButton.print::before,
1622
.secondaryToolbarButton.print::before {
1623
-webkit-mask-image: var(--toolbarButton-print-icon);
1624
mask-image: var(--toolbarButton-print-icon);
1625
}
1626
1627
.toolbarButton.openFile::before,
1628
.secondaryToolbarButton.openFile::before {
1629
-webkit-mask-image: var(--toolbarButton-openFile-icon);
1630
mask-image: var(--toolbarButton-openFile-icon);
1631
}
1632
1633
.toolbarButton.download::before,
1634
.secondaryToolbarButton.download::before {
1635
-webkit-mask-image: var(--toolbarButton-download-icon);
1636
mask-image: var(--toolbarButton-download-icon);
1637
}
1638
1639
.secondaryToolbarButton.bookmark {
1640
padding-top: 6px;
1641
text-decoration: none;
1642
}
1643
1644
.bookmark[href="#"] {
1645
opacity: 0.5;
1646
pointer-events: none;
1647
}
1648
1649
.toolbarButton.bookmark::before,
1650
.secondaryToolbarButton.bookmark::before {
1651
-webkit-mask-image: var(--toolbarButton-bookmark-icon);
1652
mask-image: var(--toolbarButton-bookmark-icon);
1653
}
1654
1655
#viewThumbnail.toolbarButton::before {
1656
-webkit-mask-image: var(--toolbarButton-viewThumbnail-icon);
1657
mask-image: var(--toolbarButton-viewThumbnail-icon);
1658
}
1659
1660
#viewOutline.toolbarButton::before {
1661
-webkit-mask-image: var(--toolbarButton-viewOutline-icon);
1662
mask-image: var(--toolbarButton-viewOutline-icon);
1663
}
1664
html[dir="rtl"] #viewOutline.toolbarButton::before {
1665
transform: scaleX(-1);
1666
}
1667
1668
#viewAttachments.toolbarButton::before {
1669
-webkit-mask-image: var(--toolbarButton-viewAttachments-icon);
1670
mask-image: var(--toolbarButton-viewAttachments-icon);
1671
}
1672
1673
#viewLayers.toolbarButton::before {
1674
-webkit-mask-image: var(--toolbarButton-viewLayers-icon);
1675
mask-image: var(--toolbarButton-viewLayers-icon);
1676
}
1677
1678
#currentOutlineItem.toolbarButton::before {
1679
-webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
1680
mask-image: var(--toolbarButton-currentOutlineItem-icon);
1681
}
1682
html[dir="rtl"] #currentOutlineItem.toolbarButton::before {
1683
transform: scaleX(-1);
1684
}
1685
1686
#viewFind.toolbarButton::before {
1687
-webkit-mask-image: var(--toolbarButton-search-icon);
1688
mask-image: var(--toolbarButton-search-icon);
1689
}
1690
1691
.toolbarButton.pdfSidebarNotification::after {
1692
position: absolute;
1693
display: inline-block;
1694
top: 1px;
1695
/* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
1696
content: "";
1697
background-color: rgba(112, 219, 85, 1);
1698
height: 9px;
1699
width: 9px;
1700
border-radius: 50%;
1701
}
1702
html[dir="ltr"] .toolbarButton.pdfSidebarNotification::after {
1703
left: 17px;
1704
}
1705
html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
1706
right: 17px;
1707
}
1708
1709
.secondaryToolbarButton {
1710
position: relative;
1711
margin: 0;
1712
padding: 0 0 1px;
1713
height: auto;
1714
min-height: 26px;
1715
width: auto;
1716
min-width: 100%;
1717
white-space: normal;
1718
border-radius: 0;
1719
box-sizing: border-box;
1720
}
1721
html[dir="ltr"] .secondaryToolbarButton {
1722
padding-left: 36px;
1723
text-align: left;
1724
}
1725
html[dir="rtl"] .secondaryToolbarButton {
1726
padding-right: 36px;
1727
text-align: right;
1728
}
1729
1730
html[dir="ltr"] .secondaryToolbarButton > span {
1731
padding-right: 4px;
1732
}
1733
html[dir="rtl"] .secondaryToolbarButton > span {
1734
padding-left: 4px;
1735
}
1736
1737
.secondaryToolbarButton.firstPage::before {
1738
-webkit-mask-image: var(--secondaryToolbarButton-firstPage-icon);
1739
mask-image: var(--secondaryToolbarButton-firstPage-icon);
1740
}
1741
1742
.secondaryToolbarButton.lastPage::before {
1743
-webkit-mask-image: var(--secondaryToolbarButton-lastPage-icon);
1744
mask-image: var(--secondaryToolbarButton-lastPage-icon);
1745
}
1746
1747
.secondaryToolbarButton.rotateCcw::before {
1748
-webkit-mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1749
mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1750
}
1751
1752
.secondaryToolbarButton.rotateCw::before {
1753
-webkit-mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1754
mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1755
}
1756
1757
.secondaryToolbarButton.selectTool::before {
1758
-webkit-mask-image: var(--secondaryToolbarButton-selectTool-icon);
1759
mask-image: var(--secondaryToolbarButton-selectTool-icon);
1760
}
1761
1762
.secondaryToolbarButton.handTool::before {
1763
-webkit-mask-image: var(--secondaryToolbarButton-handTool-icon);
1764
mask-image: var(--secondaryToolbarButton-handTool-icon);
1765
}
1766
1767
.secondaryToolbarButton.scrollVertical::before {
1768
-webkit-mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1769
mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1770
}
1771
1772
.secondaryToolbarButton.scrollHorizontal::before {
1773
-webkit-mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1774
mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1775
}
1776
1777
.secondaryToolbarButton.scrollWrapped::before {
1778
-webkit-mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1779
mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1780
}
1781
1782
.secondaryToolbarButton.spreadNone::before {
1783
-webkit-mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1784
mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1785
}
1786
1787
.secondaryToolbarButton.spreadOdd::before {
1788
-webkit-mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1789
mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1790
}
1791
1792
.secondaryToolbarButton.spreadEven::before {
1793
-webkit-mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1794
mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1795
}
1796
1797
.secondaryToolbarButton.documentProperties::before {
1798
-webkit-mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1799
mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1800
}
1801
1802
.verticalToolbarSeparator {
1803
display: block;
1804
padding: 11px 0;
1805
margin: 5px 2px;
1806
width: 1px;
1807
background-color: var(--separator-color);
1808
}
1809
html[dir="ltr"] .verticalToolbarSeparator {
1810
margin-left: 2px;
1811
}
1812
html[dir="rtl"] .verticalToolbarSeparator {
1813
margin-right: 2px;
1814
}
1815
1816
.horizontalToolbarSeparator {
1817
display: block;
1818
margin: 6px 0 5px;
1819
height: 1px;
1820
width: 100%;
1821
border-top: 1px solid var(--doorhanger-separator-color);
1822
}
1823
1824
.toolbarField {
1825
padding: 4px 7px;
1826
margin: 3px 0;
1827
border-radius: 2px;
1828
background-color: var(--field-bg-color);
1829
background-clip: padding-box;
1830
border-width: 1px;
1831
border-style: solid;
1832
border-color: var(--field-border-color);
1833
box-shadow: none;
1834
color: var(--field-color);
1835
font-size: 12px;
1836
line-height: 16px;
1837
outline-style: none;
1838
}
1839
1840
.toolbarField[type="checkbox"] {
1841
opacity: 0;
1842
position: absolute !important;
1843
left: 0;
1844
}
1845
1846
html[dir="ltr"] .toolbarField[type="checkbox"] {
1847
margin: 10px 0 3px 7px;
1848
}
1849
1850
html[dir="rtl"] .toolbarField[type="checkbox"] {
1851
margin: 10px 7px 3px 0;
1852
}
1853
1854
.toolbarField.pageNumber {
1855
-moz-appearance: textfield; /* hides the spinner in moz */
1856
min-width: 16px;
1857
text-align: right;
1858
width: 40px;
1859
}
1860
1861
.toolbarField.pageNumber.visiblePageIsLoading {
1862
background-image: var(--loading-icon);
1863
background-repeat: no-repeat;
1864
background-position: 3px;
1865
}
1866
1867
.toolbarField.pageNumber::-webkit-inner-spin-button,
1868
.toolbarField.pageNumber::-webkit-outer-spin-button {
1869
-webkit-appearance: none;
1870
margin: 0;
1871
}
1872
1873
.toolbarField:focus {
1874
border-color: #0a84ff;
1875
}
1876
1877
.toolbarLabel {
1878
min-width: 16px;
1879
padding: 6px;
1880
margin: 2px;
1881
border: 1px solid rgba(0, 0, 0, 0);
1882
border-radius: 2px;
1883
color: var(--main-color);
1884
font-size: 12px;
1885
line-height: 14px;
1886
text-align: left;
1887
-webkit-user-select: none;
1888
-moz-user-select: none;
1889
user-select: none;
1890
cursor: default;
1891
}
1892
1893
html[dir="ltr"] #numPages.toolbarLabel {
1894
padding-left: 2px;
1895
}
1896
html[dir="rtl"] #numPages.toolbarLabel {
1897
padding-right: 2px;
1898
}
1899
1900
#thumbnailView {
1901
position: absolute;
1902
width: calc(100% - 60px);
1903
top: 0;
1904
bottom: 0;
1905
padding: 10px 30px 0;
1906
overflow: auto;
1907
-webkit-overflow-scrolling: touch;
1908
}
1909
1910
#thumbnailView > a:active,
1911
#thumbnailView > a:focus {
1912
outline: 0;
1913
}
1914
1915
.thumbnail {
1916
margin: 0 10px 5px;
1917
}
1918
html[dir="ltr"] .thumbnail {
1919
float: left;
1920
}
1921
html[dir="rtl"] .thumbnail {
1922
float: right;
1923
}
1924
1925
#thumbnailView > a:last-of-type > .thumbnail {
1926
margin-bottom: 10px;
1927
}
1928
1929
#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
1930
margin-bottom: 9px;
1931
}
1932
1933
.thumbnail:not([data-loaded]) {
1934
border: 1px dashed rgba(132, 132, 132, 1);
1935
margin: -1px 9px 4px;
1936
}
1937
1938
.thumbnailImage {
1939
border: 1px solid rgba(0, 0, 0, 0);
1940
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
1941
opacity: 0.8;
1942
z-index: 99;
1943
background-color: rgba(255, 255, 255, 1);
1944
background-clip: content-box;
1945
}
1946
1947
.thumbnailSelectionRing {
1948
border-radius: 2px;
1949
padding: 7px;
1950
}
1951
1952
a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
1953
.thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
1954
opacity: 0.9;
1955
}
1956
1957
a:focus > .thumbnail > .thumbnailSelectionRing,
1958
.thumbnail:hover > .thumbnailSelectionRing {
1959
background-color: var(--sidebaritem-bg-color);
1960
background-clip: padding-box;
1961
color: rgba(255, 255, 255, 0.9);
1962
}
1963
1964
.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
1965
opacity: 1;
1966
}
1967
1968
.thumbnail.selected > .thumbnailSelectionRing {
1969
background-color: var(--sidebaritem-bg-color);
1970
background-clip: padding-box;
1971
color: rgba(255, 255, 255, 1);
1972
}
1973
1974
#outlineView,
1975
#attachmentsView,
1976
#layersView {
1977
position: absolute;
1978
width: calc(100% - 8px);
1979
top: 0;
1980
bottom: 0;
1981
padding: 4px 4px 0;
1982
overflow: auto;
1983
-webkit-overflow-scrolling: touch;
1984
-webkit-user-select: none;
1985
-moz-user-select: none;
1986
user-select: none;
1987
}
1988
1989
html[dir="ltr"] .treeWithDeepNesting > .treeItem,
1990
html[dir="ltr"] .treeItem > .treeItems {
1991
margin-left: 20px;
1992
}
1993
1994
html[dir="rtl"] .treeWithDeepNesting > .treeItem,
1995
html[dir="rtl"] .treeItem > .treeItems {
1996
margin-right: 20px;
1997
}
1998
1999
.treeItem > a {
2000
text-decoration: none;
2001
display: inline-block;
2002
min-width: 95%;
2003
/* Subtract the right padding (left, in RTL mode) of the container: */
2004
min-width: calc(100% - 4px);
2005
height: auto;
2006
margin-bottom: 1px;
2007
border-radius: 2px;
2008
color: var(--treeitem-color);
2009
font-size: 13px;
2010
line-height: 15px;
2011
-webkit-user-select: none;
2012
-moz-user-select: none;
2013
user-select: none;
2014
white-space: normal;
2015
cursor: pointer;
2016
}
2017
html[dir="ltr"] .treeItem > a {
2018
padding: 2px 0 5px 4px;
2019
}
2020
html[dir="rtl"] .treeItem > a {
2021
padding: 2px 4px 5px 0;
2022
}
2023
2024
#layersView .treeItem > a > * {
2025
cursor: pointer;
2026
}
2027
html[dir="ltr"] #layersView .treeItem > a > label {
2028
padding-left: 4px;
2029
}
2030
html[dir="rtl"] #layersView .treesItem > a > label {
2031
padding-right: 4px;
2032
}
2033
2034
.treeItemToggler {
2035
position: relative;
2036
height: 0;
2037
width: 0;
2038
color: rgba(255, 255, 255, 0.5);
2039
}
2040
.treeItemToggler::before {
2041
-webkit-mask-image: var(--treeitem-expanded-icon);
2042
mask-image: var(--treeitem-expanded-icon);
2043
}
2044
.treeItemToggler.treeItemsHidden::before {
2045
-webkit-mask-image: var(--treeitem-collapsed-icon);
2046
mask-image: var(--treeitem-collapsed-icon);
2047
}
2048
html[dir="rtl"] .treeItemToggler.treeItemsHidden::before {
2049
transform: scaleX(-1);
2050
}
2051
.treeItemToggler.treeItemsHidden ~ .treeItems {
2052
display: none;
2053
}
2054
html[dir="ltr"] .treeItemToggler {
2055
float: left;
2056
}
2057
html[dir="rtl"] .treeItemToggler {
2058
float: right;
2059
}
2060
html[dir="ltr"] .treeItemToggler::before {
2061
right: 4px;
2062
}
2063
html[dir="rtl"] .treeItemToggler::before {
2064
left: 4px;
2065
}
2066
2067
.treeItem.selected > a {
2068
background-color: var(--treeitem-selected-bg-color);
2069
color: var(--treeitem-selected-color);
2070
}
2071
2072
.treeItemToggler:hover,
2073
.treeItemToggler:hover + a,
2074
.treeItemToggler:hover ~ .treeItems,
2075
.treeItem > a:hover {
2076
background-color: var(--sidebaritem-bg-color);
2077
background-clip: padding-box;
2078
border-radius: 2px;
2079
color: var(--treeitem-hover-color);
2080
}
2081
2082
/* TODO: file FF bug to support ::-moz-selection:window-inactive
2083
so we can override the opaque grey background when the window is inactive;
2084
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
2085
::-moz-selection {
2086
background: rgba(0, 0, 255, 0.3);
2087
}
2088
::selection {
2089
background: rgba(0, 0, 255, 0.3);
2090
}
2091
2092
#errorWrapper {
2093
background: none repeat scroll 0 0 var(--errorWrapper-bg-color);
2094
color: var(--main-color);
2095
left: 0;
2096
position: absolute;
2097
right: 0;
2098
z-index: 1000;
2099
padding: 3px 6px;
2100
}
2101
2102
#errorMessageLeft {
2103
float: left;
2104
}
2105
2106
#errorMessageRight {
2107
float: right;
2108
}
2109
2110
#errorMoreInfo {
2111
background-color: var(--field-bg-color);
2112
color: var(--field-color);
2113
border: 1px solid var(--field-border-color);
2114
padding: 3px;
2115
margin: 3px;
2116
width: 98%;
2117
}
2118
2119
.overlayButton {
2120
width: auto;
2121
margin: 3px 4px 2px !important;
2122
padding: 2px 11px;
2123
}
2124
2125
#overlayContainer {
2126
display: table;
2127
position: absolute;
2128
width: 100%;
2129
height: 100%;
2130
background-color: rgba(0, 0, 0, 0.2);
2131
z-index: 40000;
2132
}
2133
#overlayContainer > * {
2134
overflow: auto;
2135
-webkit-overflow-scrolling: touch;
2136
}
2137
2138
#overlayContainer > .container {
2139
display: table-cell;
2140
vertical-align: middle;
2141
text-align: center;
2142
}
2143
2144
#overlayContainer > .container > .dialog {
2145
display: inline-block;
2146
padding: 15px;
2147
border-spacing: 4px;
2148
color: var(--main-color);
2149
font-size: 12px;
2150
line-height: 14px;
2151
background-color: var(--doorhanger-bg-color);
2152
border: 1px solid rgba(0, 0, 0, 0.5);
2153
border-radius: 4px;
2154
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2155
}
2156
2157
.dialog > .row {
2158
display: table-row;
2159
}
2160
2161
.dialog > .row > * {
2162
display: table-cell;
2163
}
2164
2165
.dialog .toolbarField {
2166
margin: 5px 0;
2167
}
2168
2169
.dialog .separator {
2170
display: block;
2171
margin: 4px 0;
2172
height: 1px;
2173
width: 100%;
2174
background-color: var(--separator-color);
2175
}
2176
2177
.dialog .buttonRow {
2178
text-align: center;
2179
vertical-align: middle;
2180
}
2181
2182
.dialog :link {
2183
color: rgba(255, 255, 255, 1);
2184
}
2185
2186
#passwordOverlay > .dialog {
2187
text-align: center;
2188
}
2189
#passwordOverlay .toolbarField {
2190
width: 200px;
2191
}
2192
2193
#documentPropertiesOverlay > .dialog {
2194
text-align: left;
2195
}
2196
#documentPropertiesOverlay .row > * {
2197
min-width: 100px;
2198
}
2199
html[dir="ltr"] #documentPropertiesOverlay .row > * {
2200
text-align: left;
2201
}
2202
html[dir="rtl"] #documentPropertiesOverlay .row > * {
2203
text-align: right;
2204
}
2205
#documentPropertiesOverlay .row > span {
2206
width: 125px;
2207
word-wrap: break-word;
2208
}
2209
#documentPropertiesOverlay .row > p {
2210
max-width: 225px;
2211
word-wrap: break-word;
2212
}
2213
#documentPropertiesOverlay .buttonRow {
2214
margin-top: 10px;
2215
}
2216
2217
.clearBoth {
2218
clear: both;
2219
}
2220
2221
.fileInput {
2222
background: rgba(255, 255, 255, 1);
2223
color: rgba(0, 0, 0, 1);
2224
margin-top: 5px;
2225
visibility: hidden;
2226
position: fixed;
2227
right: 0;
2228
top: 0;
2229
}
2230
2231
#PDFBug {
2232
background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
2233
border: 1px solid rgba(102, 102, 102, 1);
2234
position: fixed;
2235
top: 32px;
2236
right: 0;
2237
bottom: 0;
2238
font-size: 10px;
2239
padding: 0;
2240
width: 300px;
2241
}
2242
#PDFBug .controls {
2243
background: rgba(238, 238, 238, 1);
2244
border-bottom: 1px solid rgba(102, 102, 102, 1);
2245
padding: 3px;
2246
}
2247
#PDFBug .panels {
2248
bottom: 0;
2249
left: 0;
2250
overflow: auto;
2251
-webkit-overflow-scrolling: touch;
2252
position: absolute;
2253
right: 0;
2254
top: 27px;
2255
}
2256
#PDFBug .panels > div {
2257
padding: 5px;
2258
}
2259
#PDFBug button.active {
2260
font-weight: bold;
2261
}
2262
.debuggerShowText {
2263
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2264
color: rgba(0, 0, 255, 1);
2265
}
2266
.debuggerHideText:hover {
2267
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2268
}
2269
#PDFBug .stats {
2270
font-family: courier;
2271
font-size: 10px;
2272
white-space: pre;
2273
}
2274
#PDFBug .stats .title {
2275
font-weight: bold;
2276
}
2277
#PDFBug table {
2278
font-size: 10px;
2279
}
2280
2281
#viewer.textLayer-visible .textLayer {
2282
opacity: 1;
2283
}
2284
2285
#viewer.textLayer-visible .canvasWrapper {
2286
background-color: rgba(128, 255, 128, 1);
2287
}
2288
2289
#viewer.textLayer-visible .canvasWrapper canvas {
2290
mix-blend-mode: screen;
2291
}
2292
2293
#viewer.textLayer-visible .textLayer > span {
2294
background-color: rgba(255, 255, 0, 0.1);
2295
color: rgba(0, 0, 0, 1);
2296
border: solid 1px rgba(255, 0, 0, 0.5);
2297
box-sizing: border-box;
2298
}
2299
2300
#viewer.textLayer-hover .textLayer > span:hover {
2301
background-color: rgba(255, 255, 255, 1);
2302
color: rgba(0, 0, 0, 1);
2303
}
2304
2305
#viewer.textLayer-shadow .textLayer > span {
2306
background-color: rgba(255, 255, 255, 0.6);
2307
color: rgba(0, 0, 0, 1);
2308
}
2309
2310
.grab-to-pan-grab {
2311
cursor: url("images/grab.cur"), move !important;
2312
cursor: -webkit-grab !important;
2313
cursor: grab !important;
2314
}
2315
.grab-to-pan-grab
2316
*:not(input):not(textarea):not(button):not(select):not(:link) {
2317
cursor: inherit !important;
2318
}
2319
.grab-to-pan-grab:active,
2320
.grab-to-pan-grabbing {
2321
cursor: url("images/grabbing.cur"), move !important;
2322
cursor: -webkit-grabbing !important;
2323
cursor: grabbing !important;
2324
position: fixed;
2325
background: rgba(0, 0, 0, 0);
2326
display: block;
2327
top: 0;
2328
left: 0;
2329
right: 0;
2330
bottom: 0;
2331
overflow: hidden;
2332
z-index: 50000; /* should be higher than anything else in PDF.js! */
2333
}
2334
2335
@page {
2336
margin: 0;
2337
}
2338
2339
#printContainer {
2340
display: none;
2341
}
2342
2343
@media print {
2344
/* General rules for printing. */
2345
body {
2346
background: rgba(0, 0, 0, 0) none;
2347
}
2348
2349
/* Rules for browsers that don't support mozPrintCallback. */
2350
#sidebarContainer,
2351
#secondaryToolbar,
2352
.toolbar,
2353
#loadingBox,
2354
#errorWrapper,
2355
.textLayer {
2356
display: none;
2357
}
2358
#viewerContainer {
2359
overflow: visible;
2360
}
2361
2362
#mainContainer,
2363
#viewerContainer,
2364
.page,
2365
.page canvas {
2366
position: static;
2367
padding: 0;
2368
margin: 0;
2369
}
2370
2371
.page {
2372
float: left;
2373
display: none;
2374
border: none;
2375
box-shadow: none;
2376
background-clip: content-box;
2377
background-color: rgba(255, 255, 255, 1);
2378
}
2379
2380
.page[data-loaded] {
2381
display: block;
2382
}
2383
2384
.fileInput {
2385
display: none;
2386
}
2387
2388
/* Rules for browsers that support PDF.js printing */
2389
body[data-pdfjsprinting] #outerContainer {
2390
display: none;
2391
}
2392
body[data-pdfjsprinting] #printContainer {
2393
display: block;
2394
}
2395
#printContainer {
2396
height: 100%;
2397
}
2398
/* wrapper around (scaled) print canvas elements */
2399
#printContainer > div {
2400
page-break-after: always;
2401
page-break-inside: avoid;
2402
2403
/* The wrapper always cover the whole page. */
2404
height: 100%;
2405
width: 100%;
2406
2407
display: flex;
2408
flex-direction: column;
2409
justify-content: center;
2410
align-items: center;
2411
}
2412
#printContainer canvas,
2413
#printContainer img {
2414
/* The intrinsic canvas / image size will make sure that we fit the page. */
2415
max-width: 100%;
2416
max-height: 100%;
2417
2418
direction: ltr;
2419
display: block;
2420
}
2421
}
2422
2423
.visibleLargeView,
2424
.visibleMediumView,
2425
.visibleSmallView {
2426
display: none;
2427
}
2428
2429
@media all and (max-width: 900px) {
2430
#toolbarViewerMiddle {
2431
display: table;
2432
margin: auto;
2433
left: auto;
2434
position: inherit;
2435
transform: none;
2436
}
2437
}
2438
2439
@media all and (max-width: 840px) {
2440
#sidebarContainer {
2441
background-color: var(--sidebar-narrow-bg-color);
2442
}
2443
2444
html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
2445
left: 0 !important;
2446
}
2447
html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
2448
right: 0 !important;
2449
}
2450
2451
#outerContainer .hiddenLargeView,
2452
#outerContainer .hiddenMediumView {
2453
display: inherit;
2454
}
2455
#outerContainer .visibleLargeView,
2456
#outerContainer .visibleMediumView {
2457
display: none;
2458
}
2459
}
2460
2461
@media all and (max-width: 770px) {
2462
#outerContainer .hiddenLargeView {
2463
display: none;
2464
}
2465
#outerContainer .visibleLargeView {
2466
display: inherit;
2467
}
2468
}
2469
2470
@media all and (max-width: 700px) {
2471
#outerContainer .hiddenMediumView {
2472
display: none;
2473
}
2474
#outerContainer .visibleMediumView {
2475
display: inherit;
2476
}
2477
}
2478
2479
@media all and (max-width: 640px) {
2480
.hiddenSmallView,
2481
.hiddenSmallView * {
2482
display: none;
2483
}
2484
.visibleSmallView {
2485
display: inherit;
2486
}
2487
.toolbarButtonSpacer {
2488
width: 0;
2489
}
2490
html[dir="ltr"] .findbar {
2491
left: 34px;
2492
}
2493
html[dir="rtl"] .findbar {
2494
right: 34px;
2495
}
2496
}
2497
2498
@media all and (max-width: 535px) {
2499
#scaleSelectContainer {
2500
display: none;
2501
}
2502
}
2503
2504