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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ @import url(pdf_viewer.css);
17
+
18
+ :root {
19
+ --dir-factor: 1;
20
+ /*#if !MOZCENTRAL*/
21
+ --inline-start: left;
22
+ --inline-end: right;
23
+ /*#endif*/
24
+
25
+ --sidebar-width: 200px;
26
+ --sidebar-transition-duration: 200ms;
27
+ --sidebar-transition-timing-function: ease;
28
+
29
+ --toolbar-height: 32px;
30
+ --toolbar-horizontal-padding: 1px;
31
+ --toolbar-vertical-padding: 2px;
32
+ --icon-size: 16px;
33
+
34
+ --toolbar-icon-opacity: 0.7;
35
+ --doorhanger-icon-opacity: 0.9;
36
+ --doorhanger-height: 8px;
37
+
38
+ --main-color: rgb(12 12 13);
39
+ --body-bg-color: rgb(212 212 215);
40
+ --progressBar-color: rgb(10 132 255);
41
+ --progressBar-bg-color: rgb(221 221 222);
42
+ --progressBar-blend-color: rgb(116 177 239);
43
+ --scrollbar-color: auto;
44
+ --scrollbar-bg-color: auto;
45
+ --toolbar-icon-bg-color: rgb(0 0 0);
46
+ --toolbar-icon-hover-bg-color: rgb(0 0 0);
47
+
48
+ --sidebar-narrow-bg-color: rgb(212 212 215 / 0.9);
49
+ --sidebar-toolbar-bg-color: rgb(245 246 247);
50
+ --toolbar-bg-color: rgb(249 249 250);
51
+ --toolbar-border-color: rgb(184 184 184);
52
+ --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
53
+ --toolbar-border-bottom: none;
54
+ --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0
55
+ rgb(0 0 0 / 0.25),
56
+ 0 1px 0 rgb(0 0 0 / 0.15), 0 0 1px rgb(0 0 0 / 0.1);
57
+ --toolbarSidebar-border-bottom: none;
58
+ --button-hover-color: rgb(221 222 223);
59
+ --toggled-btn-color: rgb(0 0 0);
60
+ --toggled-btn-bg-color: rgb(0 0 0 / 0.3);
61
+ --toggled-hover-active-btn-color: rgb(0 0 0 / 0.4);
62
+ --toggled-hover-btn-outline: none;
63
+ --dropdown-btn-bg-color: rgb(215 215 219);
64
+ --dropdown-btn-border: none;
65
+ --separator-color: rgb(0 0 0 / 0.3);
66
+ --field-color: rgb(6 6 6);
67
+ --field-bg-color: rgb(255 255 255);
68
+ --field-border-color: rgb(187 187 188);
69
+ --treeitem-color: rgb(0 0 0 / 0.8);
70
+ --treeitem-bg-color: rgb(0 0 0 / 0.15);
71
+ --treeitem-hover-color: rgb(0 0 0 / 0.9);
72
+ --treeitem-selected-color: rgb(0 0 0 / 0.9);
73
+ --treeitem-selected-bg-color: rgb(0 0 0 / 0.25);
74
+ --thumbnail-hover-color: rgb(0 0 0 / 0.1);
75
+ --thumbnail-selected-color: rgb(0 0 0 / 0.2);
76
+ --doorhanger-bg-color: rgb(255 255 255);
77
+ --doorhanger-border-color: rgb(12 12 13 / 0.2);
78
+ --doorhanger-hover-color: rgb(12 12 13);
79
+ --doorhanger-hover-bg-color: rgb(237 237 237);
80
+ --doorhanger-separator-color: rgb(222 222 222);
81
+ --dialog-button-border: none;
82
+ --dialog-button-bg-color: rgb(12 12 13 / 0.1);
83
+ --dialog-button-hover-bg-color: rgb(12 12 13 / 0.3);
84
+
85
+ --loading-icon: url(images/loading.svg);
86
+ --treeitem-expanded-icon: url(images/treeitem-expanded.svg);
87
+ --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
88
+ --toolbarButton-editorFreeText-icon: url(images/toolbarButton-editorFreeText.svg);
89
+ --toolbarButton-editorHighlight-icon: url(images/toolbarButton-editorHighlight.svg);
90
+ --toolbarButton-editorInk-icon: url(images/toolbarButton-editorInk.svg);
91
+ --toolbarButton-editorStamp-icon: url(images/toolbarButton-editorStamp.svg);
92
+ --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
93
+ --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
94
+ --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
95
+ --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
96
+ --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
97
+ --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
98
+ --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
99
+ --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
100
+ --toolbarButton-print-icon: url(images/toolbarButton-print.svg);
101
+ /*#if GENERIC*/
102
+ --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
103
+ /*#endif*/
104
+ --toolbarButton-download-icon: url(images/toolbarButton-download.svg);
105
+ --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
106
+ --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
107
+ --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
108
+ --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
109
+ --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
110
+ --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
111
+ --toolbarButton-search-icon: url(images/toolbarButton-search.svg);
112
+ --findbarButton-previous-icon: url(images/findbarButton-previous.svg);
113
+ --findbarButton-next-icon: url(images/findbarButton-next.svg);
114
+ --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
115
+ --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
116
+ --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
117
+ --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
118
+ --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
119
+ --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
120
+ --secondaryToolbarButton-scrollPage-icon: url(images/secondaryToolbarButton-scrollPage.svg);
121
+ --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
122
+ --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
123
+ --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
124
+ --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
125
+ --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
126
+ --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
127
+ --secondaryToolbarButton-imageAltTextSettings-icon: var(
128
+ --toolbarButton-editorStamp-icon
129
+ );
130
+ --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
131
+ --editorParams-stampAddImage-icon: url(images/toolbarButton-zoomIn.svg);
132
+ }
133
+
134
+ :root:dir(rtl) {
135
+ --dir-factor: -1;
136
+ /*#if !MOZCENTRAL*/
137
+ --inline-start: right;
138
+ --inline-end: left;
139
+ /*#endif*/
140
+ }
141
+
142
+ @media (prefers-color-scheme: dark) {
143
+ :root {
144
+ --main-color: rgb(249 249 250);
145
+ --body-bg-color: rgb(42 42 46);
146
+ --progressBar-color: rgb(0 96 223);
147
+ --progressBar-bg-color: rgb(40 40 43);
148
+ --progressBar-blend-color: rgb(20 68 133);
149
+ --scrollbar-color: rgb(121 121 123);
150
+ --scrollbar-bg-color: rgb(35 35 39);
151
+ --toolbar-icon-bg-color: rgb(255 255 255);
152
+ --toolbar-icon-hover-bg-color: rgb(255 255 255);
153
+
154
+ --sidebar-narrow-bg-color: rgb(42 42 46 / 0.9);
155
+ --sidebar-toolbar-bg-color: rgb(50 50 52);
156
+ --toolbar-bg-color: rgb(56 56 61);
157
+ --toolbar-border-color: rgb(12 12 13);
158
+ --button-hover-color: rgb(102 102 103);
159
+ --toggled-btn-color: rgb(255 255 255);
160
+ --toggled-btn-bg-color: rgb(0 0 0 / 0.3);
161
+ --toggled-hover-active-btn-color: rgb(0 0 0 / 0.4);
162
+ --dropdown-btn-bg-color: rgb(74 74 79);
163
+ --separator-color: rgb(0 0 0 / 0.3);
164
+ --field-color: rgb(250 250 250);
165
+ --field-bg-color: rgb(64 64 68);
166
+ --field-border-color: rgb(115 115 115);
167
+ --treeitem-color: rgb(255 255 255 / 0.8);
168
+ --treeitem-bg-color: rgb(255 255 255 / 0.15);
169
+ --treeitem-hover-color: rgb(255 255 255 / 0.9);
170
+ --treeitem-selected-color: rgb(255 255 255 / 0.9);
171
+ --treeitem-selected-bg-color: rgb(255 255 255 / 0.25);
172
+ --thumbnail-hover-color: rgb(255 255 255 / 0.1);
173
+ --thumbnail-selected-color: rgb(255 255 255 / 0.2);
174
+ --doorhanger-bg-color: rgb(74 74 79);
175
+ --doorhanger-border-color: rgb(39 39 43);
176
+ --doorhanger-hover-color: rgb(249 249 250);
177
+ --doorhanger-hover-bg-color: rgb(93 94 98);
178
+ --doorhanger-separator-color: rgb(92 92 97);
179
+ --dialog-button-bg-color: rgb(92 92 97);
180
+ --dialog-button-hover-bg-color: rgb(115 115 115);
181
+ }
182
+ }
183
+
184
+ @media screen and (forced-colors: active) {
185
+ :root {
186
+ --button-hover-color: Highlight;
187
+ --doorhanger-hover-bg-color: Highlight;
188
+ --toolbar-icon-opacity: 1;
189
+ --toolbar-icon-bg-color: ButtonText;
190
+ --toolbar-icon-hover-bg-color: ButtonFace;
191
+ --toggled-hover-active-btn-color: ButtonText;
192
+ --toggled-hover-btn-outline: 2px solid ButtonBorder;
193
+ --toolbar-border-color: CanvasText;
194
+ --toolbar-border-bottom: 1px solid var(--toolbar-border-color);
195
+ --toolbar-box-shadow: none;
196
+ --toggled-btn-color: HighlightText;
197
+ --toggled-btn-bg-color: LinkText;
198
+ --doorhanger-hover-color: ButtonFace;
199
+ --doorhanger-border-color-whcm: 1px solid ButtonText;
200
+ --doorhanger-triangle-opacity-whcm: 0;
201
+ --dialog-button-border: 1px solid Highlight;
202
+ --dialog-button-hover-bg-color: Highlight;
203
+ --dialog-button-hover-color: ButtonFace;
204
+ --dropdown-btn-border: 1px solid ButtonText;
205
+ --field-border-color: ButtonText;
206
+ --main-color: CanvasText;
207
+ --separator-color: GrayText;
208
+ --doorhanger-separator-color: GrayText;
209
+ --toolbarSidebar-box-shadow: none;
210
+ --toolbarSidebar-border-bottom: 1px solid var(--toolbar-border-color);
211
+ }
212
+ }
213
+
214
+ @media screen and (prefers-reduced-motion: reduce) {
215
+ :root {
216
+ --sidebar-transition-duration: 0;
217
+ }
218
+ }
219
+
220
+ @keyframes progressIndeterminate {
221
+ 0% {
222
+ transform: translateX(calc(-142px * var(--dir-factor)));
223
+ }
224
+
225
+ 100% {
226
+ transform: translateX(0);
227
+ }
228
+ }
229
+
230
+ html {
231
+ &[data-toolbar-density="compact"] {
232
+ --toolbar-height: 30px;
233
+ }
234
+ &[data-toolbar-density="touch"] {
235
+ --toolbar-height: 44px;
236
+ }
237
+ }
238
+
239
+ html,
240
+ body {
241
+ height: 100%;
242
+ width: 100%;
243
+ }
244
+
245
+ body {
246
+ margin: 0;
247
+ background-color: var(--body-bg-color);
248
+ scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
249
+
250
+ &.wait::before {
251
+ content: "";
252
+ position: fixed;
253
+ width: 100%;
254
+ height: 100%;
255
+ z-index: 100000;
256
+ cursor: wait;
257
+ }
258
+ }
259
+
260
+ .hidden,
261
+ [hidden] {
262
+ display: none !important;
263
+ }
264
+
265
+ #viewerContainer.pdfPresentationMode:fullscreen {
266
+ top: 0;
267
+ background-color: rgb(0 0 0);
268
+ width: 100%;
269
+ height: 100%;
270
+ overflow: hidden;
271
+ cursor: none;
272
+ user-select: none;
273
+ }
274
+
275
+ .pdfPresentationMode:fullscreen section:not([data-internal-link]) {
276
+ pointer-events: none;
277
+ }
278
+
279
+ .pdfPresentationMode:fullscreen .textLayer span {
280
+ cursor: none;
281
+ }
282
+
283
+ .pdfPresentationMode.pdfPresentationModeControls > *,
284
+ .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
285
+ cursor: default;
286
+ }
287
+
288
+ #outerContainer {
289
+ width: 100%;
290
+ height: 100%;
291
+ position: relative;
292
+ margin: 0;
293
+ }
294
+
295
+ #sidebarContainer {
296
+ position: absolute;
297
+ inset-block: var(--toolbar-height) 0;
298
+ inset-inline-start: calc(-1 * var(--sidebar-width));
299
+ width: var(--sidebar-width);
300
+ visibility: hidden;
301
+ z-index: 1;
302
+ font: message-box;
303
+ border-top: 1px solid transparent;
304
+ border-inline-end: var(--doorhanger-border-color-whcm);
305
+ transition-property: inset-inline-start;
306
+ transition-duration: var(--sidebar-transition-duration);
307
+ transition-timing-function: var(--sidebar-transition-timing-function);
308
+ }
309
+
310
+ #outerContainer:is(.sidebarMoving, .sidebarOpen) #sidebarContainer {
311
+ visibility: visible;
312
+ }
313
+
314
+ #outerContainer.sidebarOpen #sidebarContainer {
315
+ inset-inline-start: 0;
316
+ }
317
+
318
+ #mainContainer {
319
+ position: absolute;
320
+ inset: 0;
321
+ min-width: 350px;
322
+ margin: 0;
323
+ display: flex;
324
+ flex-direction: column;
325
+ }
326
+
327
+ #sidebarContent {
328
+ inset-block: var(--toolbar-height) 0;
329
+ inset-inline-start: 0;
330
+ overflow: auto;
331
+ position: absolute;
332
+ width: 100%;
333
+ box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgb(0 0 0 / 0.25);
334
+ }
335
+
336
+ #viewerContainer {
337
+ overflow: auto;
338
+ position: absolute;
339
+ inset: var(--toolbar-height) 0 0;
340
+ outline: none;
341
+ z-index: 0;
342
+ }
343
+
344
+ #viewerContainer:not(.pdfPresentationMode) {
345
+ transition-duration: var(--sidebar-transition-duration);
346
+ transition-timing-function: var(--sidebar-transition-timing-function);
347
+ }
348
+
349
+ #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
350
+ inset-inline-start: var(--sidebar-width);
351
+ transition-property: inset-inline-start;
352
+ }
353
+
354
+ #sidebarContainer :is(input, button, select) {
355
+ font: message-box;
356
+ }
357
+
358
+ .toolbar {
359
+ z-index: 2;
360
+ }
361
+
362
+ #toolbarSidebar {
363
+ width: 100%;
364
+ height: var(--toolbar-height);
365
+ background-color: var(--sidebar-toolbar-bg-color);
366
+ box-shadow: var(--toolbarSidebar-box-shadow);
367
+ border-bottom: var(--toolbarSidebar-border-bottom);
368
+ padding: var(--toolbar-vertical-padding) var(--toolbar-horizontal-padding);
369
+ justify-content: space-between;
370
+
371
+ #toolbarSidebarLeft {
372
+ width: auto;
373
+ height: 100%;
374
+
375
+ #viewThumbnail::before {
376
+ mask-image: var(--toolbarButton-viewThumbnail-icon);
377
+ }
378
+
379
+ #viewOutline::before {
380
+ mask-image: var(--toolbarButton-viewOutline-icon);
381
+ transform: scaleX(var(--dir-factor));
382
+ }
383
+
384
+ #viewAttachments::before {
385
+ mask-image: var(--toolbarButton-viewAttachments-icon);
386
+ }
387
+
388
+ #viewLayers::before {
389
+ mask-image: var(--toolbarButton-viewLayers-icon);
390
+ }
391
+ }
392
+
393
+ #toolbarSidebarRight {
394
+ width: auto;
395
+ height: 100%;
396
+ padding-inline-end: 2px;
397
+ }
398
+ }
399
+
400
+ #sidebarResizer {
401
+ position: absolute;
402
+ inset-block: 0;
403
+ inset-inline-end: -6px;
404
+ width: 6px;
405
+ z-index: 200;
406
+ cursor: ew-resize;
407
+ }
408
+
409
+ #outerContainer.sidebarOpen #loadingBar {
410
+ inset-inline-start: var(--sidebar-width);
411
+ }
412
+
413
+ #outerContainer.sidebarResizing
414
+ :is(#sidebarContainer, #viewerContainer, #loadingBar) {
415
+ /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
416
+ transition-duration: 0s;
417
+ }
418
+
419
+ .doorHanger,
420
+ .doorHangerRight {
421
+ border-radius: 2px;
422
+ box-shadow:
423
+ 0 1px 5px var(--doorhanger-border-color),
424
+ 0 0 0 1px var(--doorhanger-border-color);
425
+ border: var(--doorhanger-border-color-whcm);
426
+ background-color: var(--doorhanger-bg-color);
427
+ inset-block-start: calc(100% + var(--doorhanger-height) - 2px);
428
+
429
+ &::after,
430
+ &::before {
431
+ bottom: 100%;
432
+ border-style: solid;
433
+ border-color: transparent;
434
+ content: "";
435
+ height: 0;
436
+ width: 0;
437
+ position: absolute;
438
+ pointer-events: none;
439
+ opacity: var(--doorhanger-triangle-opacity-whcm);
440
+ }
441
+
442
+ &::before {
443
+ border-width: calc(var(--doorhanger-height) + 2px);
444
+ border-bottom-color: var(--doorhanger-border-color);
445
+ }
446
+
447
+ &::after {
448
+ border-width: var(--doorhanger-height);
449
+ }
450
+ }
451
+
452
+ .doorHangerRight {
453
+ inset-inline-end: calc(50% - var(--doorhanger-height) - 1px);
454
+
455
+ &::before {
456
+ inset-inline-end: -1px;
457
+ }
458
+
459
+ &::after {
460
+ border-bottom-color: var(--doorhanger-bg-color);
461
+ inset-inline-end: 1px;
462
+ }
463
+ }
464
+
465
+ .doorHanger {
466
+ inset-inline-start: calc(50% - var(--doorhanger-height) - 1px);
467
+
468
+ &::before {
469
+ inset-inline-start: -1px;
470
+ }
471
+
472
+ &::after {
473
+ border-bottom-color: var(--toolbar-bg-color);
474
+ inset-inline-start: 1px;
475
+ }
476
+ }
477
+
478
+ .dialogButton {
479
+ border: none;
480
+ background: none;
481
+ width: 28px;
482
+ height: 28px;
483
+ outline: none;
484
+ }
485
+
486
+ .dialogButton:is(:hover, :focus-visible) {
487
+ background-color: var(--dialog-button-hover-bg-color);
488
+ }
489
+
490
+ .dialogButton:is(:hover, :focus-visible) > span {
491
+ color: var(--dialog-button-hover-color);
492
+ }
493
+
494
+ .splitToolbarButtonSeparator {
495
+ float: var(--inline-start);
496
+ width: 0;
497
+ height: 62%;
498
+ border-left: 1px solid var(--separator-color);
499
+ border-right: none;
500
+ }
501
+
502
+ .dialogButton {
503
+ min-width: 16px;
504
+ margin: 2px 1px;
505
+ padding: 2px 6px 0;
506
+ border: none;
507
+ border-radius: 2px;
508
+ color: var(--main-color);
509
+ font-size: 12px;
510
+ line-height: 14px;
511
+ user-select: none;
512
+ cursor: default;
513
+ box-sizing: border-box;
514
+ }
515
+
516
+ .treeItemToggler::before {
517
+ /* All matching images have a size of 16x16
518
+ * All relevant containers have a size of 28x28 */
519
+ position: absolute;
520
+ display: inline-block;
521
+ width: 16px;
522
+ height: 16px;
523
+
524
+ content: "";
525
+ background-color: var(--toolbar-icon-bg-color);
526
+ mask-size: cover;
527
+ }
528
+
529
+ #sidebarToggleButton::before {
530
+ mask-image: var(--toolbarButton-sidebarToggle-icon);
531
+ transform: scaleX(var(--dir-factor));
532
+ }
533
+
534
+ #secondaryToolbarToggleButton::before {
535
+ mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
536
+ transform: scaleX(var(--dir-factor));
537
+ }
538
+
539
+ #previous::before {
540
+ mask-image: var(--toolbarButton-pageUp-icon);
541
+ }
542
+
543
+ #next::before {
544
+ mask-image: var(--toolbarButton-pageDown-icon);
545
+ }
546
+
547
+ #zoomOutButton::before {
548
+ mask-image: var(--toolbarButton-zoomOut-icon);
549
+ }
550
+
551
+ #zoomInButton::before {
552
+ mask-image: var(--toolbarButton-zoomIn-icon);
553
+ }
554
+
555
+ #presentationMode::before {
556
+ mask-image: var(--toolbarButton-presentationMode-icon);
557
+ }
558
+
559
+ #editorFreeTextButton::before {
560
+ mask-image: var(--toolbarButton-editorFreeText-icon);
561
+ }
562
+
563
+ #editorHighlightButton::before {
564
+ mask-image: var(--toolbarButton-editorHighlight-icon);
565
+ }
566
+
567
+ #editorInkButton::before {
568
+ mask-image: var(--toolbarButton-editorInk-icon);
569
+ }
570
+
571
+ #editorStampButton::before {
572
+ mask-image: var(--toolbarButton-editorStamp-icon);
573
+ }
574
+
575
+ #printButton::before {
576
+ mask-image: var(--toolbarButton-print-icon);
577
+ }
578
+
579
+ /*#if GENERIC*/
580
+ #secondaryOpenFile::before {
581
+ mask-image: var(--toolbarButton-openFile-icon);
582
+ }
583
+ /*#endif*/
584
+
585
+ #downloadButton::before {
586
+ mask-image: var(--toolbarButton-download-icon);
587
+ }
588
+
589
+ #viewBookmark::before {
590
+ mask-image: var(--toolbarButton-bookmark-icon);
591
+ }
592
+
593
+ #currentOutlineItem::before {
594
+ mask-image: var(--toolbarButton-currentOutlineItem-icon);
595
+ transform: scaleX(var(--dir-factor));
596
+ }
597
+
598
+ #viewFindButton::before {
599
+ mask-image: var(--toolbarButton-search-icon);
600
+ }
601
+
602
+ .pdfSidebarNotification::after {
603
+ position: absolute;
604
+ display: inline-block;
605
+ top: 2px;
606
+ inset-inline-end: 2px;
607
+ /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
608
+ content: "";
609
+ background-color: rgb(112 219 85);
610
+ height: 9px;
611
+ width: 9px;
612
+ border-radius: 50%;
613
+ }
614
+
615
+ .verticalToolbarSeparator {
616
+ display: block;
617
+ margin-inline: 2px;
618
+ width: 0;
619
+ height: 80%;
620
+ border-left: 1px solid var(--separator-color);
621
+ border-right: none;
622
+ box-sizing: border-box;
623
+ }
624
+
625
+ .horizontalToolbarSeparator {
626
+ display: block;
627
+ margin: 6px 0;
628
+ border-top: 1px solid var(--doorhanger-separator-color);
629
+ border-bottom: none;
630
+ height: 0;
631
+ width: 100%;
632
+ }
633
+
634
+ .toggleButton {
635
+ display: inline;
636
+
637
+ &:is(:hover, :has(> input:focus-visible)) {
638
+ color: var(--toggled-btn-color);
639
+ background-color: var(--button-hover-color);
640
+ }
641
+
642
+ &:has(> input:checked) {
643
+ color: var(--toggled-btn-color);
644
+ background-color: var(--toggled-btn-bg-color);
645
+ }
646
+
647
+ & > input {
648
+ position: absolute;
649
+ top: 50%;
650
+ left: 50%;
651
+ opacity: 0;
652
+ width: 0;
653
+ height: 0;
654
+ }
655
+ }
656
+
657
+ .toolbarField {
658
+ padding: 4px 7px;
659
+ margin: 3px 0;
660
+ border-radius: 2px;
661
+ background-color: var(--field-bg-color);
662
+ background-clip: padding-box;
663
+ border: 1px solid var(--field-border-color);
664
+ box-shadow: none;
665
+ color: var(--field-color);
666
+ font-size: 12px;
667
+ line-height: 16px;
668
+ outline: none;
669
+
670
+ &:focus {
671
+ border-color: #0a84ff;
672
+ }
673
+ }
674
+
675
+ #pageNumber {
676
+ -moz-appearance: textfield; /* hides the spinner in moz */
677
+ text-align: end;
678
+ width: 40px;
679
+ background-size: 0 0;
680
+ transition-property: none;
681
+
682
+ /*#if !MOZCENTRAL*/
683
+ &::-webkit-inner-spin-button {
684
+ -webkit-appearance: none;
685
+ }
686
+ /*#endif*/
687
+
688
+ .loadingInput:has(> &.loading)::after {
689
+ display: inline;
690
+ visibility: visible;
691
+
692
+ transition-property: visibility;
693
+ transition-delay: var(--loading-icon-delay);
694
+ }
695
+ }
696
+
697
+ .loadingInput {
698
+ position: relative;
699
+
700
+ &::after {
701
+ position: absolute;
702
+ visibility: hidden;
703
+ display: none;
704
+ width: var(--icon-size);
705
+ height: var(--icon-size);
706
+
707
+ content: "";
708
+ background-color: var(--toolbar-icon-bg-color);
709
+ mask-size: cover;
710
+ mask-image: var(--loading-icon);
711
+ }
712
+
713
+ &.start::after {
714
+ inset-inline-start: 4px;
715
+ }
716
+
717
+ &.end::after {
718
+ inset-inline-end: 4px;
719
+ }
720
+ }
721
+
722
+ #thumbnailView,
723
+ #outlineView,
724
+ #attachmentsView,
725
+ #layersView {
726
+ position: absolute;
727
+ width: calc(100% - 8px);
728
+ inset-block: 0;
729
+ padding: 4px 4px 0;
730
+ overflow: auto;
731
+ user-select: none;
732
+ }
733
+
734
+ #thumbnailView {
735
+ width: calc(100% - 60px);
736
+ padding: 10px 30px 0;
737
+ }
738
+
739
+ #thumbnailView > a:is(:active, :focus) {
740
+ outline: 0;
741
+ }
742
+
743
+ .thumbnail {
744
+ /* Define these variables here, and not in :root, since the individual
745
+ thumbnails may have different sizes. */
746
+ --thumbnail-width: 0;
747
+ --thumbnail-height: 0;
748
+
749
+ float: var(--inline-start);
750
+ width: var(--thumbnail-width);
751
+ height: var(--thumbnail-height);
752
+ margin: 0 10px 5px;
753
+ padding: 1px;
754
+ border: 7px solid transparent;
755
+ border-radius: 2px;
756
+ }
757
+
758
+ #thumbnailView > a:last-of-type > .thumbnail {
759
+ margin-bottom: 10px;
760
+ }
761
+
762
+ a:focus > .thumbnail,
763
+ .thumbnail:hover {
764
+ border-color: var(--thumbnail-hover-color);
765
+ }
766
+
767
+ .thumbnail.selected {
768
+ border-color: var(--thumbnail-selected-color) !important;
769
+ }
770
+
771
+ .thumbnailImage {
772
+ width: var(--thumbnail-width);
773
+ height: var(--thumbnail-height);
774
+ opacity: 0.9;
775
+ }
776
+
777
+ a:focus > .thumbnail > .thumbnailImage,
778
+ .thumbnail:hover > .thumbnailImage {
779
+ opacity: 0.95;
780
+ }
781
+
782
+ .thumbnail.selected > .thumbnailImage {
783
+ opacity: 1 !important;
784
+ }
785
+
786
+ .thumbnail:not([data-loaded]) > .thumbnailImage {
787
+ width: calc(var(--thumbnail-width) - 2px);
788
+ height: calc(var(--thumbnail-height) - 2px);
789
+ border: 1px dashed rgb(132 132 132);
790
+ }
791
+
792
+ .treeWithDeepNesting > .treeItem,
793
+ .treeItem > .treeItems {
794
+ margin-inline-start: 20px;
795
+ }
796
+
797
+ .treeItem > a {
798
+ text-decoration: none;
799
+ display: inline-block;
800
+ /* Subtract the right padding (left, in RTL mode) of the container: */
801
+ min-width: calc(100% - 4px);
802
+ height: auto;
803
+ margin-bottom: 1px;
804
+ padding: 2px 0 5px;
805
+ padding-inline-start: 4px;
806
+ border-radius: 2px;
807
+ color: var(--treeitem-color);
808
+ font-size: 13px;
809
+ line-height: 15px;
810
+ user-select: none;
811
+ white-space: normal;
812
+ cursor: pointer;
813
+ }
814
+
815
+ #layersView .treeItem > a * {
816
+ cursor: pointer;
817
+ }
818
+
819
+ #layersView .treeItem > a > label {
820
+ padding-inline-start: 4px;
821
+ }
822
+
823
+ #layersView .treeItem > a > label > input {
824
+ float: var(--inline-start);
825
+ margin-top: 1px;
826
+ }
827
+
828
+ .treeItemToggler {
829
+ position: relative;
830
+ float: var(--inline-start);
831
+ height: 0;
832
+ width: 0;
833
+ color: rgb(255 255 255 / 0.5);
834
+ }
835
+
836
+ .treeItemToggler::before {
837
+ inset-inline-end: 4px;
838
+ mask-image: var(--treeitem-expanded-icon);
839
+ }
840
+
841
+ .treeItemToggler.treeItemsHidden::before {
842
+ mask-image: var(--treeitem-collapsed-icon);
843
+ transform: scaleX(var(--dir-factor));
844
+ }
845
+
846
+ .treeItemToggler.treeItemsHidden ~ .treeItems {
847
+ display: none;
848
+ }
849
+
850
+ .treeItem.selected > a {
851
+ background-color: var(--treeitem-selected-bg-color);
852
+ color: var(--treeitem-selected-color);
853
+ }
854
+
855
+ .treeItemToggler:hover,
856
+ .treeItemToggler:hover + a,
857
+ .treeItemToggler:hover ~ .treeItems,
858
+ .treeItem > a:hover {
859
+ background-color: var(--treeitem-bg-color);
860
+ background-clip: padding-box;
861
+ border-radius: 2px;
862
+ color: var(--treeitem-hover-color);
863
+ }
864
+
865
+ #outlineOptionsContainer {
866
+ display: none;
867
+
868
+ #sidebarContainer:has(#outlineView:not(.hidden)) & {
869
+ display: inline flex;
870
+ }
871
+ }
872
+
873
+ .dialogButton {
874
+ width: auto;
875
+ margin: 3px 4px 2px !important;
876
+ padding: 2px 11px;
877
+ color: var(--main-color);
878
+ background-color: var(--dialog-button-bg-color);
879
+ border: var(--dialog-button-border) !important;
880
+ }
881
+
882
+ dialog {
883
+ margin: auto;
884
+ padding: 15px;
885
+ border-spacing: 4px;
886
+ color: var(--main-color);
887
+ font: message-box;
888
+ font-size: 12px;
889
+ line-height: 14px;
890
+ background-color: var(--doorhanger-bg-color);
891
+ border: 1px solid rgb(0 0 0 / 0.5);
892
+ border-radius: 4px;
893
+ box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
894
+ }
895
+
896
+ dialog::backdrop {
897
+ background-color: rgb(0 0 0 / 0.2);
898
+ }
899
+
900
+ dialog > .row {
901
+ display: table-row;
902
+ }
903
+
904
+ dialog > .row > * {
905
+ display: table-cell;
906
+ }
907
+
908
+ dialog .toolbarField {
909
+ margin: 5px 0;
910
+ }
911
+
912
+ dialog .separator {
913
+ display: block;
914
+ margin: 4px 0;
915
+ height: 0;
916
+ width: 100%;
917
+ border-top: 1px solid var(--separator-color);
918
+ border-bottom: none;
919
+ }
920
+
921
+ dialog .buttonRow {
922
+ text-align: center;
923
+ vertical-align: middle;
924
+ }
925
+
926
+ dialog :link {
927
+ color: rgb(255 255 255);
928
+ }
929
+
930
+ #passwordDialog {
931
+ text-align: center;
932
+ }
933
+
934
+ #passwordDialog .toolbarField {
935
+ width: 200px;
936
+ }
937
+
938
+ #documentPropertiesDialog {
939
+ text-align: left;
940
+ }
941
+
942
+ #documentPropertiesDialog .row > * {
943
+ min-width: 100px;
944
+ text-align: start;
945
+ }
946
+
947
+ #documentPropertiesDialog .row > span {
948
+ width: 125px;
949
+ word-wrap: break-word;
950
+ }
951
+
952
+ #documentPropertiesDialog .row > p {
953
+ max-width: 225px;
954
+ word-wrap: break-word;
955
+ }
956
+
957
+ #documentPropertiesDialog .buttonRow {
958
+ margin-top: 10px;
959
+ }
960
+
961
+ .grab-to-pan-grab {
962
+ cursor: grab !important;
963
+ }
964
+
965
+ .grab-to-pan-grab
966
+ *:not(input):not(textarea):not(button):not(select):not(:link) {
967
+ cursor: inherit !important;
968
+ }
969
+
970
+ .grab-to-pan-grab:active,
971
+ .grab-to-pan-grabbing {
972
+ cursor: grabbing !important;
973
+ }
974
+
975
+ .grab-to-pan-grabbing {
976
+ position: fixed;
977
+ background: rgb(0 0 0 / 0);
978
+ display: block;
979
+ inset: 0;
980
+ overflow: hidden;
981
+ z-index: 50000; /* should be higher than anything else in PDF.js! */
982
+ }
983
+
984
+ .toolbarButton {
985
+ height: 100%;
986
+ aspect-ratio: 1;
987
+ display: flex;
988
+ align-items: center;
989
+ justify-content: center;
990
+ background: none;
991
+ border: none;
992
+ color: var(--main-color);
993
+ outline: none;
994
+ border-radius: 2px;
995
+ box-sizing: border-box;
996
+ font: message-box;
997
+ flex: none;
998
+ position: relative;
999
+ padding: 0;
1000
+
1001
+ > span {
1002
+ display: inline-block;
1003
+ width: 0;
1004
+ height: 0;
1005
+ overflow: hidden;
1006
+ }
1007
+
1008
+ &::before {
1009
+ opacity: var(--toolbar-icon-opacity);
1010
+ display: inline-block;
1011
+ width: var(--icon-size);
1012
+ height: var(--icon-size);
1013
+ content: "";
1014
+ background-color: var(--toolbar-icon-bg-color);
1015
+ mask-size: cover;
1016
+ mask-position: center;
1017
+ }
1018
+
1019
+ &.toggled {
1020
+ background-color: var(--toggled-btn-bg-color);
1021
+ color: var(--toggled-btn-color);
1022
+
1023
+ &::before {
1024
+ background-color: var(--toggled-btn-color);
1025
+ }
1026
+
1027
+ &:hover {
1028
+ outline: var(--toggled-hover-btn-outline) !important;
1029
+
1030
+ &:active {
1031
+ background-color: var(--toggled-hover-active-btn-color);
1032
+ }
1033
+ }
1034
+ }
1035
+
1036
+ &:is(:hover, :focus-visible) {
1037
+ background-color: var(--button-hover-color);
1038
+
1039
+ &::before {
1040
+ background-color: var(--toolbar-icon-hover-bg-color);
1041
+ }
1042
+ }
1043
+
1044
+ &:is([disabled="disabled"], [disabled]) {
1045
+ opacity: 0.5;
1046
+ pointer-events: none;
1047
+ }
1048
+
1049
+ &.labeled {
1050
+ width: 100%;
1051
+ min-height: var(--menuitem-height);
1052
+ justify-content: flex-start;
1053
+ gap: 8px;
1054
+ padding-inline-start: 12px;
1055
+ aspect-ratio: unset;
1056
+ text-align: start;
1057
+ white-space: normal;
1058
+ cursor: default;
1059
+
1060
+ &:is(a) {
1061
+ text-decoration: none;
1062
+
1063
+ &[href="#"] {
1064
+ opacity: 0.5;
1065
+ pointer-events: none;
1066
+ }
1067
+ }
1068
+
1069
+ &::before {
1070
+ opacity: var(--doorhanger-icon-opacity);
1071
+ }
1072
+
1073
+ &:is(:hover, :focus-visible) {
1074
+ background-color: var(--doorhanger-hover-bg-color);
1075
+ color: var(--doorhanger-hover-color);
1076
+ }
1077
+
1078
+ > span {
1079
+ display: inline-block;
1080
+ width: max-content;
1081
+ height: auto;
1082
+ }
1083
+ }
1084
+ }
1085
+
1086
+ .toolbarButtonWithContainer {
1087
+ height: 100%;
1088
+ aspect-ratio: 1;
1089
+ display: inline-block;
1090
+ position: relative;
1091
+ flex: none;
1092
+
1093
+ > .toolbarButton {
1094
+ width: 100%;
1095
+ height: 100%;
1096
+ }
1097
+
1098
+ .menu {
1099
+ padding-block: 5px;
1100
+ }
1101
+
1102
+ .menuContainer {
1103
+ width: 100%;
1104
+ height: auto;
1105
+ max-height: calc(
1106
+ var(--viewer-container-height) - var(--toolbar-height) -
1107
+ var(--doorhanger-height)
1108
+ );
1109
+ display: flex;
1110
+ flex-direction: column;
1111
+ box-sizing: border-box;
1112
+ overflow-y: auto;
1113
+ }
1114
+
1115
+ .editorParamsToolbar {
1116
+ height: auto;
1117
+ width: 220px;
1118
+ position: absolute;
1119
+ z-index: 30000;
1120
+ cursor: default;
1121
+
1122
+ #editorStampAddImage::before {
1123
+ mask-image: var(--editorParams-stampAddImage-icon);
1124
+ }
1125
+
1126
+ .editorParamsLabel {
1127
+ flex: none;
1128
+ font: menu;
1129
+ font-size: 13px;
1130
+ font-style: normal;
1131
+ font-weight: 400;
1132
+ line-height: 150%;
1133
+ color: var(--main-color);
1134
+ width: fit-content;
1135
+ inset-inline-start: 0;
1136
+ }
1137
+
1138
+ .editorParamsToolbarContainer {
1139
+ width: 100%;
1140
+ height: auto;
1141
+ display: flex;
1142
+ flex-direction: column;
1143
+ box-sizing: border-box;
1144
+ padding-inline: 10px;
1145
+ padding-block: 10px;
1146
+
1147
+ > .editorParamsSetter {
1148
+ min-height: 26px;
1149
+ display: flex;
1150
+ align-items: center;
1151
+ justify-content: space-between;
1152
+ }
1153
+
1154
+ .editorParamsColor {
1155
+ width: 32px;
1156
+ height: 32px;
1157
+ flex: none;
1158
+ padding: 0;
1159
+ }
1160
+
1161
+ .editorParamsSlider {
1162
+ background-color: transparent;
1163
+ width: 90px;
1164
+ flex: 0 1 0;
1165
+ font: message-box;
1166
+
1167
+ &::-moz-range-progress {
1168
+ background-color: black;
1169
+ }
1170
+
1171
+ /*#if !MOZCENTRAL*/
1172
+ &::-webkit-slider-runnable-track,
1173
+ /*#endif*/
1174
+ &::-moz-range-track {
1175
+ background-color: black;
1176
+ }
1177
+
1178
+ /*#if !MOZCENTRAL*/
1179
+ &::-webkit-slider-thumb,
1180
+ /*#endif*/
1181
+ &::-moz-range-thumb {
1182
+ background-color: white;
1183
+ }
1184
+ }
1185
+ }
1186
+ }
1187
+ }
1188
+
1189
+ #secondaryToolbar {
1190
+ height: auto;
1191
+ width: 220px;
1192
+ position: absolute;
1193
+ z-index: 30000;
1194
+ cursor: default;
1195
+ min-height: 26px;
1196
+ max-height: calc(var(--viewer-container-height) - 40px);
1197
+
1198
+ #secondaryToolbarButtonContainer {
1199
+ /*#if GENERIC*/
1200
+ #secondaryOpenFile::before {
1201
+ mask-image: var(--toolbarButton-openFile-icon);
1202
+ }
1203
+ /*#endif*/
1204
+
1205
+ #secondaryPrint::before {
1206
+ mask-image: var(--toolbarButton-print-icon);
1207
+ }
1208
+
1209
+ #secondaryDownload::before {
1210
+ mask-image: var(--toolbarButton-download-icon);
1211
+ }
1212
+
1213
+ #presentationMode::before {
1214
+ mask-image: var(--toolbarButton-presentationMode-icon);
1215
+ }
1216
+
1217
+ #viewBookmark::before {
1218
+ mask-image: var(--toolbarButton-bookmark-icon);
1219
+ }
1220
+
1221
+ #firstPage::before {
1222
+ mask-image: var(--secondaryToolbarButton-firstPage-icon);
1223
+ }
1224
+
1225
+ #lastPage::before {
1226
+ mask-image: var(--secondaryToolbarButton-lastPage-icon);
1227
+ }
1228
+
1229
+ #pageRotateCcw::before {
1230
+ mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1231
+ }
1232
+
1233
+ #pageRotateCw::before {
1234
+ mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1235
+ }
1236
+
1237
+ #cursorSelectTool::before {
1238
+ mask-image: var(--secondaryToolbarButton-selectTool-icon);
1239
+ }
1240
+
1241
+ #cursorHandTool::before {
1242
+ mask-image: var(--secondaryToolbarButton-handTool-icon);
1243
+ }
1244
+
1245
+ #scrollPage::before {
1246
+ mask-image: var(--secondaryToolbarButton-scrollPage-icon);
1247
+ }
1248
+
1249
+ #scrollVertical::before {
1250
+ mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1251
+ }
1252
+
1253
+ #scrollHorizontal::before {
1254
+ mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1255
+ }
1256
+
1257
+ #scrollWrapped::before {
1258
+ mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1259
+ }
1260
+
1261
+ #spreadNone::before {
1262
+ mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1263
+ }
1264
+
1265
+ #spreadOdd::before {
1266
+ mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1267
+ }
1268
+
1269
+ #spreadEven::before {
1270
+ mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1271
+ }
1272
+
1273
+ #imageAltTextSettings::before {
1274
+ mask-image: var(--secondaryToolbarButton-imageAltTextSettings-icon);
1275
+ }
1276
+
1277
+ #documentProperties::before {
1278
+ mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1279
+ }
1280
+ }
1281
+ }
1282
+
1283
+ #findbar {
1284
+ --input-horizontal-padding: 4px;
1285
+ --findbar-padding: 2px;
1286
+
1287
+ width: max-content;
1288
+ max-width: 90vw;
1289
+ min-height: var(--toolbar-height);
1290
+ height: auto;
1291
+ position: absolute;
1292
+ z-index: 30000;
1293
+ cursor: default;
1294
+ padding: 0;
1295
+ min-width: 300px;
1296
+ background-color: var(--toolbar-bg-color);
1297
+ box-sizing: border-box;
1298
+ flex-wrap: wrap;
1299
+ justify-content: flex-start;
1300
+
1301
+ > * {
1302
+ height: var(--toolbar-height);
1303
+ padding: var(--findbar-padding);
1304
+ }
1305
+
1306
+ #findInputContainer {
1307
+ margin-inline-start: 2px;
1308
+
1309
+ #findPreviousButton::before {
1310
+ mask-image: var(--findbarButton-previous-icon);
1311
+ }
1312
+
1313
+ #findNextButton::before {
1314
+ mask-image: var(--findbarButton-next-icon);
1315
+ }
1316
+
1317
+ #findInput {
1318
+ width: 200px;
1319
+ padding: 5px var(--input-horizontal-padding);
1320
+
1321
+ /*#if !MOZCENTRAL*/
1322
+ &::-webkit-input-placeholder {
1323
+ color: rgb(191 191 191);
1324
+ }
1325
+ /*#endif*/
1326
+ &::placeholder {
1327
+ font-style: normal;
1328
+ }
1329
+
1330
+ .loadingInput:has(> &[data-status="pending"])::after {
1331
+ display: inline;
1332
+ visibility: visible;
1333
+ inset-inline-end: calc(var(--input-horizontal-padding) + 1px);
1334
+ }
1335
+
1336
+ &[data-status="notFound"] {
1337
+ background-color: rgb(255 102 102);
1338
+ }
1339
+ }
1340
+ }
1341
+
1342
+ #findbarMessageContainer {
1343
+ display: none;
1344
+ gap: 4px;
1345
+
1346
+ &:has(> :is(#findResultsCount, #findMsg):not(:empty)) {
1347
+ display: inline flex;
1348
+ }
1349
+
1350
+ #findResultsCount {
1351
+ background-color: rgb(217 217 217);
1352
+ color: rgb(82 82 82);
1353
+ padding-block: 4px;
1354
+
1355
+ &:empty {
1356
+ display: none;
1357
+ }
1358
+ }
1359
+
1360
+ #findMsg {
1361
+ &[data-status="notFound"] {
1362
+ font-weight: bold;
1363
+ }
1364
+
1365
+ &:empty {
1366
+ display: none;
1367
+ }
1368
+ }
1369
+ }
1370
+
1371
+ &.wrapContainers {
1372
+ flex-direction: column;
1373
+ align-items: flex-start;
1374
+ height: max-content;
1375
+
1376
+ .toolbarLabel {
1377
+ margin: 0 4px;
1378
+ }
1379
+
1380
+ #findbarMessageContainer {
1381
+ flex-wrap: wrap;
1382
+ flex-flow: column nowrap;
1383
+ align-items: flex-start;
1384
+ height: max-content;
1385
+
1386
+ #findResultsCount {
1387
+ height: calc(var(--toolbar-height) - 2 * var(--findbar-padding));
1388
+ }
1389
+
1390
+ #findMsg {
1391
+ min-height: var(--toolbar-height);
1392
+ }
1393
+ }
1394
+ }
1395
+ }
1396
+
1397
+ @page {
1398
+ margin: 0;
1399
+ }
1400
+
1401
+ #printContainer {
1402
+ display: none;
1403
+ }
1404
+
1405
+ @media print {
1406
+ body {
1407
+ background: rgb(0 0 0 / 0) none;
1408
+ }
1409
+
1410
+ body[data-pdfjsprinting] #outerContainer {
1411
+ display: none;
1412
+ }
1413
+
1414
+ body[data-pdfjsprinting] #printContainer {
1415
+ display: block;
1416
+ }
1417
+
1418
+ #printContainer {
1419
+ height: 100%;
1420
+ }
1421
+
1422
+ /* wrapper around (scaled) print canvas elements */
1423
+ #printContainer > .printedPage {
1424
+ page-break-after: always;
1425
+ page-break-inside: avoid;
1426
+
1427
+ /* The wrapper always cover the whole page. */
1428
+ height: 100%;
1429
+ width: 100%;
1430
+
1431
+ display: flex;
1432
+ flex-direction: column;
1433
+ justify-content: center;
1434
+ align-items: center;
1435
+ }
1436
+
1437
+ #printContainer > .xfaPrintedPage .xfaPage {
1438
+ position: absolute;
1439
+ }
1440
+
1441
+ #printContainer > .xfaPrintedPage {
1442
+ page-break-after: always;
1443
+ page-break-inside: avoid;
1444
+ width: 100%;
1445
+ height: 100%;
1446
+ position: relative;
1447
+ }
1448
+
1449
+ #printContainer > .printedPage :is(canvas, img) {
1450
+ /* The intrinsic canvas / image size will make sure that we fit the page. */
1451
+ max-width: 100%;
1452
+ max-height: 100%;
1453
+
1454
+ direction: ltr;
1455
+ display: block;
1456
+ }
1457
+ }
1458
+
1459
+ .visibleMediumView {
1460
+ display: none !important;
1461
+ }
1462
+
1463
+ .toolbarLabel {
1464
+ width: max-content;
1465
+ min-width: 16px;
1466
+ height: 100%;
1467
+ padding-inline: 4px;
1468
+ margin: 2px;
1469
+ border-radius: 2px;
1470
+ color: var(--main-color);
1471
+ font-size: 12px;
1472
+ line-height: 14px;
1473
+ text-align: left;
1474
+ user-select: none;
1475
+ cursor: default;
1476
+ box-sizing: border-box;
1477
+
1478
+ display: inline flex;
1479
+ flex-direction: column;
1480
+ align-items: center;
1481
+ justify-content: center;
1482
+
1483
+ > label {
1484
+ width: 100%;
1485
+ }
1486
+ }
1487
+
1488
+ .toolbarHorizontalGroup {
1489
+ height: 100%;
1490
+ display: inline flex;
1491
+ flex-direction: row;
1492
+ align-items: center;
1493
+ justify-content: space-between;
1494
+ gap: 1px;
1495
+ box-sizing: border-box;
1496
+ }
1497
+
1498
+ .dropdownToolbarButton {
1499
+ display: inline flex;
1500
+ flex-direction: row;
1501
+ align-items: center;
1502
+ justify-content: center;
1503
+ position: relative;
1504
+
1505
+ width: fit-content;
1506
+ min-width: 140px;
1507
+ padding: 0;
1508
+ background-color: var(--dropdown-btn-bg-color);
1509
+ border: var(--dropdown-btn-border);
1510
+ border-radius: 2px;
1511
+ color: var(--main-color);
1512
+ font-size: 12px;
1513
+ line-height: 14px;
1514
+ user-select: none;
1515
+ cursor: default;
1516
+ box-sizing: border-box;
1517
+ outline: none;
1518
+
1519
+ &:hover {
1520
+ background-color: var(--button-hover-color);
1521
+ }
1522
+
1523
+ > select {
1524
+ appearance: none;
1525
+ width: inherit;
1526
+ min-width: inherit;
1527
+ height: 28px;
1528
+ font: message-box;
1529
+ font-size: 12px;
1530
+ color: var(--main-color);
1531
+ margin: 0;
1532
+ padding-block: 1px 2px;
1533
+ padding-inline: 6px 38px;
1534
+ border: none;
1535
+ outline: none;
1536
+ background-color: var(--dropdown-btn-bg-color);
1537
+
1538
+ > option {
1539
+ background: var(--doorhanger-bg-color);
1540
+ color: var(--main-color);
1541
+ }
1542
+
1543
+ &:is(:hover, :focus-visible) {
1544
+ background-color: var(--button-hover-color);
1545
+ color: var(--toggled-btn-color);
1546
+ }
1547
+ }
1548
+
1549
+ &::after {
1550
+ /* All matching images have a size of 16x16
1551
+ * All relevant containers have a size of 28x28 */
1552
+ position: absolute;
1553
+ display: inline;
1554
+ width: var(--icon-size);
1555
+ height: var(--icon-size);
1556
+
1557
+ content: "";
1558
+ background-color: var(--toolbar-icon-bg-color);
1559
+ mask-size: cover;
1560
+
1561
+ inset-inline-end: 4px;
1562
+ pointer-events: none;
1563
+ mask-image: var(--toolbarButton-menuArrow-icon);
1564
+ }
1565
+
1566
+ &:is(:hover, :focus-visible, :active)::after {
1567
+ background-color: var(--toolbar-icon-hover-bg-color);
1568
+ }
1569
+ }
1570
+
1571
+ #toolbarContainer {
1572
+ --menuitem-height: calc(var(--toolbar-height) - 6px);
1573
+
1574
+ width: 100%;
1575
+ height: var(--toolbar-height);
1576
+ padding: var(--toolbar-vertical-padding) var(--toolbar-horizontal-padding);
1577
+ position: relative;
1578
+ box-sizing: border-box;
1579
+ font: message-box;
1580
+ background-color: var(--toolbar-bg-color);
1581
+ box-shadow: var(--toolbar-box-shadow);
1582
+ border-bottom: var(--toolbar-border-bottom);
1583
+
1584
+ #toolbarViewer {
1585
+ width: 100%;
1586
+ height: 100%;
1587
+ justify-content: space-between;
1588
+
1589
+ > * {
1590
+ flex: none;
1591
+ }
1592
+
1593
+ input {
1594
+ font: message-box;
1595
+ }
1596
+
1597
+ .toolbarButtonSpacer {
1598
+ width: 30px;
1599
+ display: block;
1600
+ height: 1px;
1601
+ }
1602
+
1603
+ #toolbarViewerLeft #numPages.toolbarLabel {
1604
+ padding-inline-start: 3px;
1605
+ flex: none;
1606
+ }
1607
+ }
1608
+
1609
+ #loadingBar {
1610
+ /* Define these variables here, and not in :root, to avoid reflowing the
1611
+ entire viewer when updating progress (see issue 15958). */
1612
+ --progressBar-percent: 0%;
1613
+ --progressBar-end-offset: 0;
1614
+
1615
+ position: absolute;
1616
+ top: var(--toolbar-height);
1617
+ inset-inline: 0 var(--progressBar-end-offset);
1618
+ height: 4px;
1619
+ background-color: var(--progressBar-bg-color);
1620
+ border-bottom: 1px solid var(--toolbar-border-color);
1621
+ transition-property: inset-inline-start;
1622
+ transition-duration: var(--sidebar-transition-duration);
1623
+ transition-timing-function: var(--sidebar-transition-timing-function);
1624
+
1625
+ .progress {
1626
+ position: absolute;
1627
+ top: 0;
1628
+ inset-inline-start: 0;
1629
+ width: 100%;
1630
+ transform: scaleX(var(--progressBar-percent));
1631
+ transform-origin: calc(50% - 50% * var(--dir-factor)) 0;
1632
+ height: 100%;
1633
+ background-color: var(--progressBar-color);
1634
+ overflow: hidden;
1635
+ transition: transform 200ms;
1636
+ }
1637
+
1638
+ &.indeterminate .progress {
1639
+ transform: none;
1640
+ background-color: var(--progressBar-bg-color);
1641
+ transition: none;
1642
+
1643
+ .glimmer {
1644
+ position: absolute;
1645
+ top: 0;
1646
+ inset-inline-start: 0;
1647
+ height: 100%;
1648
+ width: calc(100% + 150px);
1649
+ background: repeating-linear-gradient(
1650
+ 135deg,
1651
+ var(--progressBar-blend-color) 0,
1652
+ var(--progressBar-bg-color) 5px,
1653
+ var(--progressBar-bg-color) 45px,
1654
+ var(--progressBar-color) 55px,
1655
+ var(--progressBar-color) 95px,
1656
+ var(--progressBar-blend-color) 100px
1657
+ );
1658
+ animation: progressIndeterminate 1s linear infinite;
1659
+ }
1660
+ }
1661
+ }
1662
+ }
1663
+
1664
+ #secondaryToolbar {
1665
+ #firstPage::before {
1666
+ mask-image: var(--secondaryToolbarButton-firstPage-icon);
1667
+ }
1668
+
1669
+ #lastPage::before {
1670
+ mask-image: var(--secondaryToolbarButton-lastPage-icon);
1671
+ }
1672
+
1673
+ #pageRotateCcw::before {
1674
+ mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
1675
+ }
1676
+
1677
+ #pageRotateCw::before {
1678
+ mask-image: var(--secondaryToolbarButton-rotateCw-icon);
1679
+ }
1680
+
1681
+ #cursorSelectTool::before {
1682
+ mask-image: var(--secondaryToolbarButton-selectTool-icon);
1683
+ }
1684
+
1685
+ #cursorHandTool::before {
1686
+ mask-image: var(--secondaryToolbarButton-handTool-icon);
1687
+ }
1688
+
1689
+ #scrollPage::before {
1690
+ mask-image: var(--secondaryToolbarButton-scrollPage-icon);
1691
+ }
1692
+
1693
+ #scrollVertical::before {
1694
+ mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
1695
+ }
1696
+
1697
+ #scrollHorizontal::before {
1698
+ mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
1699
+ }
1700
+
1701
+ #scrollWrapped::before {
1702
+ mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
1703
+ }
1704
+
1705
+ #spreadNone::before {
1706
+ mask-image: var(--secondaryToolbarButton-spreadNone-icon);
1707
+ }
1708
+
1709
+ #spreadOdd::before {
1710
+ mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
1711
+ }
1712
+
1713
+ #spreadEven::before {
1714
+ mask-image: var(--secondaryToolbarButton-spreadEven-icon);
1715
+ }
1716
+
1717
+ #documentProperties::before {
1718
+ mask-image: var(--secondaryToolbarButton-documentProperties-icon);
1719
+ }
1720
+ }
1721
+
1722
+ @media all and (max-width: 840px) {
1723
+ #sidebarContainer {
1724
+ background-color: var(--sidebar-narrow-bg-color);
1725
+ }
1726
+ #outerContainer.sidebarOpen #viewerContainer {
1727
+ inset-inline-start: 0 !important;
1728
+ }
1729
+ }
1730
+
1731
+ @media all and (max-width: 750px) {
1732
+ #outerContainer .hiddenMediumView {
1733
+ display: none !important;
1734
+ }
1735
+ #outerContainer .visibleMediumView:not(.hidden, [hidden]) {
1736
+ display: inline-block !important;
1737
+ }
1738
+ }
1739
+
1740
+ @media all and (max-width: 690px) {
1741
+ .hiddenSmallView,
1742
+ .hiddenSmallView * {
1743
+ display: none !important;
1744
+ }
1745
+
1746
+ #toolbarContainer #toolbarViewer .toolbarButtonSpacer {
1747
+ width: 0;
1748
+ }
1749
+ }
1750
+
1751
+ @media all and (max-width: 560px) {
1752
+ #scaleSelectContainer {
1753
+ display: none;
1754
+ }
1755
+ }