@vitrosoftware/common-ui-ts 1.1.70 → 1.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/css/common.css +8 -0
  2. package/css/std/controls/action-handler/action-handler.css +2 -2
  3. package/css/std/controls/avatar/avatar.css +1 -1
  4. package/css/std/controls/breadcrumbs/breadcrumbs.css +19 -3
  5. package/css/std/controls/date-picker/date-picker.css +12 -0
  6. package/css/std/controls/dialog/dialog-content.css +1 -1
  7. package/css/std/controls/dialog/dialog.css +1 -1
  8. package/css/std/controls/login/login.css +4 -16
  9. package/css/std/controls/pdf-viewer/compare.css +87 -31
  10. package/css/std/controls/pdf-viewer/custom.css +145 -9
  11. package/css/std/controls/pdf-viewer/img/annotation-check.svg +11 -0
  12. package/css/std/controls/pdf-viewer/img/annotation-comment.svg +16 -0
  13. package/css/std/controls/pdf-viewer/img/annotation-help.svg +26 -0
  14. package/css/std/controls/pdf-viewer/img/annotation-insert.svg +10 -0
  15. package/css/std/controls/pdf-viewer/img/annotation-key.svg +11 -0
  16. package/css/std/controls/pdf-viewer/img/annotation-newparagraph.svg +11 -0
  17. package/css/std/controls/pdf-viewer/img/annotation-noicon.svg +7 -0
  18. package/css/std/controls/pdf-viewer/img/annotation-note.svg +42 -0
  19. package/css/std/controls/pdf-viewer/img/annotation-paperclip.svg +6 -0
  20. package/css/std/controls/pdf-viewer/img/annotation-paragraph.svg +16 -0
  21. package/css/std/controls/pdf-viewer/img/annotation-pushpin.svg +7 -0
  22. package/css/std/controls/pdf-viewer/img/cursor-editorFreeText.svg +3 -0
  23. package/css/std/controls/pdf-viewer/img/cursor-editorInk.svg +4 -0
  24. package/css/std/controls/pdf-viewer/img/draw-annotation-arrow.png +0 -0
  25. package/css/std/controls/pdf-viewer/img/draw-annotation-cloud.png +0 -0
  26. package/css/std/controls/pdf-viewer/img/draw-annotation-ellipse.png +0 -0
  27. package/css/std/controls/pdf-viewer/img/draw-annotation-line.png +0 -0
  28. package/css/std/controls/pdf-viewer/img/draw-annotation-polygon.png +0 -0
  29. package/css/std/controls/pdf-viewer/img/draw-annotation-rect.png +0 -0
  30. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-arrow.png +0 -0
  31. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-cloud.png +0 -0
  32. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-ellipse.png +0 -0
  33. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-line.png +0 -0
  34. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-polygon.png +0 -0
  35. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-rect.png +0 -0
  36. package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar.png +0 -0
  37. package/css/std/controls/pdf-viewer/img/dropdown-arrow.png +0 -0
  38. package/css/std/controls/pdf-viewer/img/findbarButton-next.svg +3 -0
  39. package/css/std/controls/pdf-viewer/img/findbarButton-previous.svg +3 -0
  40. package/css/std/controls/pdf-viewer/img/gv-toolbarButton-download.svg +3 -0
  41. package/css/std/controls/pdf-viewer/img/gv-toolbarButton-openinapp.svg +11 -0
  42. package/css/std/controls/pdf-viewer/img/loading-dark.svg +24 -0
  43. package/css/std/controls/pdf-viewer/img/loading-icon.gif +0 -0
  44. package/css/std/controls/pdf-viewer/img/loading.svg +1 -0
  45. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-documentProperties.svg +3 -0
  46. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-firstPage.svg +3 -0
  47. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-handTool.svg +3 -0
  48. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-lastPage.svg +3 -0
  49. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCcw.svg +3 -0
  50. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCw.svg +3 -0
  51. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  52. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollPage.svg +3 -0
  53. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollVertical.svg +3 -0
  54. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollWrapped.svg +3 -0
  55. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-selectTool.svg +3 -0
  56. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadEven.svg +3 -0
  57. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadNone.svg +3 -0
  58. package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadOdd.svg +3 -0
  59. package/css/std/controls/pdf-viewer/img/shadow.png +0 -0
  60. package/css/std/controls/pdf-viewer/img/spinner.gif +0 -0
  61. package/css/std/controls/pdf-viewer/img/toolbarButton-bookmark.svg +3 -0
  62. package/css/std/controls/pdf-viewer/img/toolbarButton-currentOutlineItem.svg +3 -0
  63. package/css/std/controls/pdf-viewer/img/toolbarButton-download.svg +4 -0
  64. package/css/std/controls/pdf-viewer/img/toolbarButton-editorFreeText.svg +3 -0
  65. package/css/std/controls/pdf-viewer/img/toolbarButton-editorInk.svg +4 -0
  66. package/css/std/controls/pdf-viewer/img/toolbarButton-editorStamp.svg +8 -0
  67. package/css/std/controls/pdf-viewer/img/toolbarButton-menuArrow.svg +3 -0
  68. package/css/std/controls/pdf-viewer/img/toolbarButton-openFile.svg +3 -0
  69. package/css/std/controls/pdf-viewer/img/toolbarButton-pageDown.svg +3 -0
  70. package/css/std/controls/pdf-viewer/img/toolbarButton-pageUp.svg +3 -0
  71. package/css/std/controls/pdf-viewer/img/toolbarButton-presentationMode.svg +3 -0
  72. package/css/std/controls/pdf-viewer/img/toolbarButton-print.svg +3 -0
  73. package/css/std/controls/pdf-viewer/img/toolbarButton-search.svg +3 -0
  74. package/css/std/controls/pdf-viewer/img/toolbarButton-secondaryToolbarToggle.svg +3 -0
  75. package/css/std/controls/pdf-viewer/img/toolbarButton-sidebarToggle.svg +3 -0
  76. package/css/std/controls/pdf-viewer/img/toolbarButton-viewAttachments.svg +3 -0
  77. package/css/std/controls/pdf-viewer/img/toolbarButton-viewLayers.svg +3 -0
  78. package/css/std/controls/pdf-viewer/img/toolbarButton-viewOutline.svg +3 -0
  79. package/css/std/controls/pdf-viewer/img/toolbarButton-viewThumbnail.svg +3 -0
  80. package/css/std/controls/pdf-viewer/img/toolbarButton-zoomIn.svg +3 -0
  81. package/css/std/controls/pdf-viewer/img/toolbarButton-zoomOut.svg +3 -0
  82. package/css/std/controls/pdf-viewer/img/treeitem-collapsed.svg +1 -0
  83. package/css/std/controls/pdf-viewer/img/treeitem-expanded.svg +1 -0
  84. package/css/std/controls/pdf-viewer/pdf-viewer.css +29 -6
  85. package/css/std/controls/pdf-viewer/print.css +11 -0
  86. package/css/std/controls/pdf-viewer/sketchpad.css +8 -0
  87. package/css/std/controls/pdf-viewer/viewer-theme.css +1 -1
  88. package/css/std/controls/pdf-viewer/viewer.css +690 -970
  89. package/css/std/controls/pdf-viewer/zoom.css +4 -0
  90. package/css/std/controls/route-item/route-item.css +112 -0
  91. package/css/std/controls/splitter/splitter.css +71 -0
  92. package/css/std/controls/table-view/treegrid.css +153 -3
  93. package/css/std/controls/time-picker/time-picker.css +42 -30
  94. package/css/std/controls/uploader/uploader.css +1 -1
  95. package/css/white/controls/splitter/splitter.css +106 -0
  96. package/dist/constants/Placement.d.ts +7 -0
  97. package/dist/constants/Unit.d.ts +3 -0
  98. package/dist/controls/DatePicker/DatePicker.d.ts +1 -0
  99. package/dist/controls/FieldIterator/FieldIterator.d.ts +1 -0
  100. package/dist/controls/LookupPicker/LookupPicker.d.ts +1 -0
  101. package/dist/controls/LookupPicker/ValueList.d.ts +4 -1
  102. package/dist/controls/RouteItem/RouteItem.d.ts +17 -0
  103. package/dist/controls/Splitter/Splitter.d.ts +18 -0
  104. package/dist/controls/Splitter/SplitterConstants.d.ts +9 -0
  105. package/dist/controls/TableView/TableViewConstants.d.ts +4 -2
  106. package/dist/controls/TimePicker/TimePicker.d.ts +1 -0
  107. package/dist/controls/UserLookupPicker/UserLookupPicker.d.ts +1 -0
  108. package/dist/index.css +279 -55
  109. package/dist/index.d.ts +5 -0
  110. package/dist/index.js +1043 -655
  111. package/dist/index.js.map +1 -1
  112. package/lib/pdf-js/pdf.js +8890 -7075
  113. package/lib/third-party.js +8888 -7073
  114. package/package.json +4 -3
  115. package/src/controls/PdfViewer/js/pdf-viewer.js +7121 -5877
@@ -13,17 +13,22 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- html[dir='ltr'] * {
17
- box-sizing: revert;
16
+ :root {
17
+ --highlight-bg-color: rgba(180, 0, 170, 1);
18
+ --highlight-selected-bg-color: rgba(0, 100, 0, 1);
19
+ }
20
+
21
+ @media screen and (forced-colors: active) {
22
+ :root {
23
+ --highlight-bg-color: Highlight;
24
+ --highlight-selected-bg-color: ButtonText;
25
+ }
18
26
  }
19
27
 
20
28
  .textLayer {
21
29
  position: absolute;
22
30
  text-align: initial;
23
- left: 0;
24
- top: 0;
25
- right: 0;
26
- bottom: 0;
31
+ inset: 0;
27
32
  overflow: hidden;
28
33
  opacity: 0.25;
29
34
  line-height: 1;
@@ -31,10 +36,11 @@ html[dir='ltr'] * {
31
36
  -moz-text-size-adjust: none;
32
37
  text-size-adjust: none;
33
38
  forced-color-adjust: none;
39
+ transform-origin: 0 0;
40
+ z-index: 2;
34
41
  }
35
42
 
36
- .textLayer span,
37
- .textLayer br {
43
+ .textLayer :is(span, br) {
38
44
  color: transparent;
39
45
  position: absolute;
40
46
  white-space: pre;
@@ -52,7 +58,7 @@ html[dir='ltr'] * {
52
58
  .textLayer .highlight {
53
59
  margin: -1px;
54
60
  padding: 1px;
55
- background-color: rgba(180, 0, 170, 1);
61
+ background-color: var(--highlight-bg-color);
56
62
  border-radius: 4px;
57
63
  }
58
64
 
@@ -73,7 +79,7 @@ html[dir='ltr'] * {
73
79
  }
74
80
 
75
81
  .textLayer .highlight.selected {
76
- background-color: rgba(0, 100, 0, 1);
82
+ background-color: var(--highlight-selected-bg-color);
77
83
  }
78
84
 
79
85
  .textLayer ::-moz-selection {
@@ -97,10 +103,7 @@ html[dir='ltr'] * {
97
103
  .textLayer .endOfContent {
98
104
  display: block;
99
105
  position: absolute;
100
- left: 0;
101
- top: 100%;
102
- right: 0;
103
- bottom: 0;
106
+ inset: 100% 0 0;
104
107
  z-index: -1;
105
108
  cursor: default;
106
109
  -webkit-user-select: none;
@@ -120,22 +123,58 @@ html[dir='ltr'] * {
120
123
  --input-unfocused-border-color: transparent;
121
124
  --input-disabled-border-color: transparent;
122
125
  --input-hover-border-color: black;
126
+ --link-outline: none;
123
127
  }
124
128
 
125
- @media (forced-colors: active) {
129
+ @media screen and (forced-colors: active) {
126
130
  :root {
127
131
  --input-focus-border-color: CanvasText;
128
132
  --input-unfocused-border-color: ActiveText;
129
133
  --input-disabled-border-color: GrayText;
130
134
  --input-hover-border-color: Highlight;
135
+ --link-outline: 1.5px solid LinkText;
136
+ --hcm-highligh-filter: invert(100%);
131
137
  }
132
- .annotationLayer .textWidgetAnnotation input:required,
133
- .annotationLayer .textWidgetAnnotation textarea:required,
138
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
134
139
  .annotationLayer .choiceWidgetAnnotation select:required,
135
- .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
136
- .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
140
+ .annotationLayer
141
+ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
142
+ input:required {
137
143
  outline: 1.5px solid selectedItem;
138
144
  }
145
+
146
+ .annotationLayer .linkAnnotation:hover {
147
+ -webkit-backdrop-filter: var(--hcm-highligh-filter);
148
+ backdrop-filter: var(--hcm-highligh-filter);
149
+ }
150
+
151
+ .annotationLayer .linkAnnotation > a:hover {
152
+ opacity: 0 !important;
153
+ background: none !important;
154
+ box-shadow: none;
155
+ }
156
+
157
+ .annotationLayer .popupAnnotation .popup {
158
+ outline: calc(1.5px * var(--scale-factor)) solid CanvasText !important;
159
+ background-color: ButtonFace !important;
160
+ color: ButtonText !important;
161
+ }
162
+
163
+ .annotationLayer .highlightArea:hover::after {
164
+ position: absolute;
165
+ top: 0;
166
+ left: 0;
167
+ width: 100%;
168
+ height: 100%;
169
+ -webkit-backdrop-filter: var(--hcm-highligh-filter);
170
+ backdrop-filter: var(--hcm-highligh-filter);
171
+ content: "";
172
+ pointer-events: none;
173
+ }
174
+
175
+ .annotationLayer .popupAnnotation.focused .popup {
176
+ outline: calc(3px * var(--scale-factor)) solid Highlight !important;
177
+ }
139
178
  }
140
179
 
141
180
  .annotationLayer {
@@ -144,6 +183,24 @@ html[dir='ltr'] * {
144
183
  left: 0;
145
184
  pointer-events: none;
146
185
  transform-origin: 0 0;
186
+ z-index: 3;
187
+ }
188
+
189
+ .annotationLayer[data-main-rotation="90"] .norotate {
190
+ transform: rotate(270deg) translateX(-100%);
191
+ }
192
+ .annotationLayer[data-main-rotation="180"] .norotate {
193
+ transform: rotate(180deg) translate(-100%, -100%);
194
+ }
195
+ .annotationLayer[data-main-rotation="270"] .norotate {
196
+ transform: rotate(90deg) translateY(-100%);
197
+ }
198
+
199
+ .annotationLayer canvas {
200
+ position: absolute;
201
+ width: 100%;
202
+ height: 100%;
203
+ pointer-events: none;
147
204
  }
148
205
 
149
206
  .annotationLayer section {
@@ -154,8 +211,11 @@ html[dir='ltr'] * {
154
211
  transform-origin: 0 0;
155
212
  }
156
213
 
157
- .annotationLayer .linkAnnotation > a,
158
- .annotationLayer .buttonWidgetAnnotation.pushButton > a {
214
+ .annotationLayer .linkAnnotation {
215
+ outline: var(--link-outline);
216
+ }
217
+
218
+ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
159
219
  position: absolute;
160
220
  font-size: 1em;
161
221
  top: 0;
@@ -164,30 +224,34 @@ html[dir='ltr'] * {
164
224
  height: 100%;
165
225
  }
166
226
 
167
- .annotationLayer .buttonWidgetAnnotation.pushButton > canvas {
168
- width: 100%;
169
- height: 100%;
170
- }
171
-
172
- .annotationLayer .linkAnnotation > a:hover,
173
- .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
227
+ .annotationLayer
228
+ :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
229
+ > a:hover {
174
230
  opacity: 0.2;
175
- background: rgba(255, 255, 0, 1);
231
+ background-color: rgba(255, 255, 0, 1);
176
232
  box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
177
233
  }
178
234
 
235
+ .annotationLayer .linkAnnotation.hasBorder:hover {
236
+ background-color: rgba(255, 255, 0, 0.2);
237
+ }
238
+
239
+ .annotationLayer .hasBorder {
240
+ background-size: 100% 100%;
241
+ }
242
+
179
243
  .annotationLayer .textAnnotation img {
180
244
  position: absolute;
181
245
  cursor: pointer;
182
246
  width: 100%;
183
247
  height: 100%;
248
+ top: 0;
249
+ left: 0;
184
250
  }
185
251
 
186
- .annotationLayer .textWidgetAnnotation input,
187
- .annotationLayer .textWidgetAnnotation textarea,
252
+ .annotationLayer .textWidgetAnnotation :is(input, textarea),
188
253
  .annotationLayer .choiceWidgetAnnotation select,
189
- .annotationLayer .buttonWidgetAnnotation.checkBox input,
190
- .annotationLayer .buttonWidgetAnnotation.radioButton input {
254
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
191
255
  background-image: var(--annotation-unfocused-field-background);
192
256
  border: 2px solid var(--input-unfocused-border-color);
193
257
  box-sizing: border-box;
@@ -198,11 +262,11 @@ html[dir='ltr'] * {
198
262
  width: 100%;
199
263
  }
200
264
 
201
- .annotationLayer .textWidgetAnnotation input:required,
202
- .annotationLayer .textWidgetAnnotation textarea:required,
265
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
203
266
  .annotationLayer .choiceWidgetAnnotation select:required,
204
- .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
205
- .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
267
+ .annotationLayer
268
+ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
269
+ input:required {
206
270
  outline: 1.5px solid red;
207
271
  }
208
272
 
@@ -218,32 +282,30 @@ html[dir='ltr'] * {
218
282
  resize: none;
219
283
  }
220
284
 
221
- .annotationLayer .textWidgetAnnotation input[disabled],
222
- .annotationLayer .textWidgetAnnotation textarea[disabled],
285
+ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
223
286
  .annotationLayer .choiceWidgetAnnotation select[disabled],
224
- .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
225
- .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
287
+ .annotationLayer
288
+ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
289
+ input[disabled] {
226
290
  background: none;
227
291
  border: 2px solid var(--input-disabled-border-color);
228
292
  cursor: not-allowed;
229
293
  }
230
294
 
231
- .annotationLayer .textWidgetAnnotation input:hover,
232
- .annotationLayer .textWidgetAnnotation textarea:hover,
295
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
233
296
  .annotationLayer .choiceWidgetAnnotation select:hover,
234
- .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
235
- .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
297
+ .annotationLayer
298
+ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
299
+ input:hover {
236
300
  border: 2px solid var(--input-hover-border-color);
237
301
  }
238
- .annotationLayer .textWidgetAnnotation input:hover,
239
- .annotationLayer .textWidgetAnnotation textarea:hover,
302
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
240
303
  .annotationLayer .choiceWidgetAnnotation select:hover,
241
304
  .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
242
305
  border-radius: 2px;
243
306
  }
244
307
 
245
- .annotationLayer .textWidgetAnnotation input:focus,
246
- .annotationLayer .textWidgetAnnotation textarea:focus,
308
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
247
309
  .annotationLayer .choiceWidgetAnnotation select:focus {
248
310
  background: none;
249
311
  border: 2px solid var(--input-focus-border-color);
@@ -251,8 +313,7 @@ html[dir='ltr'] * {
251
313
  outline: var(--input-focus-outline);
252
314
  }
253
315
 
254
- .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
255
- .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
316
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
256
317
  background-image: none;
257
318
  background-color: transparent;
258
319
  }
@@ -268,31 +329,31 @@ html[dir='ltr'] * {
268
329
  outline: var(--input-focus-outline);
269
330
  }
270
331
 
271
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
272
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
273
- .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
332
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
333
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,
334
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
274
335
  background-color: CanvasText;
275
336
  content: "";
276
337
  display: block;
277
338
  position: absolute;
278
339
  }
279
340
 
280
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
281
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
341
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
342
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
282
343
  height: 80%;
283
344
  left: 45%;
284
345
  width: 1px;
285
346
  }
286
347
 
287
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
348
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {
288
349
  transform: rotate(45deg);
289
350
  }
290
351
 
291
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
352
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
292
353
  transform: rotate(-45deg);
293
354
  }
294
355
 
295
- .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
356
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
296
357
  border-radius: 50%;
297
358
  height: 50%;
298
359
  left: 30%;
@@ -316,35 +377,34 @@ html[dir='ltr'] * {
316
377
  width: 103%;
317
378
  }
318
379
 
319
- .annotationLayer .buttonWidgetAnnotation.checkBox input,
320
- .annotationLayer .buttonWidgetAnnotation.radioButton input {
380
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
321
381
  -webkit-appearance: none;
322
382
  -moz-appearance: none;
323
383
  appearance: none;
324
384
  }
325
385
 
326
- .annotationLayer .popupTriggerArea {
386
+ .annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
327
387
  height: 100%;
328
388
  width: 100%;
329
389
  }
330
390
 
331
- .annotationLayer .popupWrapper {
391
+ .annotationLayer .popupAnnotation {
332
392
  position: absolute;
333
393
  font-size: calc(9px * var(--scale-factor));
334
- width: 100%;
335
- min-width: calc(180px * var(--scale-factor));
336
394
  pointer-events: none;
395
+ width: -moz-max-content;
396
+ width: max-content;
397
+ max-width: 45%;
398
+ height: auto;
337
399
  }
338
400
 
339
401
  .annotationLayer .popup {
340
- position: absolute;
341
- max-width: calc(180px * var(--scale-factor));
342
402
  background-color: rgba(255, 255, 153, 1);
343
403
  box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))
344
404
  rgba(136, 136, 136, 1);
345
405
  border-radius: calc(2px * var(--scale-factor));
406
+ outline: 1.5px solid rgb(255, 255, 74);
346
407
  padding: calc(6px * var(--scale-factor));
347
- margin-left: calc(5px * var(--scale-factor));
348
408
  cursor: pointer;
349
409
  font: message-box;
350
410
  white-space: normal;
@@ -352,17 +412,27 @@ html[dir='ltr'] * {
352
412
  pointer-events: auto;
353
413
  }
354
414
 
355
- .annotationLayer .popup > * {
415
+ .annotationLayer .popupAnnotation.focused .popup {
416
+ outline-width: 3px;
417
+ }
418
+
419
+ .annotationLayer .popup * {
356
420
  font-size: calc(9px * var(--scale-factor));
357
421
  }
358
422
 
359
- .annotationLayer .popup h1 {
423
+ .annotationLayer .popup > .header {
360
424
  display: inline-block;
361
425
  }
362
426
 
363
- .annotationLayer .popupDate {
427
+ .annotationLayer .popup > .header h1 {
428
+ display: inline;
429
+ }
430
+
431
+ .annotationLayer .popup > .header .popupDate {
364
432
  display: inline-block;
365
433
  margin-left: calc(5px * var(--scale-factor));
434
+ width: -moz-fit-content;
435
+ width: fit-content;
366
436
  }
367
437
 
368
438
  .annotationLayer .popupContent {
@@ -397,6 +467,8 @@ html[dir='ltr'] * {
397
467
  position: absolute;
398
468
  width: 100%;
399
469
  height: 100%;
470
+ top: 0;
471
+ left: 0;
400
472
  }
401
473
 
402
474
  .annotationLayer .annotationTextContent {
@@ -416,13 +488,23 @@ html[dir='ltr'] * {
416
488
  display: inline-block;
417
489
  }
418
490
 
491
+ .annotationLayer svg.quadrilateralsContainer {
492
+ contain: strict;
493
+ width: 0;
494
+ height: 0;
495
+ position: absolute;
496
+ top: 0;
497
+ left: 0;
498
+ z-index: -1;
499
+ }
500
+
419
501
 
420
502
  :root {
421
503
  --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
422
504
  --xfa-focus-outline: auto;
423
505
  }
424
506
 
425
- @media (forced-colors: active) {
507
+ @media screen and (forced-colors: active) {
426
508
  :root {
427
509
  --xfa-focus-outline: 2px solid CanvasText;
428
510
  }
@@ -505,14 +587,8 @@ html[dir='ltr'] * {
505
587
  outline: 1.5px solid red;
506
588
  }
507
589
 
508
- .xfaLayer div {
509
- pointer-events: none;
510
- }
511
-
512
- .xfaLayer svg {
513
- pointer-events: none;
514
- }
515
-
590
+ .xfaLayer div,
591
+ .xfaLayer svg,
516
592
  .xfaLayer svg * {
517
593
  pointer-events: none;
518
594
  }
@@ -563,10 +639,7 @@ html[dir='ltr'] * {
563
639
  align-items: center;
564
640
  }
565
641
 
566
- .xfaLeft > .xfaCaption,
567
- .xfaLeft > .xfaCaptionForCheckButton,
568
- .xfaRight > .xfaCaption,
569
- .xfaRight > .xfaCaptionForCheckButton {
642
+ :is(.xfaLeft, .xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
570
643
  max-height: 100%;
571
644
  }
572
645
 
@@ -582,10 +655,7 @@ html[dir='ltr'] * {
582
655
  align-items: flex-start;
583
656
  }
584
657
 
585
- .xfaTop > .xfaCaption,
586
- .xfaTop > .xfaCaptionForCheckButton,
587
- .xfaBottom > .xfaCaption,
588
- .xfaBottom > .xfaCaptionForCheckButton {
658
+ :is(.xfaTop, .xfaBottom) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
589
659
  width: 100%;
590
660
  }
591
661
 
@@ -600,16 +670,14 @@ html[dir='ltr'] * {
600
670
  height: 100%;
601
671
  }
602
672
 
603
- .xfaTextfield:focus,
604
- .xfaSelect:focus {
673
+ :is(.xfaTextfield, .xfaSelect):focus {
605
674
  background-image: none;
606
675
  background-color: transparent;
607
676
  outline: var(--xfa-focus-outline);
608
677
  outline-offset: -1px;
609
678
  }
610
679
 
611
- .xfaCheckbox:focus,
612
- .xfaRadio:focus {
680
+ :is(.xfaCheckbox, .xfaRadio):focus {
613
681
  outline: var(--xfa-focus-outline);
614
682
  }
615
683
 
@@ -624,15 +692,10 @@ html[dir='ltr'] * {
624
692
  }
625
693
 
626
694
  .xfaSelect {
627
- padding-left: 2px;
628
- padding-right: 2px;
629
695
  padding-inline: 2px;
630
696
  }
631
697
 
632
- .xfaTop > .xfaTextfield,
633
- .xfaTop > .xfaSelect,
634
- .xfaBottom > .xfaTextfield,
635
- .xfaBottom > .xfaSelect {
698
+ :is(.xfaTop, .xfaBottom) > :is(.xfaTextfield, .xfaSelect) {
636
699
  flex: 0 1 auto;
637
700
  }
638
701
 
@@ -735,12 +798,7 @@ html[dir='ltr'] * {
735
798
  flex: 1;
736
799
  }
737
800
 
738
- .xfaNonInteractive input,
739
- .xfaNonInteractive textarea,
740
- .xfaDisabled input,
741
- .xfaDisabled textarea,
742
- .xfaReadOnly input,
743
- .xfaReadOnly textarea {
801
+ :is(.xfaNonInteractive, .xfaDisabled, .xfaReadOnly) :is(input, textarea) {
744
802
  background: initial;
745
803
  }
746
804
 
@@ -761,19 +819,35 @@ html[dir='ltr'] * {
761
819
 
762
820
 
763
821
  :root {
764
- --focus-outline: solid 2px blue;
765
- --hover-outline: dashed 2px blue;
766
- --freetext-line-height: 1.35;
767
- --freetext-padding: 2px;
768
- --editorFreeText-editing-cursor: text;
769
- /* cursor-editorInk.svg URL-encoder for SVG */
770
- --editorInk-editing-cursor: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645Z' fill='white'/%3E%3Cpath d='M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645ZM12.472 5.1965L13.632 4.0365L13.631 3.1885L11.811 1.3675L10.963 1.3685L9.80299 2.5285L12.472 5.1965ZM4.31099 13.1585C4.47099 13.1285 4.61799 13.0515 4.73399 12.9345L11.587 6.0815L8.91899 3.4135L2.06599 10.2655C1.94899 10.3835 1.87199 10.5305 1.84099 10.6915L1.36699 13.2485L1.75199 13.6335L4.31099 13.1585Z' fill='black'/%3E%3C/svg%3E%0A") 0 16, pointer;
822
+ --outline-width: 2px;
823
+ --outline-color: blue;
824
+ --focus-outline: solid var(--outline-width) var(--outline-color);
825
+ --hover-outline: dashed var(--outline-width) var(--outline-color);
826
+ --freetext-line-height: 1.35;
827
+ --freetext-padding: 2px;
828
+ --resizer-size: 8px;
829
+ --resizer-shift: calc(
830
+ 0px - var(--outline-width) - var(--resizer-size) / 2 - var(--outline-width) /
831
+ 2
832
+ );
833
+ --resizer-color: white;
834
+ --editorFreeText-editing-cursor: text;
835
+ --editorInk-editing-cursor: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/cursor-editorInk.svg) 0 16, pointer;
771
836
  }
772
837
 
773
- @media (forced-colors: active) {
838
+ @media (-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 1.1dppx) {
774
839
  :root {
775
- --focus-outline: solid 3px ButtonText;
776
- --hover-outline: dashed 3px ButtonText;
840
+ --editorFreeText-editing-cursor: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/cursor-editorFreeText.svg) 0 16,
841
+ text;
842
+ }
843
+ }
844
+
845
+ @media screen and (forced-colors: active) {
846
+ :root {
847
+ --outline-width: 3px;
848
+ --outline-color: ButtonText;
849
+ --resizer-size: 12px;
850
+ --resizer-color: ButtonFace;
777
851
  }
778
852
  }
779
853
 
@@ -790,12 +864,11 @@ html[dir='ltr'] * {
790
864
  .annotationEditorLayer {
791
865
  background: transparent;
792
866
  position: absolute;
793
- top: 0;
794
- left: 0;
867
+ inset: 0;
795
868
  font-size: calc(100px * var(--scale-factor));
796
869
  transform-origin: 0 0;
797
870
  cursor: auto;
798
- z-index: 20000;
871
+ z-index: 4;
799
872
  }
800
873
 
801
874
  .annotationEditorLayer.freeTextEditing {
@@ -806,43 +879,51 @@ html[dir='ltr'] * {
806
879
  cursor: var(--editorInk-editing-cursor);
807
880
  }
808
881
 
882
+ .annotationEditorLayer
883
+ :is(.freeTextEditor, .inkEditor, .stampEditor)[draggable="true"] {
884
+ cursor: move;
885
+ }
886
+
809
887
  .annotationEditorLayer .selectedEditor {
810
888
  outline: var(--focus-outline);
811
- resize: none;
812
889
  }
813
890
 
814
- .annotationEditorLayer .freeTextEditor {
891
+ .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) {
815
892
  position: absolute;
816
893
  background: transparent;
817
894
  border-radius: 3px;
895
+ z-index: 1;
896
+ transform-origin: 0 0;
897
+ cursor: auto;
898
+ max-width: 100%;
899
+ max-height: 100%;
900
+ }
901
+
902
+ .annotationEditorLayer .freeTextEditor {
818
903
  padding: calc(var(--freetext-padding) * var(--scale-factor));
819
- resize: none;
820
904
  width: auto;
821
905
  height: auto;
822
- z-index: 1;
823
- transform-origin: 0 0;
824
906
  touch-action: none;
825
- cursor: auto;
826
907
  }
827
908
 
828
909
  .annotationEditorLayer .freeTextEditor .internal {
829
910
  background: transparent;
830
911
  border: none;
831
- top: 0;
832
- left: 0;
912
+ inset: 0;
833
913
  overflow: visible;
834
914
  white-space: nowrap;
835
- resize: none;
836
915
  font: 10px sans-serif;
837
916
  line-height: var(--freetext-line-height);
917
+ -webkit-user-select: none;
918
+ -moz-user-select: none;
919
+ user-select: none;
838
920
  }
839
921
 
840
922
  .annotationEditorLayer .freeTextEditor .overlay {
841
923
  position: absolute;
842
924
  display: none;
843
925
  background: transparent;
844
- top: 0;
845
- left: 0;
926
+ inset: 0;
846
927
  width: 100%;
847
928
  height: 100%;
848
929
  }
@@ -858,56 +939,163 @@ html[dir='ltr'] * {
858
939
 
859
940
  .annotationEditorLayer .freeTextEditor .internal:focus {
860
941
  outline: none;
942
+ -webkit-user-select: auto;
943
+ -moz-user-select: auto;
944
+ user-select: auto;
861
945
  }
862
946
 
863
- .annotationEditorLayer .inkEditor.disabled {
864
- resize: none;
865
- }
866
-
867
- .annotationEditorLayer .inkEditor.disabled.selectedEditor {
868
- resize: horizontal;
869
- }
870
-
871
- .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),
872
- .annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {
947
+ .annotationEditorLayer
948
+ :is(.freeTextEditor, .inkEditor, .stampEditor):hover:not(.selectedEditor) {
873
949
  outline: var(--hover-outline);
874
950
  }
875
951
 
876
952
  .annotationEditorLayer .inkEditor {
877
- position: absolute;
878
- background: transparent;
879
- border-radius: 3px;
880
- overflow: auto;
881
953
  width: 100%;
882
954
  height: 100%;
883
- z-index: 1;
884
- transform-origin: 0 0;
885
- cursor: auto;
886
955
  }
887
956
 
888
957
  .annotationEditorLayer .inkEditor.editing {
889
- resize: none;
890
958
  cursor: inherit;
891
959
  }
892
960
 
893
961
  .annotationEditorLayer .inkEditor .inkEditorCanvas {
894
962
  position: absolute;
895
- top: 0;
896
- left: 0;
963
+ inset: 0;
897
964
  width: 100%;
898
965
  height: 100%;
899
966
  touch-action: none;
900
967
  }
901
968
 
969
+ .annotationEditorLayer .stampEditor {
970
+ width: auto;
971
+ height: auto;
972
+ }
973
+
974
+ .annotationEditorLayer .stampEditor.loading {
975
+ aspect-ratio: 1;
976
+ width: 10%;
977
+ height: auto;
978
+ background-color: rgba(128, 128, 128, 0.5);
979
+ background-image: var(--loading-icon);
980
+ background-repeat: no-repeat;
981
+ background-position: 50%;
982
+ background-size: 16px 16px;
983
+ transition-property: background-size;
984
+ transition-delay: var(--loading-icon-delay);
985
+ }
986
+
987
+ .annotationEditorLayer .stampEditor canvas {
988
+ width: 100%;
989
+ height: 100%;
990
+ }
991
+
992
+ .annotationEditorLayer .resizers {
993
+ width: 100%;
994
+ height: 100%;
995
+ position: absolute;
996
+ inset: 0;
997
+ }
998
+
999
+ .annotationEditorLayer .resizers.hidden {
1000
+ display: none;
1001
+ }
1002
+
1003
+ .annotationEditorLayer .resizer {
1004
+ width: var(--resizer-size);
1005
+ height: var(--resizer-size);
1006
+ border-radius: 50%;
1007
+ background: var(--resizer-color);
1008
+ border: var(--focus-outline);
1009
+ position: absolute;
1010
+ }
1011
+
1012
+ .annotationEditorLayer .resizer.topLeft {
1013
+ cursor: nw-resize;
1014
+ top: var(--resizer-shift);
1015
+ left: var(--resizer-shift);
1016
+ }
1017
+
1018
+ .annotationEditorLayer .resizer.topMiddle {
1019
+ cursor: n-resize;
1020
+ top: var(--resizer-shift);
1021
+ left: calc(50% + var(--resizer-shift));
1022
+ }
1023
+
1024
+ .annotationEditorLayer .resizer.topRight {
1025
+ cursor: ne-resize;
1026
+ top: var(--resizer-shift);
1027
+ right: var(--resizer-shift);
1028
+ }
1029
+
1030
+ .annotationEditorLayer .resizer.middleRight {
1031
+ cursor: e-resize;
1032
+ top: calc(50% + var(--resizer-shift));
1033
+ right: var(--resizer-shift);
1034
+ }
1035
+
1036
+ .annotationEditorLayer .resizer.bottomRight {
1037
+ cursor: se-resize;
1038
+ bottom: var(--resizer-shift);
1039
+ right: var(--resizer-shift);
1040
+ }
1041
+
1042
+ .annotationEditorLayer .resizer.bottomMiddle {
1043
+ cursor: s-resize;
1044
+ bottom: var(--resizer-shift);
1045
+ left: calc(50% + var(--resizer-shift));
1046
+ }
1047
+
1048
+ .annotationEditorLayer .resizer.bottomLeft {
1049
+ cursor: sw-resize;
1050
+ bottom: var(--resizer-shift);
1051
+ left: var(--resizer-shift);
1052
+ }
1053
+
1054
+ .annotationEditorLayer .resizer.middleLeft {
1055
+ cursor: w-resize;
1056
+ top: calc(50% + var(--resizer-shift));
1057
+ left: var(--resizer-shift);
1058
+ }
1059
+
1060
+ .annotationEditorLayer.resizingTopLeft {
1061
+ cursor: nw-resize;
1062
+ }
1063
+
1064
+ .annotationEditorLayer.resizingTopMiddle {
1065
+ cursor: n-resize;
1066
+ }
1067
+
1068
+ .annotationEditorLayer.resizingTopRight {
1069
+ cursor: ne-resize;
1070
+ }
1071
+
1072
+ .annotationEditorLayer.resizingMiddleRight {
1073
+ cursor: e-resize;
1074
+ }
1075
+
1076
+ .annotationEditorLayer.resizingBottomRight {
1077
+ cursor: se-resize;
1078
+ }
1079
+
1080
+ .annotationEditorLayer.resizingBottomMiddle {
1081
+ cursor: s-resize;
1082
+ }
1083
+
1084
+ .annotationEditorLayer.resizingBottomLeft {
1085
+ cursor: sw-resize;
1086
+ }
1087
+
1088
+ .annotationEditorLayer.resizingMiddleLeft {
1089
+ cursor: w-resize;
1090
+ }
1091
+
902
1092
  :root {
903
1093
  --viewer-container-height: 0;
904
1094
  --pdfViewer-padding-bottom: 0;
905
1095
  --page-margin: 1px auto -8px;
906
1096
  --page-border: 9px solid transparent;
907
- /* shadow.svg URL-encoder for SVG */
908
- --page-border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='19' height='19' xml:space='preserve' version='1.1' viewBox='0 0 19 19'%3E%3Cimage width='19' height='19' xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII='/%3E%3C/svg%3E") 9 9 repeat;
909
1097
  --spreadHorizontalWrapped-margin-LR: -3.5px;
910
- --scale-factor: 1;
1098
+ --loading-icon-delay: 400ms;
911
1099
  }
912
1100
 
913
1101
  @media screen and (forced-colors: active) {
@@ -915,7 +1103,6 @@ html[dir='ltr'] * {
915
1103
  --pdfViewer-padding-bottom: 9px;
916
1104
  --page-margin: 8px auto -1px;
917
1105
  --page-border: 1px solid CanvasText;
918
- --page-border-image: none;
919
1106
  --spreadHorizontalWrapped-margin-LR: 3.5px;
920
1107
  }
921
1108
  }
@@ -930,12 +1117,28 @@ html[dir='ltr'] * {
930
1117
  transform: rotate(270deg) translateX(-100%);
931
1118
  }
932
1119
 
1120
+ #hiddenCopyElement {
1121
+ position: absolute;
1122
+ top: 0;
1123
+ left: 0;
1124
+ width: 0;
1125
+ height: 0;
1126
+ display: none;
1127
+ }
1128
+
933
1129
  .pdfViewer {
1130
+ /* Define this variable here and not in :root to avoid to reflow all the UI
1131
+ when scaling (see #15929). */
1132
+ --scale-factor: 1;
1133
+
934
1134
  padding-bottom: var(--pdfViewer-padding-bottom);
935
1135
  }
936
1136
 
937
1137
  .pdfViewer .canvasWrapper {
938
1138
  overflow: hidden;
1139
+ width: 100%;
1140
+ height: 100%;
1141
+ z-index: 1;
939
1142
  }
940
1143
 
941
1144
  .pdfViewer .page {
@@ -946,8 +1149,6 @@ html[dir='ltr'] * {
946
1149
  position: relative;
947
1150
  overflow: visible;
948
1151
  border: var(--page-border);
949
- -o-border-image: var(--page-border-image);
950
- border-image: var(--page-border-image);
951
1152
  background-clip: content-box;
952
1153
  background-color: rgba(255, 255, 255, 1);
953
1154
  }
@@ -963,20 +1164,9 @@ html[dir='ltr'] * {
963
1164
  border: none;
964
1165
  }
965
1166
 
966
- .pdfViewer.singlePageView {
967
- display: inline-block;
968
- }
969
-
970
- .pdfViewer.singlePageView .page {
971
- margin: 0;
972
- border: none;
973
- }
974
-
975
- .pdfViewer.scrollHorizontal,
976
- .pdfViewer.scrollWrapped,
1167
+ .pdfViewer:is(.scrollHorizontal, .scrollWrapped),
977
1168
  .spread {
978
- margin-left: 3.5px;
979
- margin-right: 3.5px;
1169
+ margin-inline: 3.5px;
980
1170
  text-align: center;
981
1171
  }
982
1172
 
@@ -986,34 +1176,24 @@ html[dir='ltr'] * {
986
1176
  }
987
1177
 
988
1178
  .pdfViewer.removePageBorders,
989
- .pdfViewer.scrollHorizontal .spread,
990
- .pdfViewer.scrollWrapped .spread {
991
- margin-left: 0;
992
- margin-right: 0;
1179
+ .pdfViewer:is(.scrollHorizontal, .scrollWrapped) .spread {
1180
+ margin-inline: 0;
993
1181
  }
994
1182
 
995
- .spread .page,
996
- .spread .dummyPage,
997
- .pdfViewer.scrollHorizontal .page,
998
- .pdfViewer.scrollWrapped .page,
999
- .pdfViewer.scrollHorizontal .spread,
1000
- .pdfViewer.scrollWrapped .spread {
1183
+ .spread :is(.page, .dummyPage),
1184
+ .pdfViewer:is(.scrollHorizontal, .scrollWrapped) :is(.page, .spread) {
1001
1185
  display: inline-block;
1002
1186
  vertical-align: middle;
1003
1187
  }
1004
1188
 
1005
1189
  .spread .page,
1006
- .pdfViewer.scrollHorizontal .page,
1007
- .pdfViewer.scrollWrapped .page {
1008
- margin-left: var(--spreadHorizontalWrapped-margin-LR);
1009
- margin-right: var(--spreadHorizontalWrapped-margin-LR);
1190
+ .pdfViewer:is(.scrollHorizontal, .scrollWrapped) .page {
1191
+ margin-inline: var(--spreadHorizontalWrapped-margin-LR);
1010
1192
  }
1011
1193
 
1012
1194
  .pdfViewer.removePageBorders .spread .page,
1013
- .pdfViewer.removePageBorders.scrollHorizontal .page,
1014
- .pdfViewer.removePageBorders.scrollWrapped .page {
1015
- margin-left: 5px;
1016
- margin-right: 5px;
1195
+ .pdfViewer.removePageBorders:is(.scrollHorizontal, .scrollWrapped) .page {
1196
+ margin-inline: 5px;
1017
1197
  }
1018
1198
 
1019
1199
  .pdfViewer .page canvas {
@@ -1021,30 +1201,43 @@ html[dir='ltr'] * {
1021
1201
  display: block;
1022
1202
  }
1023
1203
 
1204
+ .pdfViewer .page canvas .structTree {
1205
+ contain: strict;
1206
+ }
1207
+
1024
1208
  .pdfViewer .page canvas[hidden] {
1025
1209
  display: none;
1026
1210
  }
1027
1211
 
1028
- .pdfViewer .page .loadingIcon {
1212
+ .pdfViewer .page canvas[zooming] {
1213
+ width: 100%;
1214
+ height: 100%;
1215
+ }
1216
+
1217
+ .pdfViewer .page.loadingIcon::after {
1029
1218
  position: absolute;
1030
- display: block;
1031
- left: 0;
1032
1219
  top: 0;
1033
- right: 0;
1034
- bottom: 0;
1035
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' style='animation:spinLoadingIcon 1s steps(12,end) infinite'%3E%3Cstyle%3E@keyframes spinLoadingIcon%7Bto%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z'/%3E%3Cpath d='M4.63 4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.57-1.37-.37-1.37-.37z' fill-opacity='.93'/%3E%3Cpath d='M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.86'/%3E%3Cpath d='M3 9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.79'/%3E%3Cpath d='M4.1 11.37l-1.73 1S1.5 12.87 1 12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z' fill-opacity='.72'/%3E%3Cpath d='M3.63 13.56l1-1.73s.5-.87 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z' fill-opacity='.65'/%3E%3Cpath d='M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z' fill-opacity='.58'/%3E%3Cpath d='M10.63 14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.5-1.37-.37-1.37-.37z' fill-opacity='.51'/%3E%3Cpath d='M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.44'/%3E%3Cpath d='M15 9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.37'/%3E%3Cpath d='M14.56 5.37l-1.73 1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z' fill-opacity='.3'/%3E%3Cpath d='M9.64 3.1l.98-1.66s.5-.874 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z' fill-opacity='.23'/%3E%3C/svg%3E");
1036
- background-position: center;
1037
- background-repeat: no-repeat;
1220
+ left: 0;
1221
+ content: "";
1222
+ width: 100%;
1223
+ height: 100%;
1224
+ background: url("@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/loading-icon.gif") center no-repeat;
1225
+ display: none;
1226
+ /* Using a delay with background-image doesn't work,
1227
+ consequently we use the display. */
1228
+ transition-property: display;
1229
+ transition-delay: var(--loading-icon-delay);
1230
+ z-index: 5;
1231
+ contain: strict;
1038
1232
  }
1039
- .pdfViewer .page .loadingIcon.notVisible {
1040
- background: none;
1233
+
1234
+ .pdfViewer .page.loading::after {
1235
+ display: block;
1041
1236
  }
1042
1237
 
1043
- .pdfViewer.enablePermissions .textLayer span {
1044
- -webkit-user-select: none !important;
1045
- -moz-user-select: none !important;
1046
- user-select: none !important;
1047
- cursor: not-allowed;
1238
+ .pdfViewer .page:not(.loading)::after {
1239
+ transition-property: none;
1240
+ display: none;
1048
1241
  }
1049
1242
 
1050
1243
  .pdfPresentationMode .pdfViewer {
@@ -1061,181 +1254,157 @@ html[dir='ltr'] * {
1061
1254
  }
1062
1255
 
1063
1256
  :root {
1064
- --dir-factor: 1;
1065
- --sidebar-width: 200px;
1066
- --sidebar-transition-duration: 200ms;
1067
- --sidebar-transition-timing-function: ease;
1068
- --scale-select-width: 140px;
1069
- --toolbar-icon-opacity: 0.7;
1070
- --doorhanger-icon-opacity: 0.9;
1071
- --main-color: rgba(12, 12, 13, 1);
1072
- --body-bg-color: rgba(237, 237, 240, 1);
1073
- --progressBar-percent: 0%;
1074
- --progressBar-end-offset: 0;
1075
- --progressBar-color: rgba(10, 132, 255, 1);
1076
- --progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1);
1077
- --progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1);
1078
- --scrollbar-color: auto;
1079
- --scrollbar-bg-color: auto;
1080
- --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
1081
- --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
1082
- --sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9);
1083
- --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
1084
- --toolbar-bg-color: rgba(249, 249, 250, 1);
1085
- --toolbar-border-color: rgba(204, 204, 204, 1);
1086
- --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
1087
- --toolbar-border-bottom: none;
1088
- --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
1089
- --toolbarSidebar-border-bottom: none;
1090
- --button-hover-color: rgba(221, 222, 223, 1);
1091
- --toggled-btn-color: rgba(0, 0, 0, 1);
1092
- --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
1093
- --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
1094
- --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
1095
- --dropdown-btn-border: none;
1096
- --separator-color: rgba(0, 0, 0, 0.3);
1097
- --field-color: rgba(6, 6, 6, 1);
1098
- --field-bg-color: rgba(255, 255, 255, 1);
1099
- --field-border-color: rgba(187, 187, 188, 1);
1100
- --treeitem-color: rgba(0, 0, 0, 0.8);
1101
- --treeitem-hover-color: rgba(0, 0, 0, 0.9);
1102
- --treeitem-selected-color: rgba(0, 0, 0, 0.9);
1103
- --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
1104
- --sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
1105
- --doorhanger-bg-color: rgba(255, 255, 255, 1);
1106
- --doorhanger-border-color: rgba(12, 12, 13, 0.2);
1107
- --doorhanger-hover-color: rgba(12, 12, 13, 1);
1108
- --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
1109
- --doorhanger-separator-color: rgba(222, 222, 222, 1);
1110
- --dialog-button-border: none;
1111
- --dialog-button-bg-color: rgba(12, 12, 13, 0.1);
1112
- --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3);
1113
- /* loading.svg URL-encoder for SVG */
1114
- --loading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' style='animation:spinLoadingIcon 1s steps(12,end) infinite'%3E%3Cstyle%3E@keyframes spinLoadingIcon%7Bto%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z'/%3E%3Cpath d='M4.63 4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.57-1.37-.37-1.37-.37z' fill-opacity='.93'/%3E%3Cpath d='M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.86'/%3E%3Cpath d='M3 9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.79'/%3E%3Cpath d='M4.1 11.37l-1.73 1S1.5 12.87 1 12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z' fill-opacity='.72'/%3E%3Cpath d='M3.63 13.56l1-1.73s.5-.87 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z' fill-opacity='.65'/%3E%3Cpath d='M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z' fill-opacity='.58'/%3E%3Cpath d='M10.63 14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.5-1.37-.37-1.37-.37z' fill-opacity='.51'/%3E%3Cpath d='M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.44'/%3E%3Cpath d='M15 9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.37'/%3E%3Cpath d='M14.56 5.37l-1.73 1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z' fill-opacity='.3'/%3E%3Cpath d='M9.64 3.1l.98-1.66s.5-.874 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z' fill-opacity='.23'/%3E%3C/svg%3E%0A");
1115
- /* treeitem-expanded.svg URL-encoder for SVG */
1116
- --treeitem-expanded-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M10 13l4-7H6z'/%3E%3C/svg%3E");
1117
- /* treeitem-collapsed.svg URL-encoder for SVG */
1118
- --treeitem-collapsed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M13 9L6 5v8z'/%3E%3C/svg%3E");
1119
- /* toolbarButton-editorFreeText.svg URL-encoder for SVG */
1120
- --toolbarButton-editorFreeText-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.625 2.942C8.625 2.725 8.735 2.527 8.918 2.412L10.026 1.72C10.126 1.658 10.24 1.625 10.358 1.625H12V0.375H10.358C10.006 0.375 9.663 0.474 9.364 0.66L8.256 1.353C8.161 1.412 8.081 1.488 8 1.562C7.918 1.488 7.839 1.412 7.744 1.353L6.635 0.66C6.336 0.474 5.993 0.375 5.642 0.375H4V1.625H5.642C5.759 1.625 5.874 1.658 5.974 1.72L7.082 2.412C7.266 2.527 7.376 2.725 7.376 2.942V8V13.058C7.376 13.275 7.266 13.473 7.082 13.588L5.973 14.28C5.873 14.342 5.759 14.375 5.641 14.375H4V15.625H5.642C5.994 15.625 6.337 15.526 6.636 15.34L7.744 14.648C7.84 14.588 7.919 14.512 8 14.439C8.081 14.512 8.161 14.588 8.256 14.648L9.365 15.341C9.664 15.527 10.007 15.626 10.359 15.626H12V14.376H10.358C10.241 14.376 10.126 14.343 10.026 14.281L8.918 13.589C8.734 13.474 8.625 13.276 8.625 13.059V8V2.942Z' fill='black'/%3E%3C/svg%3E%0A");
1121
- /* toolbarButton-editorInk.svg URL-encoder for SVG */
1122
- --toolbarButton-editorInk-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.49913 12.6251C2.61913 12.6251 2.73913 12.6051 2.85713 12.5661L6.29013 11.4201L13.2891 4.4221C14.0191 3.6911 14.0191 2.5011 13.2891 1.7701L12.2291 0.710098C11.4971 -0.0199023 10.3091 -0.0199023 9.57713 0.710098L2.57813 7.7091L1.43313 11.1451C1.29813 11.5511 1.40213 11.9931 1.70513 12.2951C1.92113 12.5101 2.20613 12.6251 2.49913 12.6251ZM10.4611 1.5951C10.7031 1.3511 11.1021 1.3511 11.3441 1.5951L12.4051 2.6561C12.6491 2.8991 12.6491 3.2961 12.4051 3.5391L11.3401 4.6051L9.39513 2.6601L10.4611 1.5951ZM3.67013 8.3851L8.51013 3.5451L10.4541 5.4891L5.61413 10.3301L2.69713 11.3031L3.67013 8.3851Z' fill='black'/%3E%3Cpath d='M14.8169 13.314L13.0229 13.862C12.3309 14.073 11.5909 14.111 10.8859 13.968L8.80391 13.551C7.58491 13.308 6.29791 13.48 5.18491 14.036C3.95291 14.652 2.46691 14.412 1.49191 13.436L1.44091 13.385L0.60791 14.321C1.46291 15.175 2.59991 15.625 3.75291 15.625C4.42891 15.625 5.10991 15.471 5.74391 15.153C6.60891 14.721 7.60891 14.586 8.55891 14.777L10.6409 15.194C11.5509 15.376 12.5009 15.327 13.3879 15.056L15.1819 14.508L14.8169 13.314Z' fill='black'/%3E%3C/svg%3E%0A");
1123
- /* toolbarButton-menuArrow.svg URL-encoder for SVG */
1124
- --toolbarButton-menuArrow-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.23336 10.4664L11.8474 6.85339C11.894 6.8071 11.931 6.75203 11.9563 6.69136C11.9816 6.63069 11.9946 6.56562 11.9946 6.49989C11.9946 6.43417 11.9816 6.3691 11.9563 6.30843C11.931 6.24776 11.894 6.19269 11.8474 6.14639C11.7536 6.05266 11.6264 6 11.4939 6C11.3613 6 11.2341 6.05266 11.1404 6.14639L7.99236 9.29339L4.84736 6.14739C4.75305 6.05631 4.62675 6.00592 4.49566 6.00706C4.36456 6.0082 4.23915 6.06078 4.14645 6.15348C4.05374 6.24619 4.00116 6.37159 4.00002 6.50269C3.99888 6.63379 4.04928 6.76009 4.14036 6.85439L7.75236 10.4674L8.23336 10.4664Z' fill='black'/%3E%3C/svg%3E%0A");
1125
- /* toolbarButton-sidebarToggle.svg URL-encoder for SVG */
1126
- --toolbarButton-sidebarToggle-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16 4V12.25C16 12.7804 15.7893 13.2891 15.4142 13.6642C15.0391 14.0393 14.5304 14.25 14 14.25H2C1.46957 14.25 0.960859 14.0393 0.585786 13.6642C0.210714 13.2891 0 12.7804 0 12.25V4C0 3.46957 0.210714 2.96086 0.585786 2.58579C0.960859 2.21071 1.46957 2 2 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4ZM1.25 3.85V12.4L1.85 13H6.75V3.25H1.85L1.25 3.85ZM14.15 13H8V3.25H14.15L14.75 3.85V12.4L14.15 13ZM5.35355 10.1464C5.44732 10.2402 5.5 10.3674 5.5 10.5C5.5 10.6326 5.44732 10.7598 5.35355 10.8536C5.25979 10.9473 5.13261 11 5 11H3C2.86739 11 2.74021 10.9473 2.64645 10.8536C2.55268 10.7598 2.5 10.6326 2.5 10.5C2.5 10.3674 2.55268 10.2402 2.64645 10.1464C2.74021 10.0527 2.86739 10 3 10H5C5.13261 10 5.25979 10.0527 5.35355 10.1464ZM5.5 8C5.5 7.86739 5.44732 7.74021 5.35355 7.64645C5.25979 7.55268 5.13261 7.5 5 7.5H3C2.86739 7.5 2.74021 7.55268 2.64645 7.64645C2.55268 7.74021 2.5 7.86739 2.5 8C2.5 8.13261 2.55268 8.25979 2.64645 8.35355C2.74021 8.44732 2.86739 8.5 3 8.5H5C5.13261 8.5 5.25979 8.44732 5.35355 8.35355C5.44732 8.25979 5.5 8.13261 5.5 8ZM5.35355 5.14645C5.44732 5.24021 5.5 5.36739 5.5 5.5C5.5 5.63261 5.44732 5.75979 5.35355 5.85355C5.25979 5.94732 5.13261 6 5 6H3C2.86739 6 2.74021 5.94732 2.64645 5.85355C2.55268 5.75979 2.5 5.63261 2.5 5.5C2.5 5.36739 2.55268 5.24021 2.64645 5.14645C2.74021 5.05268 2.86739 5 3 5H5C5.13261 5 5.25979 5.05268 5.35355 5.14645Z' fill='black'/%3E%3C/svg%3E%0A");
1127
- /* toolbarButton-secondaryToolbarToggle.svg URL-encoder for SVG */
1128
- --toolbarButton-secondaryToolbarToggle-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.53406 13.818L7.99906 8.35203L8.00006 7.64703L2.53606 2.18203C2.41769 2.06965 2.26012 2.00795 2.09692 2.01006C1.93372 2.01218 1.7778 2.07795 1.66239 2.19336C1.54698 2.30877 1.48121 2.46469 1.47909 2.62789C1.47697 2.79109 1.53868 2.94867 1.65106 3.06703L6.58506 7.99803L1.65006 12.932C1.53754 13.0503 1.47565 13.2078 1.47758 13.371C1.47951 13.5342 1.54511 13.6902 1.66039 13.8057C1.77567 13.9213 1.93152 13.9872 2.09472 13.9895C2.25792 13.9918 2.41557 13.9303 2.53406 13.818ZM8.53406 13.818L13.9991 8.35203L14.0001 7.64703L8.53606 2.18203C8.4177 2.06965 8.26012 2.00795 8.09692 2.01006C7.93372 2.01218 7.7778 2.07795 7.66239 2.19336C7.54698 2.30877 7.48121 2.46469 7.47909 2.62789C7.47697 2.79109 7.53868 2.94867 7.65106 3.06703L12.5851 7.99803L7.65006 12.932C7.53754 13.0503 7.47565 13.2078 7.47758 13.371C7.47951 13.5342 7.54511 13.6902 7.66039 13.8057C7.77567 13.9213 7.93152 13.9872 8.09472 13.9895C8.25792 13.9918 8.41557 13.9303 8.53406 13.818Z' fill='black'/%3E%3C/svg%3E%0A");
1129
- /* toolbarButton-pageUp.svg URL-encoder for SVG */
1130
- --toolbarButton-pageUp-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.35179 5.001L13.8178 10.466C13.876 10.524 13.9222 10.5929 13.9537 10.6688C13.9852 10.7447 14.0013 10.826 14.0012 10.9082C14.0011 10.9904 13.9848 11.0717 13.9531 11.1475C13.9215 11.2234 13.8751 11.2922 13.8168 11.35C13.6991 11.4668 13.5401 11.5324 13.3743 11.5324C13.2085 11.5324 13.0494 11.4668 12.9318 11.35L7.99879 6.416L3.06679 11.349C2.94842 11.4614 2.79085 11.5231 2.62765 11.521C2.46445 11.5189 2.30853 11.4531 2.19312 11.3377C2.07771 11.2223 2.01193 11.0663 2.00982 10.9031C2.0077 10.7399 2.06941 10.5824 2.18179 10.464L7.64779 5L8.35179 5.001Z' fill='black'/%3E%3C/svg%3E%0A");
1131
- /* toolbarButton-pageDown.svg URL-encoder for SVG */
1132
- --toolbarButton-pageDown-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.35176 10.9989L13.8178 5.53391C13.876 5.47594 13.9222 5.40702 13.9537 5.33113C13.9851 5.25524 14.0013 5.17387 14.0012 5.0917C14.0011 5.00954 13.9848 4.9282 13.9531 4.85238C13.9215 4.77656 13.8751 4.70775 13.8168 4.64991C13.6991 4.53309 13.5401 4.46753 13.3743 4.46753C13.2085 4.46753 13.0494 4.53309 12.9318 4.64991L7.99776 9.58491L3.06776 4.65091C2.9494 4.53853 2.79183 4.47682 2.62863 4.47894C2.46542 4.48106 2.3095 4.54683 2.19409 4.66224C2.07868 4.77765 2.01291 4.93357 2.01079 5.09677C2.00868 5.25997 2.07039 5.41754 2.18276 5.53591L7.64776 10.9999L8.35176 10.9989Z' fill='black'/%3E%3C/svg%3E%0A");
1133
- /* toolbarButton-zoomOut.svg URL-encoder for SVG */
1134
- --toolbarButton-zoomOut-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.375 9.25C13.5408 9.25 13.6997 9.18415 13.8169 9.06694C13.9342 8.94973 14 8.79076 14 8.625C14 8.45924 13.9342 8.30027 13.8169 8.18306C13.6997 8.06585 13.5408 8 13.375 8H2.625C2.45924 8 2.30027 8.06585 2.18306 8.18306C2.06585 8.30027 2 8.45924 2 8.625C2 8.79076 2.06585 8.94973 2.18306 9.06694C2.30027 9.18415 2.45924 9.25 2.625 9.25H13.375Z' fill='black'/%3E%3C/svg%3E%0A");
1135
- /* toolbarButton-zoomIn.svg URL-encoder for SVG */
1136
- --toolbarButton-zoomIn-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.00488 9.75V14C7.00488 14.1658 7.07073 14.3247 7.18794 14.4419C7.30515 14.5592 7.46412 14.625 7.62988 14.625C7.79564 14.625 7.95461 14.5592 8.07183 14.4419C8.18904 14.3247 8.25488 14.1658 8.25488 14V9.75L8.75488 9.25H13.0049C13.1706 9.25 13.3296 9.18415 13.4468 9.06694C13.564 8.94973 13.6299 8.79076 13.6299 8.625C13.6299 8.45924 13.564 8.30027 13.4468 8.18306C13.3296 8.06585 13.1706 8 13.0049 8H8.75488L8.25488 7.5V3.25C8.25488 3.08424 8.18904 2.92527 8.07183 2.80806C7.95461 2.69085 7.79564 2.625 7.62988 2.625C7.46412 2.625 7.30515 2.69085 7.18794 2.80806C7.07073 2.92527 7.00488 3.08424 7.00488 3.25V7.5L6.50488 8H2.25488C2.08912 8 1.93015 8.06585 1.81294 8.18306C1.69573 8.30027 1.62988 8.45924 1.62988 8.625C1.62988 8.79076 1.69573 8.94973 1.81294 9.06694C1.93015 9.18415 2.08912 9.25 2.25488 9.25H6.39188L7.00488 9.75Z' fill='black'/%3E%3C/svg%3E%0A");
1137
- /* toolbarButton-presentationMode.svg URL-encoder for SVG */
1138
- --toolbarButton-presentationMode-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3C1.5 2.72421 1.72421 2.5 2 2.5H14C14.2758 2.5 14.5 2.72421 14.5 3V11C14.5 11.2758 14.2758 11.5 14 11.5H2C1.72421 11.5 1.5 11.2758 1.5 11V3ZM2 1C0.895786 1 0 1.89579 0 3V11C0 12.1042 0.895786 13 2 13H2.64979L1.35052 15.2499L2.64949 16L4.38194 13H11.6391L13.3715 16L14.6705 15.2499L13.3712 13H14C15.1042 13 16 12.1042 16 11V3C16 1.89579 15.1042 1 14 1H2ZM5.79501 4.64401V9.35601C5.79501 9.85001 6.32901 10.159 6.75701 9.91401L10.88 7.55801C11.312 7.31201 11.312 6.68901 10.88 6.44201L6.75701 4.08601C6.32801 3.84101 5.79501 4.15001 5.79501 4.64401Z' fill='black'/%3E%3C/svg%3E%0A");
1139
- /* toolbarButton-print.svg URL-encoder for SVG */
1140
- --toolbarButton-print-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 4H12V2C12 1.46957 11.7893 0.960859 11.4142 0.585786C11.0391 0.210714 10.5304 0 10 0L6 0C5.46957 0 4.96086 0.210714 4.58579 0.585786C4.21071 0.960859 4 1.46957 4 2V4H3C2.46957 4 1.96086 4.21071 1.58579 4.58579C1.21071 4.96086 1 5.46957 1 6V11C1 11.5304 1.21071 12.0391 1.58579 12.4142C1.96086 12.7893 2.46957 13 3 13H4V14C4 14.5304 4.21071 15.0391 4.58579 15.4142C4.96086 15.7893 5.46957 16 6 16H10C10.5304 16 11.0391 15.7893 11.4142 15.4142C11.7893 15.0391 12 14.5304 12 14V13H13C13.5304 13 14.0391 12.7893 14.4142 12.4142C14.7893 12.0391 15 11.5304 15 11V6C15 5.46957 14.7893 4.96086 14.4142 4.58579C14.0391 4.21071 13.5304 4 13 4V4ZM10.75 14.15L10.15 14.75H5.85L5.25 14.15V10H10.75V14.15ZM10.75 4H5.25V1.85L5.85 1.25H10.15L10.75 1.85V4V4ZM13 7.6L12.6 8H11.4L11 7.6V6.4L11.4 6H12.6L13 6.4V7.6Z' fill='black'/%3E%3C/svg%3E%0A");
1141
- /* toolbarButton-openFile.svg URL-encoder for SVG */
1142
- --toolbarButton-openFile-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.4287 1.08398C10.5111 1.02905 10.608 0.999824 10.707 1H14.7L15 1.3V5.293C15 5.39194 14.9706 5.48864 14.9156 5.57088C14.8606 5.65311 14.7824 5.71718 14.691 5.75498C14.5996 5.79277 14.499 5.80259 14.402 5.78319C14.3049 5.76379 14.2159 5.71605 14.146 5.646L12.973 4.473L12.692 4.192L9.067 7.817C8.94923 7.93347 8.79034 7.99888 8.6247 7.99907C8.45907 7.99925 8.30003 7.93421 8.182 7.818C8.06518 7.70036 7.99962 7.54129 7.99962 7.3755C7.99962 7.20971 8.06518 7.05065 8.182 6.933L11.807 3.308L10.353 1.854C10.2829 1.78407 10.2351 1.6949 10.2158 1.59779C10.1964 1.50068 10.2063 1.40001 10.2442 1.30854C10.2821 1.21707 10.3464 1.13891 10.4287 1.08398ZM7.81694 2.06694C7.69973 2.18415 7.54076 2.25 7.375 2.25H2.85L2.25 2.85V13.15L2.85 13.75H13.15L13.75 13.15V8.625C13.75 8.45924 13.8158 8.30027 13.9331 8.18306C14.0503 8.06585 14.2092 8 14.375 8C14.5408 8 14.6997 8.06585 14.8169 8.18306C14.9342 8.30027 15 8.45924 15 8.625V13C15 13.5304 14.7893 14.0391 14.4142 14.4142C14.0391 14.7893 13.5304 15 13 15H3C2.46957 15 1.96086 14.7893 1.58579 14.4142C1.21071 14.0391 1 13.5304 1 13V3C1 2.46957 1.21071 1.96086 1.58579 1.58579C1.96086 1.21071 2.46957 1 3 1H7.375C7.54076 1 7.69973 1.06585 7.81694 1.18306C7.93415 1.30027 8 1.45924 8 1.625C8 1.79076 7.93415 1.94973 7.81694 2.06694Z' fill='black'/%3E%3C/svg%3E%0A");
1143
- /* toolbarButton-download.svg URL-encoder for SVG */
1144
- --toolbarButton-download-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.79407 7.31811H7.86307C7.41807 7.31811 7.19407 7.85711 7.50907 8.17211L10.1911 10.8541C10.3861 11.0491 10.7031 11.0491 10.8981 10.8541L13.5801 8.17211C13.8951 7.85711 13.6721 7.31811 13.2261 7.31811H11.2941V4.38211H11.2961V3.13211H11.2941V2.30811H9.79407V3.13211H9.79107V4.38211H9.79507V7.31811H9.79407Z' fill='black'/%3E%3Cpath d='M14 3.13208H12.796V4.38208H14C14.345 4.38208 14.625 4.66208 14.625 5.00708V13.0071C14.625 13.3521 14.345 13.6321 14 13.6321H2C1.655 13.6321 1.375 13.3521 1.375 13.0071V3.00708C1.375 2.66208 1.655 2.38208 2 2.38208H5.643C5.82 2.38208 5.989 2.45808 6.108 2.58908L7.536 4.17508C7.654 4.30708 7.823 4.38208 8 4.38208H8.291V3.13208H8.278L7.036 1.75208C6.681 1.35808 6.173 1.13208 5.642 1.13208H2C0.966 1.13208 0.125 1.97308 0.125 3.00708V13.0071C0.125 14.0411 0.966 14.8821 2 14.8821H14C15.034 14.8821 15.875 14.0411 15.875 13.0071V5.00708C15.875 3.97308 15.034 3.13208 14 3.13208Z' fill='black'/%3E%3C/svg%3E%0A");
1145
- /* toolbarButton-bookmark.svg URL-encoder for SVG */
1146
- --toolbarButton-bookmark-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3.5C1.72421 3.5 1.5 3.72421 1.5 4V12C1.5 12.2758 1.72421 12.5 2 12.5H14C14.2758 12.5 14.5 12.2758 14.5 12V4C14.5 3.72421 14.2758 3.5 14 3.5H2ZM0 4C0 2.89579 0.895786 2 2 2H14C15.1042 2 16 2.89579 16 4V12C16 13.1042 15.1042 14 14 14H2C0.895786 14 0 13.1042 0 12V4ZM8.75 8.75H7.25V7.25H8.75V8.75ZM8.00001 4.625C5.91142 4.625 4.14736 5.94291 3.45159 7.77847L3.36761 8L3.45159 8.22153C4.14736 10.0571 5.91142 11.375 8.00001 11.375C10.0886 11.375 11.8527 10.0571 12.5484 8.22153L12.6324 8L12.5484 7.77847C11.8527 5.94291 10.0886 4.625 8.00001 4.625ZM8.00001 10.125C6.53912 10.125 5.28508 9.25455 4.71282 8C5.28508 6.74545 6.53912 5.875 8.00001 5.875C9.4609 5.875 10.7149 6.74545 11.2872 8C10.7149 9.25455 9.4609 10.125 8.00001 10.125Z' fill='black'/%3E%3C/svg%3E%0A");
1147
- /* toolbarButton-viewThumbnail.svg URL-encoder for SVG */
1148
- --toolbarButton-viewThumbnail-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 2C3.5 1.72421 3.72421 1.5 4 1.5H5.25C5.52579 1.5 5.75 1.72421 5.75 2V5.25C5.75 5.52579 5.52579 5.75 5.25 5.75H4C3.72421 5.75 3.5 5.52579 3.5 5.25V2ZM4 0C2.89579 0 2 0.895786 2 2V5.25C2 6.35421 2.89579 7.25 4 7.25H5.25C6.35421 7.25 7.25 6.35421 7.25 5.25V2C7.25 0.895786 6.35421 0 5.25 0H4ZM3.5 10.75C3.5 10.4742 3.72421 10.25 4 10.25H5.25C5.52579 10.25 5.75 10.4742 5.75 10.75V14C5.75 14.2758 5.52579 14.5 5.25 14.5H4C3.72421 14.5 3.5 14.2758 3.5 14V10.75ZM4 8.75C2.89579 8.75 2 9.64579 2 10.75V14C2 15.1042 2.89579 16 4 16H5.25C6.35421 16 7.25 15.1042 7.25 14V10.75C7.25 9.64579 6.35421 8.75 5.25 8.75H4ZM10.75 1.5C10.4742 1.5 10.25 1.72421 10.25 2V5.25C10.25 5.52579 10.4742 5.75 10.75 5.75H12C12.2758 5.75 12.5 5.52579 12.5 5.25V2C12.5 1.72421 12.2758 1.5 12 1.5H10.75ZM8.75 2C8.75 0.895786 9.64579 0 10.75 0H12C13.1042 0 14 0.895786 14 2V5.25C14 6.35421 13.1042 7.25 12 7.25H10.75C9.64579 7.25 8.75 6.35421 8.75 5.25V2ZM10.25 10.75C10.25 10.4742 10.4742 10.25 10.75 10.25H12C12.2758 10.25 12.5 10.4742 12.5 10.75V14C12.5 14.2758 12.2758 14.5 12 14.5H10.75C10.4742 14.5 10.25 14.2758 10.25 14V10.75ZM10.75 8.75C9.64579 8.75 8.75 9.64579 8.75 10.75V14C8.75 15.1042 9.64579 16 10.75 16H12C13.1042 16 14 15.1042 14 14V10.75C14 9.64579 13.1042 8.75 12 8.75H10.75Z' fill='black'/%3E%3C/svg%3E%0A");
1149
- /* toolbarButton-viewOutline.svg URL-encoder for SVG */
1150
- --toolbarButton-viewOutline-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1.25H15V2.75H3V1.25ZM15 5.25H3V6.75H15V5.25ZM15 13.25H3V14.75H15V13.25ZM15 9.25H6V10.75H15V9.25ZM0 5.25H1.5V6.75H0V5.25ZM1.5 13.25H0V14.75H1.5V13.25ZM0 1.25H1.5V2.75H0V1.25ZM4.5 9.25H3V10.75H4.5V9.25Z' fill='black'/%3E%3C/svg%3E%0A");
1151
- /* toolbarButton-viewAttachments.svg URL-encoder for SVG */
1152
- --toolbarButton-viewAttachments-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 3.75C3.5 1.67879 5.17879 0 7.25 0C9.32121 0 11 1.67879 11 3.75V10.25C11 11.4922 9.99221 12.5 8.75 12.5C7.50779 12.5 6.5 11.4922 6.5 10.25V3.5H8V10.25C8 10.6638 8.33621 11 8.75 11C9.16379 11 9.5 10.6638 9.5 10.25V3.75C9.5 2.50721 8.49279 1.5 7.25 1.5C6.00721 1.5 5 2.50721 5 3.75V10.75C5 12.8208 6.67921 14.5 8.75 14.5C10.8208 14.5 12.5 12.8208 12.5 10.75V3.5H14V10.75C14 13.6492 11.6492 16 8.75 16C5.85079 16 3.5 13.6492 3.5 10.75V3.75Z' fill='black'/%3E%3C/svg%3E%0A");
1153
- /* toolbarButton-viewLayers.svg URL-encoder for SVG */
1154
- --toolbarButton-viewLayers-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.36645 2.34562C8.13878 2.21813 7.86122 2.21813 7.63355 2.34562L1.38355 5.84562C1.14669 5.97826 1 6.22853 1 6.5C1 6.77147 1.14669 7.02174 1.38355 7.15438L7.63355 10.6544C7.86122 10.7819 8.13878 10.7819 8.36645 10.6544L14.6165 7.15438C14.8533 7.02174 15 6.77147 15 6.5C15 6.22853 14.8533 5.97826 14.6165 5.84562L8.36645 2.34562ZM8 9.14041L3.28499 6.5L8 3.85959L12.715 6.5L8 9.14041ZM1.63647 9.0766L7.99999 12.6404L14.3255 9.09761L15.0585 10.4063L8.36649 14.1543C8.13881 14.2818 7.86122 14.2819 7.63353 14.1543L0.903534 10.3853L1.63647 9.0766Z' fill='black'/%3E%3C/svg%3E%0A");
1155
- /* toolbarButton-currentOutlineItem.svg URL-encoder for SVG */
1156
- --toolbarButton-currentOutlineItem-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.803 4.74998V6.02436C10.803 6.39302 10.3571 6.57793 10.0967 6.31753L7.87716 4.098C7.71566 3.93649 7.71566 3.67434 7.87716 3.51283L10.0967 1.29329C10.3571 1.0329 10.8036 1.21722 10.8036 1.58588V3.24998H15V4.74998H10.803ZM8 1.24998H3V2.74998H6.5L8 1.24998ZM6.5 5.24998H3V6.74998H8L6.5 5.24998ZM3 13.25H15V14.75H3V13.25ZM6 9.24998H15V10.75H6V9.24998ZM1.5 5.24998H0V6.74998H1.5V5.24998ZM0 13.25H1.5V14.75H0V13.25ZM1.5 1.24998H0V2.74998H1.5V1.24998ZM3 9.24998H4.5V10.75H3V9.24998Z' fill='black'/%3E%3C/svg%3E%0A");
1157
- /* toolbarButton-search.svg URL-encoder for SVG */
1158
- --toolbarButton-search-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.089 10.973L13.934 14.817C13.9918 14.8754 14.0605 14.9218 14.1364 14.9534C14.2122 14.9851 14.2936 15.0013 14.3757 15.0012C14.4579 15.0011 14.5392 14.9847 14.6149 14.9529C14.6907 14.9211 14.7594 14.8746 14.817 14.816C14.875 14.7579 14.921 14.6889 14.9523 14.613C14.9836 14.5372 14.9997 14.4559 14.9996 14.3738C14.9995 14.2917 14.9833 14.2104 14.9518 14.1346C14.9203 14.0588 14.8741 13.99 14.816 13.932L10.983 10.1L10.989 9.67299C11.489 8.96674 11.8152 8.15249 11.9413 7.29642C12.0674 6.44034 11.9897 5.5666 11.7145 4.74621C11.4394 3.92582 10.9745 3.18192 10.3578 2.57498C9.74104 1.96804 8.98979 1.51519 8.16509 1.25322C7.34039 0.991255 6.46551 0.927572 5.61157 1.06735C4.75763 1.20712 3.94871 1.54641 3.25057 2.05764C2.55243 2.56887 1.98476 3.23761 1.59371 4.0095C1.20265 4.7814 0.999236 5.63468 1 6.49999C1 7.95868 1.57946 9.35763 2.61091 10.3891C3.64236 11.4205 5.04131 12 6.5 12C7.689 12 8.788 11.62 9.687 10.978L10.089 10.973V10.973ZM6.5 10.75C4.157 10.75 2.25 8.84299 2.25 6.49999C2.25 4.15699 4.157 2.24999 6.5 2.24999C8.843 2.24999 10.75 4.15699 10.75 6.49999C10.75 8.84299 8.843 10.75 6.5 10.75Z' fill='black'/%3E%3C/svg%3E%0A");
1159
- /* findbarButton-previous.svg URL-encoder for SVG */
1160
- --findbarButton-previous-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.001 8.352L10.466 13.818C10.5845 13.9303 10.7421 13.9918 10.9053 13.9895C11.0685 13.9872 11.2244 13.9212 11.3397 13.8057C11.4549 13.6902 11.5205 13.5342 11.5225 13.3709C11.5244 13.2077 11.4625 13.0502 11.35 12.932L6.416 7.999L11.349 3.067C11.4614 2.94864 11.5231 2.79106 11.521 2.62786C11.5189 2.46466 11.4531 2.30874 11.3377 2.19333C11.2223 2.07792 11.0663 2.01215 10.9031 2.01003C10.7399 2.00792 10.5824 2.06962 10.464 2.182L5 7.647L5.001 8.352Z' fill='black'/%3E%3C/svg%3E%0A");
1161
- /* findbarButton-next.svg URL-encoder for SVG */
1162
- --findbarButton-next-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.999 8.352L5.534 13.818C5.41551 13.9303 5.25786 13.9918 5.09466 13.9895C4.93146 13.9872 4.77561 13.9212 4.66033 13.8057C4.54505 13.6902 4.47945 13.5342 4.47752 13.3709C4.47559 13.2077 4.53748 13.0502 4.65 12.932L9.585 7.998L4.651 3.067C4.53862 2.94864 4.47691 2.79106 4.47903 2.62786C4.48114 2.46466 4.54692 2.30874 4.66233 2.19333C4.77774 2.07792 4.93366 2.01215 5.09686 2.01003C5.26006 2.00792 5.41763 2.06962 5.536 2.182L11 7.647L10.999 8.352Z' fill='black'/%3E%3C/svg%3E%0A");
1163
- /* secondaryToolbarButton-firstPage.svg URL-encoder for SVG */
1164
- --secondaryToolbarButton-firstPage-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 3.5H2V5H14V3.5ZM8 8.811L12.939 13.75L14.001 12.689L8.531 7.219C8.238 6.926 7.763 6.926 7.47 7.219L2 12.689L3.061 13.75L8 8.811Z' fill='black'/%3E%3C/svg%3E%0A");
1165
- /* secondaryToolbarButton-lastPage.svg URL-encoder for SVG */
1166
- --secondaryToolbarButton-lastPage-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 8.189L12.939 3.25L14 4.311L8.531 9.781C8.238 10.074 7.763 10.074 7.47 9.781L2 4.311L3.061 3.25L8 8.189ZM14 13.5V12H2V13.5H14Z' fill='black'/%3E%3C/svg%3E%0A");
1167
- /* secondaryToolbarButton-rotateCcw.svg URL-encoder for SVG */
1168
- --secondaryToolbarButton-rotateCcw-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4105 4.83612L4.77001 6.19601C5.06701 6.49201 4.85701 7.00001 4.43701 7.00001H0.862006C0.602006 7.00001 0.391006 6.78901 0.391006 6.52901V2.95401C0.391006 2.53401 0.899006 2.32401 1.19601 2.62101L2.32796 3.75328C3.67958 1.78973 5.9401 0.5 8.5 0.5C12.636 0.5 16 3.864 16 8C16 12.136 12.636 15.5 8.5 15.5C4.704 15.5 1.566 12.663 1.075 9H2.59C3.068 11.833 5.532 14 8.5 14C11.809 14 14.5 11.309 14.5 8C14.5 4.691 11.809 2 8.5 2C6.35262 2 4.46893 3.13503 3.4105 4.83612Z' fill='black'/%3E%3C/svg%3E%0A");
1169
- /* secondaryToolbarButton-rotateCw.svg URL-encoder for SVG */
1170
- --secondaryToolbarButton-rotateCw-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5895 4.83613L11.23 6.19601C10.933 6.49201 11.143 7.00001 11.563 7.00001H15.138C15.398 7.00001 15.609 6.78901 15.609 6.52901V2.95401C15.609 2.53401 15.101 2.32401 14.804 2.62101L13.672 3.75328C12.3204 1.78973 10.0599 0.5 7.5 0.5C3.364 0.5 0 3.864 0 8C0 12.136 3.364 15.5 7.5 15.5C11.296 15.5 14.434 12.663 14.925 9H13.41C12.932 11.833 10.468 14 7.5 14C4.191 14 1.5 11.309 1.5 8C1.5 4.691 4.191 2 7.5 2C9.64738 2 11.5311 3.13503 12.5895 4.83613Z' fill='black'/%3E%3C/svg%3E%0A");
1171
- /* secondaryToolbarButton-selectTool.svg URL-encoder for SVG */
1172
- --secondaryToolbarButton-selectTool-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.371588 2.93131C-0.203366 1.33422 1.3342 -0.20335 2.93129 0.371603L2.93263 0.372085L12.0716 3.68171C12.0718 3.68178 12.0714 3.68163 12.0716 3.68171C13.4459 4.17758 13.8478 5.9374 12.8076 6.9776L11.8079 7.97727L14.6876 10.8569C15.4705 11.6398 15.4705 12.9047 14.6876 13.6876L13.6476 14.7276C12.8647 15.5105 11.5998 15.5105 10.8169 14.7276L7.93725 11.8479L6.97758 12.8076C5.93739 13.8478 4.17779 13.4465 3.68192 12.0722C3.68184 12.072 3.682 12.0724 3.68192 12.0722L0.371588 2.93131ZM1.78292 2.42323C1.78298 2.4234 1.78286 2.42305 1.78292 2.42323L5.09281 11.5629C5.21725 11.9082 5.65728 12.0066 5.91692 11.7469L7.93725 9.72661L11.8776 13.6669C12.0747 13.864 12.3898 13.864 12.5869 13.6669L13.6269 12.6269C13.824 12.4298 13.824 12.1147 13.6269 11.9176L9.68659 7.97727L11.7469 5.91694C12.0066 5.65729 11.9081 5.21727 11.5629 5.09283L11.5619 5.09245L2.42321 1.78293C2.42304 1.78287 2.42339 1.783 2.42321 1.78293C2.02067 1.63847 1.63846 2.02069 1.78292 2.42323Z' fill='black'/%3E%3C/svg%3E%0A");
1173
- /* secondaryToolbarButton-handTool.svg URL-encoder for SVG */
1174
- --secondaryToolbarButton-handTool-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.75 2.125C7.75 1.78021 8.03021 1.5 8.375 1.5C8.71979 1.5 9 1.78021 9 2.125V3.125V8H10.5V3.125C10.5 2.78021 10.7802 2.5 11.125 2.5C11.4698 2.5 11.75 2.78021 11.75 3.125V4.625V8H13.25V4.625C13.25 4.28021 13.5302 4 13.875 4C14.2198 4 14.5 4.28021 14.5 4.625V12.0188L13.3802 13.6628C13.2954 13.7872 13.25 13.9344 13.25 14.085V16H14.75V14.3162L15.8698 12.6722C15.9546 12.5478 16 12.4006 16 12.25V4.625C16 3.45179 15.0482 2.5 13.875 2.5C13.6346 2.5 13.4035 2.53996 13.188 2.6136C12.959 1.68724 12.1219 1 11.125 1C10.8235 1 10.5366 1.06286 10.2768 1.17618C9.9281 0.478968 9.20726 0 8.375 0C7.54274 0 6.8219 0.478968 6.47323 1.17618C6.21337 1.06286 5.9265 1 5.625 1C4.45179 1 3.5 1.95179 3.5 3.125V7.25317C2.66504 6.54282 1.41035 6.58199 0.621672 7.37067C-0.208221 8.20056 -0.208221 9.54644 0.621672 10.3763L0.62188 10.3765L5.499 15.2498V16H6.999V14.939C6.999 14.74 6.9199 14.5491 6.77912 14.4085L1.68233 9.31567C1.43823 9.07156 1.43823 8.67544 1.68233 8.43133C1.92644 8.18722 2.32257 8.18722 2.56667 8.43133L3.71967 9.58433C3.93417 9.79883 4.25676 9.863 4.53701 9.74691C4.81727 9.63082 5 9.35735 5 9.054V3.125C5 2.78021 5.28022 2.5 5.625 2.5C5.96921 2.5 6.24906 2.77927 6.25 3.12326V8H7.75L7.75 3.125L7.75 3.12178V2.125Z' fill='black'/%3E%3C/svg%3E%0A");
1175
- /* secondaryToolbarButton-scrollPage.svg URL-encoder for SVG */
1176
- --secondaryToolbarButton-scrollPage-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 2C3.5 1.72421 3.72421 1.5 4 1.5H12C12.2758 1.5 12.5 1.72421 12.5 2V14C12.5 14.2758 12.2758 14.5 12 14.5H4C3.72421 14.5 3.5 14.2758 3.5 14V2ZM4 0C2.89579 0 2 0.895786 2 2V14C2 15.1042 2.89579 16 4 16H12C13.1042 16 14 15.1042 14 14V2C14 0.895786 13.1042 0 12 0H4ZM5.89301 6H7.25V10H5.89301C5.54301 10 5.36801 10.423 5.61501 10.67L7.72101 12.776C7.87401 12.929 8.12301 12.929 8.27601 12.776L10.383 10.669C10.63 10.422 10.455 9.99902 10.105 9.99902H8.75V6H10.106C10.456 6 10.632 5.577 10.383 5.331L8.27601 3.224C8.12301 3.071 7.87401 3.071 7.72101 3.224L5.61501 5.33C5.36801 5.577 5.54301 6 5.89301 6Z' fill='black'/%3E%3C/svg%3E%0A");
1177
- /* secondaryToolbarButton-scrollVertical.svg URL-encoder for SVG */
1178
- --secondaryToolbarButton-scrollVertical-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 1V1.25H2.01476C2.11834 2.13279 2.7621 3 3.78 3H11.72C12.7379 3 13.3817 2.13279 13.4852 1.25H13.5V1H12C12 1.18133 11.9391 1.32279 11.8697 1.40708C11.8018 1.48961 11.7454 1.5 11.72 1.5H3.78C3.75458 1.5 3.69823 1.48961 3.63029 1.40708C3.5609 1.32279 3.5 1.18133 3.5 1H2ZM4 6C3.72386 6 3.5 6.22386 3.5 6.5V10C3.5 10.2761 3.72386 10.5 4 10.5H11.5C11.7761 10.5 12 10.2761 12 10V6.5C12 6.22386 11.7761 6 11.5 6H4ZM2 6.5C2 5.39543 2.89543 4.5 4 4.5H11.5C12.6046 4.5 13.5 5.39543 13.5 6.5V10C13.5 11.1046 12.6046 12 11.5 12H4C2.89543 12 2 11.1046 2 10V6.5ZM3.78 13.5C2.7621 13.5 2.11834 14.3672 2.01476 15.25H2V15.5H3.5C3.5 15.3187 3.5609 15.1772 3.63029 15.0929C3.69823 15.0104 3.75458 15 3.78 15H11.72C11.7454 15 11.8018 15.0104 11.8697 15.0929C11.9391 15.1772 12 15.3187 12 15.5H13.5V15.25H13.4852C13.3817 14.3672 12.7379 13.5 11.72 13.5H3.78Z' fill='black'/%3E%3C/svg%3E%0A");
1179
- /* secondaryToolbarButton-scrollHorizontal.svg URL-encoder for SVG */
1180
- --secondaryToolbarButton-scrollHorizontal-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3.78C3 2.7621 2.13279 2.11834 1.25 2.01476V2H1V3.5C1.18133 3.5 1.32279 3.5609 1.40708 3.63029C1.48961 3.69823 1.5 3.75458 1.5 3.78V11.72C1.5 11.7454 1.48961 11.8018 1.40708 11.8697C1.32279 11.9391 1.18133 12 1 12V13.5H1.25V13.4852C2.13279 13.3817 3 12.7379 3 11.72V3.78ZM10.5 4C10.5 3.72386 10.2761 3.5 10 3.5H6.5C6.22386 3.5 6 3.72386 6 4V11.5C6 11.7761 6.22386 12 6.5 12H10C10.2761 12 10.5 11.7761 10.5 11.5V4ZM10 2C11.1046 2 12 2.89543 12 4V11.5C12 12.6046 11.1046 13.5 10 13.5H6.5C5.39543 13.5 4.5 12.6046 4.5 11.5V4C4.5 2.89543 5.39543 2 6.5 2H10ZM15.5 2H15.25V2.01476C14.3672 2.11834 13.5 2.7621 13.5 3.78V11.72C13.5 12.7379 14.3672 13.3817 15.25 13.4852V13.5H15.5V12C15.3187 12 15.1772 11.9391 15.0929 11.8697C15.0104 11.8018 15 11.7454 15 11.72V3.78C15 3.75458 15.0104 3.69823 15.0929 3.63029C15.1772 3.5609 15.3187 3.5 15.5 3.5V2Z' fill='black'/%3E%3C/svg%3E%0A");
1181
- /* secondaryToolbarButton-scrollWrapped.svg URL-encoder for SVG */
1182
- --secondaryToolbarButton-scrollWrapped-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 1C2.5 1.27579 2.72421 1.5 3 1.5H5C5.27579 1.5 5.5 1.27579 5.5 1H7C7 2.10421 6.10421 3 5 3H3C1.89579 3 1 2.10421 1 1H2.5ZM2.5 6C2.5 5.72421 2.72421 5.5 3 5.5H5C5.27579 5.5 5.5 5.72421 5.5 6V10C5.5 10.2758 5.27579 10.5 5 10.5H3C2.72421 10.5 2.5 10.2758 2.5 10V6ZM3 4C1.89579 4 1 4.89579 1 6V10C1 11.1042 1.89579 12 3 12H5C6.10421 12 7 11.1042 7 10V6C7 4.89579 6.10421 4 5 4H3ZM10 6C10 5.72421 10.2242 5.5 10.5 5.5H12.5C12.7758 5.5 13 5.72421 13 6V10C13 10.2758 12.7758 10.5 12.5 10.5H10.5C10.2242 10.5 10 10.2758 10 10V6ZM10.5 4C9.39579 4 8.5 4.89579 8.5 6V10C8.5 11.1042 9.39579 12 10.5 12H12.5C13.6042 12 14.5 11.1042 14.5 10V6C14.5 4.89579 13.6042 4 12.5 4H10.5ZM3 14.5C2.72421 14.5 2.5 14.7242 2.5 15H1C1 13.8958 1.89579 13 3 13H5C6.10421 13 7 13.8958 7 15H5.5C5.5 14.7242 5.27579 14.5 5 14.5H3ZM10 15C10 14.7242 10.2242 14.5 10.5 14.5H12.5C12.7758 14.5 13 14.7242 13 15H14.5C14.5 13.8958 13.6042 13 12.5 13H10.5C9.39579 13 8.5 13.8958 8.5 15H10ZM10.5 1.5C10.2242 1.5 10 1.27579 10 1H8.5C8.5 2.10421 9.39579 3 10.5 3H12.5C13.6042 3 14.5 2.10421 14.5 1H13C13 1.27579 12.7758 1.5 12.5 1.5H10.5Z' fill='black'/%3E%3C/svg%3E%0A");
1183
- /* secondaryToolbarButton-spreadNone.svg URL-encoder for SVG */
1184
- --secondaryToolbarButton-spreadNone-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 1.5C3.72421 1.5 3.5 1.72421 3.5 2V14C3.5 14.2758 3.72421 14.5 4 14.5H12C12.2758 14.5 12.5 14.2758 12.5 14V2C12.5 1.72421 12.2758 1.5 12 1.5H4ZM2 2C2 0.895786 2.89579 0 4 0H12C13.1042 0 14 0.895786 14 2V14C14 15.1042 13.1042 16 12 16H4C2.89579 16 2 15.1042 2 14V2Z' fill='black'/%3E%3C/svg%3E%0A");
1185
- /* secondaryToolbarButton-spreadOdd.svg URL-encoder for SVG */
1186
- --secondaryToolbarButton-spreadOdd-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4C1.5 3.72421 1.72421 3.5 2 3.5H7.25V13H2C1.72421 13 1.5 12.7758 1.5 12.5V4ZM8.75 13V3.5H14C14.2758 3.5 14.5 3.72421 14.5 4V12.5C14.5 12.7758 14.2758 13 14 13H8.75ZM2 2C0.895786 2 0 2.89579 0 4V12.5C0 13.6042 0.895786 14.5 2 14.5H14C15.1042 14.5 16 13.6042 16 12.5V4C16 2.89579 15.1042 2 14 2H2ZM4.75 5H3V6.5H4V11.5H5.5V5.75C5.5 5.33579 5.16421 5 4.75 5ZM10 6.5H11.5V7.28647L10.4146 7.82918C10.1605 7.95622 10 8.21592 10 8.5V10.75C10 11.1642 10.3358 11.5 10.75 11.5H13V10H11.5V8.96353L12.5854 8.42082C12.8395 8.29378 13 8.03408 13 7.75V5.75C13 5.33579 12.6642 5 12.25 5H10V6.5Z' fill='black'/%3E%3C/svg%3E%0A");
1187
- /* secondaryToolbarButton-spreadEven.svg URL-encoder for SVG */
1188
- --secondaryToolbarButton-spreadEven-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2 3.5C1.72421 3.5 1.5 3.72421 1.5 4V12.5C1.5 12.7758 1.72421 13 2 13H7.25V3.5H2ZM14 13H8.75V3.5H14C14.2758 3.5 14.5 3.72421 14.5 4V12.5C14.5 12.7758 14.2758 13 14 13ZM0 4C0 2.89579 0.895786 2 2 2H14C15.1042 2 16 2.89579 16 4V12.5C16 13.6042 15.1042 14.5 14 14.5H2C0.895786 14.5 0 13.6042 0 12.5V4ZM10 6.5H11.5V7.5H10V9H11.5V10H10V11.5H12.25C12.6642 11.5 13 11.1642 13 10.75V5.75C13 5.33579 12.6642 5 12.25 5H10V6.5ZM4.5 6.5H3V5H5.25C5.66421 5 6 5.33579 6 5.75V7.75C6 8.03408 5.8395 8.29378 5.58541 8.42082L4.5 8.96353V10H6V11.5H3.75C3.33579 11.5 3 11.1642 3 10.75V8.5C3 8.21592 3.1605 7.95622 3.41459 7.82918L4.5 7.28647V6.5Z' fill='black'/%3E%3C/svg%3E%0A");
1189
- /* secondaryToolbarButton-documentProperties.svg URL-encoder for SVG */
1190
- --secondaryToolbarButton-documentProperties-icon: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8ZM8.75 4V5.5H7.25V4H8.75ZM8.75 12V7H7.25V12H8.75Z' fill='black'/%3E%3C/svg%3E%0A");
1257
+ --dir-factor: 1;
1258
+ --inline-start: left;
1259
+ --inline-end: right;
1260
+
1261
+ --sidebar-width: 200px;
1262
+ --sidebar-transition-duration: 200ms;
1263
+ --sidebar-transition-timing-function: ease;
1264
+
1265
+ --toolbar-icon-opacity: 0.7;
1266
+ --doorhanger-icon-opacity: 0.9;
1267
+
1268
+ --main-color: rgba(12, 12, 13, 1);
1269
+ --body-bg-color: rgba(212, 212, 215, 1);
1270
+ --progressBar-color: rgba(10, 132, 255, 1);
1271
+ --progressBar-bg-color: rgba(221, 221, 222, 1);
1272
+ --progressBar-blend-color: rgba(116, 177, 239, 1);
1273
+ --scrollbar-color: auto;
1274
+ --scrollbar-bg-color: auto;
1275
+ --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
1276
+ --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
1277
+
1278
+ --sidebar-narrow-bg-color: rgba(212, 212, 215, 0.9);
1279
+ --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
1280
+ --toolbar-bg-color: rgba(249, 249, 250, 1);
1281
+ --toolbar-border-color: rgba(184, 184, 184, 1);
1282
+ --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
1283
+ --toolbar-border-bottom: none;
1284
+ --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0
1285
+ rgba(0, 0, 0, 0.25),
1286
+ 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
1287
+ --toolbarSidebar-border-bottom: none;
1288
+ --button-hover-color: rgba(221, 222, 223, 1);
1289
+ --toggled-btn-color: rgba(0, 0, 0, 1);
1290
+ --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
1291
+ --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
1292
+ --toggled-hover-btn-outline: none;
1293
+ --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
1294
+ --dropdown-btn-border: none;
1295
+ --separator-color: rgba(0, 0, 0, 0.3);
1296
+ --field-color: rgba(6, 6, 6, 1);
1297
+ --field-bg-color: rgba(255, 255, 255, 1);
1298
+ --field-border-color: rgba(187, 187, 188, 1);
1299
+ --treeitem-color: rgba(0, 0, 0, 0.8);
1300
+ --treeitem-bg-color: rgba(0, 0, 0, 0.15);
1301
+ --treeitem-hover-color: rgba(0, 0, 0, 0.9);
1302
+ --treeitem-selected-color: rgba(0, 0, 0, 0.9);
1303
+ --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
1304
+ --thumbnail-hover-color: rgba(0, 0, 0, 0.1);
1305
+ --thumbnail-selected-color: rgba(0, 0, 0, 0.2);
1306
+ --doorhanger-bg-color: rgba(255, 255, 255, 1);
1307
+ --doorhanger-border-color: rgba(12, 12, 13, 0.2);
1308
+ --doorhanger-hover-color: rgba(12, 12, 13, 1);
1309
+ --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
1310
+ --doorhanger-separator-color: rgba(222, 222, 222, 1);
1311
+ --dialog-button-border: none;
1312
+ --dialog-button-bg-color: rgba(12, 12, 13, 0.1);
1313
+ --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3);
1314
+
1315
+ --loading-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/loading.svg);
1316
+ --treeitem-expanded-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/treeitem-expanded.svg);
1317
+ --treeitem-collapsed-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/treeitem-collapsed.svg);
1318
+ --toolbarButton-editorFreeText-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-editorFreeText.svg);
1319
+ --toolbarButton-editorInk-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-editorInk.svg);
1320
+ --toolbarButton-editorStamp-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-editorStamp.svg);
1321
+ --toolbarButton-menuArrow-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-menuArrow.svg);
1322
+ --toolbarButton-sidebarToggle-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-sidebarToggle.svg);
1323
+ --toolbarButton-secondaryToolbarToggle-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-secondaryToolbarToggle.svg);
1324
+ --toolbarButton-pageUp-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-pageUp.svg);
1325
+ --toolbarButton-pageDown-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-pageDown.svg);
1326
+ --toolbarButton-zoomOut-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-zoomOut.svg);
1327
+ --toolbarButton-zoomIn-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-zoomIn.svg);
1328
+ --toolbarButton-presentationMode-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-presentationMode.svg);
1329
+ --toolbarButton-print-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-print.svg);
1330
+ --toolbarButton-openFile-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-openFile.svg);
1331
+ --toolbarButton-download-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-download.svg);
1332
+ --toolbarButton-bookmark-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-bookmark.svg);
1333
+ --toolbarButton-viewThumbnail-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-viewThumbnail.svg);
1334
+ --toolbarButton-viewOutline-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-viewOutline.svg);
1335
+ --toolbarButton-viewAttachments-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-viewAttachments.svg);
1336
+ --toolbarButton-viewLayers-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-viewLayers.svg);
1337
+ --toolbarButton-currentOutlineItem-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-currentOutlineItem.svg);
1338
+ --toolbarButton-search-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/toolbarButton-search.svg);
1339
+ --findbarButton-previous-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/findbarButton-previous.svg);
1340
+ --findbarButton-next-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/findbarButton-next.svg);
1341
+ --secondaryToolbarButton-firstPage-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-firstPage.svg);
1342
+ --secondaryToolbarButton-lastPage-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-lastPage.svg);
1343
+ --secondaryToolbarButton-rotateCcw-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCcw.svg);
1344
+ --secondaryToolbarButton-rotateCw-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCw.svg);
1345
+ --secondaryToolbarButton-selectTool-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-selectTool.svg);
1346
+ --secondaryToolbarButton-handTool-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-handTool.svg);
1347
+ --secondaryToolbarButton-scrollPage-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollPage.svg);
1348
+ --secondaryToolbarButton-scrollVertical-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollVertical.svg);
1349
+ --secondaryToolbarButton-scrollHorizontal-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollHorizontal.svg);
1350
+ --secondaryToolbarButton-scrollWrapped-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollWrapped.svg);
1351
+ --secondaryToolbarButton-spreadNone-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadNone.svg);
1352
+ --secondaryToolbarButton-spreadOdd-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadOdd.svg);
1353
+ --secondaryToolbarButton-spreadEven-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadEven.svg);
1354
+ --secondaryToolbarButton-documentProperties-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/secondaryToolbarButton-documentProperties.svg);
1191
1355
  }
1192
1356
 
1193
1357
  [dir="rtl"]:root {
1194
1358
  --dir-factor: -1;
1359
+ --inline-start: right;
1360
+ --inline-end: left;
1195
1361
  }
1196
1362
 
1197
1363
  @media (prefers-color-scheme: dark) {
1198
- :root {
1199
- --main-color: rgba(249, 249, 250, 1);
1200
- --body-bg-color: rgba(42, 42, 46, 1);
1201
- --progressBar-color: rgba(0, 96, 223, 1);
1202
- --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
1203
- --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
1204
- --scrollbar-color: rgba(121, 121, 123, 1);
1205
- --scrollbar-bg-color: rgba(35, 35, 39, 1);
1206
- --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
1207
- --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
1208
- --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
1209
- --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
1210
- --toolbar-bg-color: rgba(56, 56, 61, 1);
1211
- --toolbar-border-color: rgba(12, 12, 13, 1);
1212
- --button-hover-color: rgba(102, 102, 103, 1);
1213
- --toggled-btn-color: rgba(255, 255, 255, 1);
1214
- --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
1215
- --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
1216
- --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
1217
- --separator-color: rgba(0, 0, 0, 0.3);
1218
- --field-color: rgba(250, 250, 250, 1);
1219
- --field-bg-color: rgba(64, 64, 68, 1);
1220
- --field-border-color: rgba(115, 115, 115, 1);
1221
- --treeitem-color: rgba(255, 255, 255, 0.8);
1222
- --treeitem-hover-color: rgba(255, 255, 255, 0.9);
1223
- --treeitem-selected-color: rgba(255, 255, 255, 0.9);
1224
- --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
1225
- --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
1226
- --doorhanger-bg-color: rgba(74, 74, 79, 1);
1227
- --doorhanger-border-color: rgba(39, 39, 43, 1);
1228
- --doorhanger-hover-color: rgba(249, 249, 250, 1);
1229
- --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
1230
- --doorhanger-separator-color: rgba(92, 92, 97, 1);
1231
- --dialog-button-bg-color: rgba(92, 92, 97, 1);
1232
- --dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
1233
- /* This image is used in <input> elements, which unfortunately means that
1364
+ :root {
1365
+ --main-color: rgba(249, 249, 250, 1);
1366
+ --body-bg-color: rgba(42, 42, 46, 1);
1367
+ --progressBar-color: rgba(0, 96, 223, 1);
1368
+ --progressBar-bg-color: rgba(40, 40, 43, 1);
1369
+ --progressBar-blend-color: rgba(20, 68, 133, 1);
1370
+ --scrollbar-color: rgba(121, 121, 123, 1);
1371
+ --scrollbar-bg-color: rgba(35, 35, 39, 1);
1372
+ --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
1373
+ --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
1374
+
1375
+ --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
1376
+ --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
1377
+ --toolbar-bg-color: rgba(56, 56, 61, 1);
1378
+ --toolbar-border-color: rgba(12, 12, 13, 1);
1379
+ --button-hover-color: rgba(102, 102, 103, 1);
1380
+ --toggled-btn-color: rgba(255, 255, 255, 1);
1381
+ --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
1382
+ --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
1383
+ --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
1384
+ --separator-color: rgba(0, 0, 0, 0.3);
1385
+ --field-color: rgba(250, 250, 250, 1);
1386
+ --field-bg-color: rgba(64, 64, 68, 1);
1387
+ --field-border-color: rgba(115, 115, 115, 1);
1388
+ --treeitem-color: rgba(255, 255, 255, 0.8);
1389
+ --treeitem-bg-color: rgba(255, 255, 255, 0.15);
1390
+ --treeitem-hover-color: rgba(255, 255, 255, 0.9);
1391
+ --treeitem-selected-color: rgba(255, 255, 255, 0.9);
1392
+ --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
1393
+ --thumbnail-hover-color: rgba(255, 255, 255, 0.1);
1394
+ --thumbnail-selected-color: rgba(255, 255, 255, 0.2);
1395
+ --doorhanger-bg-color: rgba(74, 74, 79, 1);
1396
+ --doorhanger-border-color: rgba(39, 39, 43, 1);
1397
+ --doorhanger-hover-color: rgba(249, 249, 250, 1);
1398
+ --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
1399
+ --doorhanger-separator-color: rgba(92, 92, 97, 1);
1400
+ --dialog-button-bg-color: rgba(92, 92, 97, 1);
1401
+ --dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
1402
+
1403
+ /* This image is used in <input> elements, which unfortunately means that
1234
1404
  * the `mask-image` approach used with all of the other images doesn't work
1235
1405
  * here; hence why we still have two versions of this particular image. */
1236
- /* loading-dark.svg URL-encoder for SVG */
1237
- --loading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16'%0Afill='rgba(255,255,255,1)' style='animation:spinLoadingIcon 1s steps(12,end)%0Ainfinite'%3E%3Cstyle%3E@keyframes%0AspinLoadingIcon%7Bto%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath%0Ad='M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z'/%3E%3Cpath d='M4.63%0A4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37%0A1.37c-.87.57-1.37-.37-1.37-.37z' fill-opacity='.93'/%3E%3Cpath%0Ad='M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37%0A1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.86'/%3E%3Cpath d='M3%0A9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.79'/%3E%3Cpath d='M4.1 11.37l-1.73 1S1.5 12.87 1%0A12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z'%0Afill-opacity='.72'/%3E%3Cpath d='M3.63 13.56l1-1.73s.5-.87%0A1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z'%0Afill-opacity='.65'/%3E%3Cpath d='M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1%0A1-1-1-1-1z' fill-opacity='.58'/%3E%3Cpath d='M10.63%0A14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37%0A1.37c-.87.5-1.37-.37-1.37-.37z' fill-opacity='.51'/%3E%3Cpath%0Ad='M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37%0A1.37c-.5.87-1.37.37-1.37.37z' fill-opacity='.44'/%3E%3Cpath d='M15%0A9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z' fill-opacity='.37'/%3E%3Cpath d='M14.56 5.37l-1.73%0A1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37%0A1.37z' fill-opacity='.3'/%3E%3Cpath d='M9.64 3.1l.98-1.66s.5-.874%0A1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z'%0Afill-opacity='.23'/%3E%3C/svg%3E");
1238
- }
1406
+ --loading-icon: url(@vitrosoftware/common-ui-ts/css/std/controls/pdf-viewer/img/loading-dark.svg);
1407
+ }
1239
1408
  }
1240
1409
 
1241
1410
  @media screen and (forced-colors: active) {
@@ -1245,6 +1414,8 @@ html[dir='ltr'] * {
1245
1414
  --toolbar-icon-opacity: 1;
1246
1415
  --toolbar-icon-bg-color: ButtonText;
1247
1416
  --toolbar-icon-hover-bg-color: ButtonFace;
1417
+ --toggled-hover-active-btn-color: ButtonText;
1418
+ --toggled-hover-btn-outline: 2px solid ButtonBorder;
1248
1419
  --toolbar-border-color: CanvasText;
1249
1420
  --toolbar-border-bottom: 1px solid var(--toolbar-border-color);
1250
1421
  --toolbar-box-shadow: none;
@@ -1266,8 +1437,15 @@ html[dir='ltr'] * {
1266
1437
  }
1267
1438
  }
1268
1439
 
1269
- html[dir='ltr'] {
1270
- background: rgba(237, 237, 240, 1) !important;
1440
+ @media screen and (prefers-reduced-motion: reduce) {
1441
+ :root {
1442
+ --sidebar-transition-duration: 0;
1443
+ }
1444
+ }
1445
+
1446
+ * {
1447
+ padding: 0;
1448
+ margin: 0;
1271
1449
  }
1272
1450
 
1273
1451
  html,
@@ -1276,9 +1454,9 @@ body {
1276
1454
  width: 100%;
1277
1455
  }
1278
1456
 
1279
- html[dir='ltr'] body {
1280
- background-color: var(--body-bg-color);
1281
- scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
1457
+ body {
1458
+ background-color: var(--body-bg-color);
1459
+ scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
1282
1460
  }
1283
1461
 
1284
1462
  .hidden,
@@ -1336,96 +1514,47 @@ html[dir='ltr'] body {
1336
1514
  position: relative;
1337
1515
  }
1338
1516
 
1339
- [dir="ltr"] #sidebarContainer {
1340
- left: calc(-1 * var(--sidebar-width));
1341
- }
1342
-
1343
- [dir="rtl"] #sidebarContainer {
1344
- right: calc(-1 * var(--sidebar-width));
1345
- }
1346
-
1347
- [dir="ltr"] #sidebarContainer {
1348
- border-right: var(--doorhanger-border-color-whcm);
1349
- }
1350
-
1351
- [dir="rtl"] #sidebarContainer {
1352
- border-left: var(--doorhanger-border-color-whcm);
1353
- }
1354
-
1355
- [dir="ltr"] #sidebarContainer {
1356
- transition-property: left;
1357
- }
1358
-
1359
- [dir="rtl"] #sidebarContainer {
1360
- transition-property: right;
1361
- }
1362
-
1363
1517
  #sidebarContainer {
1364
1518
  position: absolute;
1365
- top: 32px;
1366
- bottom: 0;
1519
+ inset-block: 32px 0;
1367
1520
  inset-inline-start: calc(-1 * var(--sidebar-width));
1368
1521
  width: var(--sidebar-width);
1369
1522
  visibility: hidden;
1370
1523
  z-index: 100;
1371
1524
  font: message-box;
1372
1525
  border-top: 1px solid rgba(51, 51, 51, 1);
1373
- -webkit-border-end: var(--doorhanger-border-color-whcm);
1374
- border-inline-end: var(--doorhanger-border-color-whcm);
1526
+ border-inline-end: var(--doorhanger-border-color-whcm);
1375
1527
  transition-property: inset-inline-start;
1376
1528
  transition-duration: var(--sidebar-transition-duration);
1377
1529
  transition-timing-function: var(--sidebar-transition-timing-function);
1378
1530
  }
1379
1531
 
1380
- #outerContainer.sidebarMoving #sidebarContainer,
1381
- #outerContainer.sidebarOpen #sidebarContainer {
1532
+ #outerContainer:is(.sidebarMoving, .sidebarOpen) #sidebarContainer {
1382
1533
  visibility: visible;
1383
1534
  }
1384
- [dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer {
1385
- left: 0;
1386
- }
1387
- [dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
1388
- right: 0;
1389
- }
1390
1535
  #outerContainer.sidebarOpen #sidebarContainer {
1391
1536
  inset-inline-start: 0;
1392
1537
  }
1393
1538
 
1394
1539
  #mainContainer {
1395
1540
  position: absolute;
1396
- top: 0;
1397
- right: 0;
1398
- bottom: 0;
1399
- left: 0;
1541
+ inset: 0;
1400
1542
  min-width: 350px;
1401
1543
  }
1402
1544
 
1403
- [dir="ltr"] #sidebarContent {
1404
- left: 0;
1405
- }
1406
-
1407
- [dir="rtl"] #sidebarContent {
1408
- right: 0;
1409
- }
1410
-
1411
1545
  #sidebarContent {
1412
- top: 32px;
1413
- bottom: 0;
1546
+ inset-block: 32px 0;
1414
1547
  inset-inline-start: 0;
1415
1548
  overflow: auto;
1416
1549
  position: absolute;
1417
1550
  width: 100%;
1418
- background-color: rgba(0, 0, 0, 0.1);
1419
1551
  box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25);
1420
1552
  }
1421
1553
 
1422
1554
  #viewerContainer {
1423
1555
  overflow: auto;
1424
1556
  position: absolute;
1425
- top: 32px;
1426
- right: 0;
1427
- bottom: 0;
1428
- left: 0;
1557
+ inset: 32px 0 0;
1429
1558
  outline: none;
1430
1559
  }
1431
1560
  #viewerContainer:not(.pdfPresentationMode) {
@@ -1433,22 +1562,6 @@ html[dir='ltr'] body {
1433
1562
  transition-timing-function: var(--sidebar-transition-timing-function);
1434
1563
  }
1435
1564
 
1436
- [dir="ltr"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
1437
- left: var(--sidebar-width);
1438
- }
1439
-
1440
- [dir="rtl"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
1441
- right: var(--sidebar-width);
1442
- }
1443
-
1444
- [dir="ltr"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
1445
- transition-property: left;
1446
- }
1447
-
1448
- [dir="rtl"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
1449
- transition-property: right;
1450
- }
1451
-
1452
1565
  #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
1453
1566
  inset-inline-start: var(--sidebar-width);
1454
1567
  transition-property: inset-inline-start;
@@ -1456,29 +1569,15 @@ html[dir='ltr'] body {
1456
1569
 
1457
1570
  .toolbar {
1458
1571
  position: relative;
1459
- left: 0;
1460
- right: 0;
1572
+ inset-inline: 0;
1461
1573
  z-index: 9999;
1462
1574
  cursor: default;
1463
1575
  font: message-box;
1464
1576
  }
1465
1577
 
1466
- .toolbar input,
1467
- .toolbar button,
1468
- .toolbar select,
1469
- .secondaryToolbar input,
1470
- .secondaryToolbar button,
1471
- .secondaryToolbar a,
1472
- .secondaryToolbar select,
1473
- .editorParamsToolbar input,
1474
- .editorParamsToolbar button,
1475
- .editorParamsToolbar select,
1476
- .findbar input,
1477
- .findbar button,
1478
- .findbar select,
1479
- #sidebarContainer input,
1480
- #sidebarContainer button,
1481
- #sidebarContainer select {
1578
+ :is(.toolbar, .editorParamsToolbar, .findbar, #sidebarContainer)
1579
+ :is(input, button, select),
1580
+ .secondaryToolbar :is(input, button, a, select) {
1482
1581
  outline: none;
1483
1582
  font: message-box;
1484
1583
  }
@@ -1495,18 +1594,9 @@ html[dir='ltr'] body {
1495
1594
  border-bottom: var(--toolbarSidebar-border-bottom);
1496
1595
  }
1497
1596
 
1498
- [dir="ltr"] #sidebarResizer {
1499
- right: -6px;
1500
- }
1501
-
1502
- [dir="rtl"] #sidebarResizer {
1503
- left: -6px;
1504
- }
1505
-
1506
1597
  #sidebarResizer {
1507
1598
  position: absolute;
1508
- top: 0;
1509
- bottom: 0;
1599
+ inset-block: 0;
1510
1600
  inset-inline-end: -6px;
1511
1601
  width: 6px;
1512
1602
  z-index: 200;
@@ -1528,43 +1618,22 @@ html[dir='ltr'] body {
1528
1618
  height: 32px;
1529
1619
  }
1530
1620
 
1531
- [dir="ltr"] #loadingBar {
1532
- left: 0;
1533
- right: var(--progressBar-end-offset);
1534
- }
1535
-
1536
- [dir="rtl"] #loadingBar {
1537
- right: 0;
1538
- left: var(--progressBar-end-offset);
1539
- }
1540
-
1541
- [dir="ltr"] #loadingBar {
1542
- transition-property: left;
1543
- }
1544
-
1545
- [dir="rtl"] #loadingBar {
1546
- transition-property: right;
1547
- }
1548
-
1549
1621
  #loadingBar {
1622
+ /* Define these variables here, and not in :root, to avoid reflowing the
1623
+ entire viewer when updating progress (see issue 15958). */
1624
+ --progressBar-percent: 0%;
1625
+ --progressBar-end-offset: 0;
1626
+
1550
1627
  position: absolute;
1551
1628
  inset-inline: 0 var(--progressBar-end-offset);
1552
1629
  height: 4px;
1553
- background-color: var(--body-bg-color);
1630
+ background-color: var(--progressBar-bg-color);
1554
1631
  border-bottom: 1px solid var(--toolbar-border-color);
1555
1632
  transition-property: inset-inline-start;
1556
1633
  transition-duration: var(--sidebar-transition-duration);
1557
1634
  transition-timing-function: var(--sidebar-transition-timing-function);
1558
1635
  }
1559
1636
 
1560
- [dir="ltr"] #outerContainer.sidebarOpen #loadingBar {
1561
- left: var(--sidebar-width);
1562
- }
1563
-
1564
- [dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1565
- right: var(--sidebar-width);
1566
- }
1567
-
1568
1637
  #outerContainer.sidebarOpen #loadingBar {
1569
1638
  inset-inline-start: var(--sidebar-width);
1570
1639
  }
@@ -1572,10 +1641,10 @@ html[dir='ltr'] body {
1572
1641
  #loadingBar .progress {
1573
1642
  position: absolute;
1574
1643
  top: 0;
1575
- left: 0;
1644
+ inset-inline-start: 0;
1576
1645
  width: 100%;
1577
1646
  transform: scaleX(var(--progressBar-percent));
1578
- transform-origin: 0 0;
1647
+ transform-origin: calc(50% - 50% * var(--dir-factor)) 0;
1579
1648
  height: 100%;
1580
1649
  background-color: var(--progressBar-color);
1581
1650
  overflow: hidden;
@@ -1584,7 +1653,7 @@ html[dir='ltr'] body {
1584
1653
 
1585
1654
  @keyframes progressIndeterminate {
1586
1655
  0% {
1587
- transform: translateX(-142px);
1656
+ transform: translateX(calc(-142px * var(--dir-factor)));
1588
1657
  }
1589
1658
  100% {
1590
1659
  transform: translateX(0);
@@ -1593,31 +1662,30 @@ html[dir='ltr'] body {
1593
1662
 
1594
1663
  #loadingBar.indeterminate .progress {
1595
1664
  transform: none;
1596
- background-color: var(--progressBar-indeterminate-bg-color);
1665
+ background-color: var(--progressBar-bg-color);
1597
1666
  transition: none;
1598
1667
  }
1599
1668
 
1600
1669
  #loadingBar.indeterminate .progress .glimmer {
1601
1670
  position: absolute;
1602
1671
  top: 0;
1603
- left: 0;
1672
+ inset-inline-start: 0;
1604
1673
  height: 100%;
1605
1674
  width: calc(100% + 150px);
1606
1675
  background: repeating-linear-gradient(
1607
1676
  135deg,
1608
- var(--progressBar-indeterminate-blend-color) 0,
1609
- var(--progressBar-indeterminate-bg-color) 5px,
1610
- var(--progressBar-indeterminate-bg-color) 45px,
1677
+ var(--progressBar-blend-color) 0,
1678
+ var(--progressBar-bg-color) 5px,
1679
+ var(--progressBar-bg-color) 45px,
1611
1680
  var(--progressBar-color) 55px,
1612
1681
  var(--progressBar-color) 95px,
1613
- var(--progressBar-indeterminate-blend-color) 100px
1682
+ var(--progressBar-blend-color) 100px
1614
1683
  );
1615
1684
  animation: progressIndeterminate 1s linear infinite;
1616
1685
  }
1617
1686
 
1618
- #outerContainer.sidebarResizing #sidebarContainer,
1619
- #outerContainer.sidebarResizing #viewerContainer,
1620
- #outerContainer.sidebarResizing #loadingBar {
1687
+ #outerContainer.sidebarResizing
1688
+ :is(#sidebarContainer, #viewerContainer, #loadingBar) {
1621
1689
  /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
1622
1690
  transition-duration: 0s;
1623
1691
  }
@@ -1638,14 +1706,6 @@ html[dir='ltr'] body {
1638
1706
  cursor: default;
1639
1707
  }
1640
1708
 
1641
- [dir="ltr"] .findbar {
1642
- left: 64px;
1643
- }
1644
-
1645
- [dir="rtl"] .findbar {
1646
- right: 64px;
1647
- }
1648
-
1649
1709
  .findbar {
1650
1710
  inset-inline-start: 64px;
1651
1711
  min-width: 300px;
@@ -1654,15 +1714,8 @@ html[dir='ltr'] body {
1654
1714
  .findbar > div {
1655
1715
  height: 32px;
1656
1716
  }
1657
- [dir="ltr"] .findbar > div#findbarInputContainer {
1658
- margin-right: 4px;
1659
- }
1660
- [dir="rtl"] .findbar > div#findbarInputContainer {
1661
- margin-left: 4px;
1662
- }
1663
1717
  .findbar > div#findbarInputContainer {
1664
- -webkit-margin-end: 4px;
1665
- margin-inline-end: 4px;
1718
+ margin-inline-end: 4px;
1666
1719
  }
1667
1720
  .findbar.wrapContainers > div,
1668
1721
  .findbar.wrapContainers > div#findbarMessageContainer > * {
@@ -1711,16 +1764,6 @@ html[dir='ltr'] body {
1711
1764
  background-color: rgba(255, 102, 102, 1);
1712
1765
  }
1713
1766
 
1714
- [dir="ltr"] .secondaryToolbar,[dir="ltr"]
1715
- .editorParamsToolbar {
1716
- right: 4px;
1717
- }
1718
-
1719
- [dir="rtl"] .secondaryToolbar,[dir="rtl"]
1720
- .editorParamsToolbar {
1721
- left: 4px;
1722
- }
1723
-
1724
1767
  .secondaryToolbar,
1725
1768
  .editorParamsToolbar {
1726
1769
  padding: 6px 0 10px;
@@ -1739,22 +1782,11 @@ html[dir='ltr'] body {
1739
1782
  display: flex;
1740
1783
  align-items: center;
1741
1784
  justify-content: space-between;
1742
- padding-left: 10px;
1743
- padding-right: 10px;
1744
1785
  padding-inline: 10px;
1745
1786
  }
1746
1787
 
1747
- [dir="ltr"] .editorParamsToolbarContainer .editorParamsLabel {
1748
- padding-right: 10px;
1749
- }
1750
-
1751
- [dir="rtl"] .editorParamsToolbarContainer .editorParamsLabel {
1752
- padding-left: 10px;
1753
- }
1754
-
1755
1788
  .editorParamsToolbarContainer .editorParamsLabel {
1756
- -webkit-padding-end: 10px;
1757
- padding-inline-end: 10px;
1789
+ padding-inline-end: 10px;
1758
1790
  flex: none;
1759
1791
  color: var(--main-color);
1760
1792
  }
@@ -1793,27 +1825,11 @@ html[dir='ltr'] body {
1793
1825
  margin-bottom: -4px;
1794
1826
  }
1795
1827
 
1796
- [dir="ltr"] #editorInkParamsToolbar {
1797
- right: 40px;
1798
- }
1799
-
1800
- [dir="rtl"] #editorInkParamsToolbar {
1801
- left: 40px;
1802
- }
1803
-
1804
1828
  #editorInkParamsToolbar {
1805
1829
  inset-inline-end: 40px;
1806
1830
  background-color: var(--toolbar-bg-color);
1807
1831
  }
1808
1832
 
1809
- [dir="ltr"] #editorFreeTextParamsToolbar {
1810
- right: 68px;
1811
- }
1812
-
1813
- [dir="rtl"] #editorFreeTextParamsToolbar {
1814
- left: 68px;
1815
- }
1816
-
1817
1833
  #editorFreeTextParamsToolbar {
1818
1834
  inset-inline-end: 68px;
1819
1835
  background-color: var(--toolbar-bg-color);
@@ -1822,14 +1838,13 @@ html[dir='ltr'] body {
1822
1838
  .doorHanger,
1823
1839
  .doorHangerRight {
1824
1840
  border-radius: 2px;
1825
- box-shadow: 0 1px 5px var(--doorhanger-border-color),
1841
+ box-shadow:
1842
+ 0 1px 5px var(--doorhanger-border-color),
1826
1843
  0 0 0 1px var(--doorhanger-border-color);
1827
1844
  border: var(--doorhanger-border-color-whcm);
1828
1845
  }
1829
- .doorHanger:after,
1830
- .doorHanger:before,
1831
- .doorHangerRight:after,
1832
- .doorHangerRight:before {
1846
+ :is(.doorHanger, .doorHangerRight)::after,
1847
+ :is(.doorHanger, .doorHangerRight)::before {
1833
1848
  bottom: 100%;
1834
1849
  border: 8px solid rgba(0, 0, 0, 0);
1835
1850
  content: " ";
@@ -1839,80 +1854,27 @@ html[dir='ltr'] body {
1839
1854
  pointer-events: none;
1840
1855
  opacity: var(--doorhanger-triangle-opacity-whcm);
1841
1856
  }
1842
- [dir="ltr"] .doorHanger:after {
1843
- left: 10px;
1844
- }
1845
- [dir="rtl"] .doorHanger:after {
1846
- right: 10px;
1847
- }
1848
- [dir="ltr"] .doorHanger:after {
1849
- margin-left: -8px;
1850
- }
1851
- [dir="rtl"] .doorHanger:after {
1852
- margin-right: -8px;
1853
- }
1854
- .doorHanger:after {
1857
+ .doorHanger::after {
1855
1858
  inset-inline-start: 10px;
1856
- -webkit-margin-start: -8px;
1857
- margin-inline-start: -8px;
1859
+ margin-inline-start: -8px;
1858
1860
  border-bottom-color: var(--toolbar-bg-color);
1859
1861
  }
1860
- [dir="ltr"] .doorHangerRight:after {
1861
- right: 10px;
1862
- }
1863
- [dir="rtl"] .doorHangerRight:after {
1864
- left: 10px;
1865
- }
1866
- [dir="ltr"] .doorHangerRight:after {
1867
- margin-right: -8px;
1868
- }
1869
- [dir="rtl"] .doorHangerRight:after {
1870
- margin-left: -8px;
1871
- }
1872
- .doorHangerRight:after {
1862
+ .doorHangerRight::after {
1873
1863
  inset-inline-end: 10px;
1874
- -webkit-margin-end: -8px;
1875
- margin-inline-end: -8px;
1864
+ margin-inline-end: -8px;
1876
1865
  border-bottom-color: var(--doorhanger-bg-color);
1877
1866
  }
1878
- .doorHanger:before,
1879
- .doorHangerRight:before {
1867
+ :is(.doorHanger, .doorHangerRight)::before {
1880
1868
  border-bottom-color: var(--doorhanger-border-color);
1881
1869
  border-width: 9px;
1882
1870
  }
1883
- [dir="ltr"] .doorHanger:before {
1884
- left: 10px;
1885
- }
1886
- [dir="rtl"] .doorHanger:before {
1887
- right: 10px;
1888
- }
1889
- [dir="ltr"] .doorHanger:before {
1890
- margin-left: -9px;
1891
- }
1892
- [dir="rtl"] .doorHanger:before {
1893
- margin-right: -9px;
1894
- }
1895
- .doorHanger:before {
1871
+ .doorHanger::before {
1896
1872
  inset-inline-start: 10px;
1897
- -webkit-margin-start: -9px;
1898
- margin-inline-start: -9px;
1899
- }
1900
- [dir="ltr"] .doorHangerRight:before {
1901
- right: 10px;
1902
- }
1903
- [dir="rtl"] .doorHangerRight:before {
1904
- left: 10px;
1873
+ margin-inline-start: -9px;
1905
1874
  }
1906
- [dir="ltr"] .doorHangerRight:before {
1907
- margin-right: -9px;
1908
- }
1909
- [dir="rtl"] .doorHangerRight:before {
1910
- margin-left: -9px;
1911
- }
1912
- .doorHangerRight:before {
1875
+ .doorHangerRight::before {
1913
1876
  inset-inline-end: 10px;
1914
- -webkit-margin-end: -9px;
1915
- margin-inline-end: -9px;
1877
+ margin-inline-end: -9px;
1916
1878
  }
1917
1879
 
1918
1880
  #findResultsCount {
@@ -1923,12 +1885,11 @@ html[dir='ltr'] body {
1923
1885
  margin: 5px;
1924
1886
  }
1925
1887
 
1926
- #findMsg {
1927
- color: rgba(251, 0, 0, 1);
1888
+ #findMsg[data-status="notFound"] {
1889
+ font-weight: bold;
1928
1890
  }
1929
1891
 
1930
- #findResultsCount:empty,
1931
- #findMsg:empty {
1892
+ :is(#findResultsCount, #findMsg):empty {
1932
1893
  display: none;
1933
1894
  }
1934
1895
 
@@ -1938,49 +1899,13 @@ html[dir='ltr'] body {
1938
1899
  transform: translateX(-50%);
1939
1900
  }
1940
1901
 
1941
- [dir="ltr"] #toolbarViewerLeft,[dir="ltr"]
1942
- #toolbarSidebarLeft {
1943
- float: left;
1944
- }
1945
-
1946
- [dir="rtl"] #toolbarViewerLeft,[dir="rtl"]
1947
- #toolbarSidebarLeft {
1948
- float: right;
1949
- }
1950
-
1951
1902
  #toolbarViewerLeft,
1952
1903
  #toolbarSidebarLeft {
1953
- float: inline-start;
1954
- }
1955
- [dir="ltr"] #toolbarViewerRight,[dir="ltr"]
1956
- #toolbarSidebarRight {
1957
- float: right;
1958
- }
1959
- [dir="rtl"] #toolbarViewerRight,[dir="rtl"]
1960
- #toolbarSidebarRight {
1961
- float: left;
1904
+ float: var(--inline-start);
1962
1905
  }
1963
1906
  #toolbarViewerRight,
1964
1907
  #toolbarSidebarRight {
1965
- float: inline-end;
1966
- }
1967
-
1968
- [dir="ltr"] #toolbarViewerLeft > *,[dir="ltr"]
1969
- #toolbarViewerMiddle > *,[dir="ltr"]
1970
- #toolbarViewerRight > *,[dir="ltr"]
1971
- #toolbarSidebarLeft *,[dir="ltr"]
1972
- #toolbarSidebarRight *,[dir="ltr"]
1973
- .findbar * {
1974
- float: left;
1975
- }
1976
-
1977
- [dir="rtl"] #toolbarViewerLeft > *,[dir="rtl"]
1978
- #toolbarViewerMiddle > *,[dir="rtl"]
1979
- #toolbarViewerRight > *,[dir="rtl"]
1980
- #toolbarSidebarLeft *,[dir="rtl"]
1981
- #toolbarSidebarRight *,[dir="rtl"]
1982
- .findbar * {
1983
- float: right;
1908
+ float: var(--inline-end);
1984
1909
  }
1985
1910
 
1986
1911
  #toolbarViewerLeft > *,
@@ -1990,54 +1915,25 @@ html[dir='ltr'] body {
1990
1915
  #toolbarSidebarRight *,
1991
1916
  .findbar * {
1992
1917
  position: relative;
1993
- float: inline-start;
1994
- }
1995
-
1996
- [dir="ltr"] #toolbarViewerLeft {
1997
- padding-left: 1px;
1998
- }
1999
-
2000
- [dir="rtl"] #toolbarViewerLeft {
2001
- padding-right: 1px;
1918
+ float: var(--inline-start);
2002
1919
  }
2003
1920
 
2004
1921
  #toolbarViewerLeft {
2005
- -webkit-padding-start: 1px;
2006
- padding-inline-start: 1px;
2007
- }
2008
- [dir="ltr"] #toolbarViewerRight {
2009
- padding-right: 1px;
2010
- }
2011
- [dir="rtl"] #toolbarViewerRight {
2012
- padding-left: 1px;
1922
+ padding-inline-start: 1px;
2013
1923
  }
2014
1924
  #toolbarViewerRight {
2015
- -webkit-padding-end: 1px;
2016
- padding-inline-end: 1px;
2017
- }
2018
- [dir="ltr"] #toolbarSidebarRight {
2019
- padding-right: 2px;
2020
- }
2021
- [dir="rtl"] #toolbarSidebarRight {
2022
- padding-left: 2px;
1925
+ padding-inline-end: 1px;
2023
1926
  }
2024
1927
  #toolbarSidebarRight {
2025
- -webkit-padding-end: 2px;
2026
- padding-inline-end: 2px;
1928
+ padding-inline-end: 2px;
2027
1929
  }
2028
1930
 
2029
1931
  .splitToolbarButton {
2030
1932
  margin: 2px;
2031
1933
  display: inline-block;
2032
1934
  }
2033
- [dir="ltr"] .splitToolbarButton > .toolbarButton {
2034
- float: left;
2035
- }
2036
- [dir="rtl"] .splitToolbarButton > .toolbarButton {
2037
- float: right;
2038
- }
2039
1935
  .splitToolbarButton > .toolbarButton {
2040
- float: inline-start;
1936
+ float: var(--inline-start);
2041
1937
  }
2042
1938
 
2043
1939
  .toolbarButton,
@@ -2050,13 +1946,11 @@ html[dir='ltr'] body {
2050
1946
  outline: none;
2051
1947
  }
2052
1948
 
2053
- .dialogButton:hover,
2054
- .dialogButton:focus-visible {
1949
+ .dialogButton:is(:hover, :focus-visible) {
2055
1950
  background-color: var(--dialog-button-hover-bg-color);
2056
1951
  }
2057
1952
 
2058
- .dialogButton:hover > span,
2059
- .dialogButton:focus-visible > span {
1953
+ .dialogButton:is(:hover, :focus-visible) > span {
2060
1954
  color: var(--dialog-button-hover-color);
2061
1955
  }
2062
1956
 
@@ -2067,14 +1961,11 @@ html[dir='ltr'] body {
2067
1961
  overflow: hidden;
2068
1962
  }
2069
1963
 
2070
- .toolbarButton[disabled],
2071
- .secondaryToolbarButton[disabled],
2072
- .dialogButton[disabled] {
1964
+ :is(.toolbarButton, .secondaryToolbarButton, .dialogButton)[disabled] {
2073
1965
  opacity: 0.5;
2074
1966
  }
2075
1967
 
2076
- .splitToolbarButton > .toolbarButton:hover,
2077
- .splitToolbarButton > .toolbarButton:focus-visible,
1968
+ .splitToolbarButton > .toolbarButton:is(:hover, :focus-visible),
2078
1969
  .dropdownToolbarButton:hover {
2079
1970
  background-color: var(--button-hover-color);
2080
1971
  }
@@ -2082,27 +1973,12 @@ html[dir='ltr'] body {
2082
1973
  position: relative;
2083
1974
  margin: 0;
2084
1975
  }
2085
- [dir="ltr"] #toolbarSidebar .splitToolbarButton > .toolbarButton {
2086
- margin-right: 2px;
2087
- }
2088
- [dir="rtl"] #toolbarSidebar .splitToolbarButton > .toolbarButton {
2089
- margin-left: 2px;
2090
- }
2091
1976
  #toolbarSidebar .splitToolbarButton > .toolbarButton {
2092
- -webkit-margin-end: 2px;
2093
- margin-inline-end: 2px;
2094
- }
2095
-
2096
- [dir="ltr"] .splitToolbarButtonSeparator {
2097
- float: left;
2098
- }
2099
-
2100
- [dir="rtl"] .splitToolbarButtonSeparator {
2101
- float: right;
1977
+ margin-inline-end: 2px;
2102
1978
  }
2103
1979
 
2104
1980
  .splitToolbarButtonSeparator {
2105
- float: inline-start;
1981
+ float: var(--inline-start);
2106
1982
  margin: 4px 0;
2107
1983
  width: 1px;
2108
1984
  height: 20px;
@@ -2128,46 +2004,44 @@ html[dir='ltr'] body {
2128
2004
  box-sizing: border-box;
2129
2005
  }
2130
2006
 
2131
- .toolbarButton:hover,
2132
- .toolbarButton:focus-visible {
2007
+ .toolbarButton:is(:hover, :focus-visible) {
2133
2008
  background-color: var(--button-hover-color);
2134
2009
  }
2135
- .secondaryToolbarButton:hover,
2136
- .secondaryToolbarButton:focus-visible {
2010
+ .secondaryToolbarButton:is(:hover, :focus-visible) {
2137
2011
  background-color: var(--doorhanger-hover-bg-color);
2138
2012
  color: var(--doorhanger-hover-color);
2139
2013
  }
2140
2014
 
2141
- .toolbarButton.toggled,
2142
- .splitToolbarButton.toggled > .toolbarButton.toggled,
2143
- .secondaryToolbarButton.toggled {
2015
+ :is(.toolbarButton, .secondaryToolbarButton).toggled,
2016
+ .splitToolbarButton.toggled > .toolbarButton.toggled {
2144
2017
  background-color: var(--toggled-btn-bg-color);
2145
2018
  color: var(--toggled-btn-color);
2146
2019
  }
2147
2020
 
2148
- .toolbarButton.toggled::before,
2149
- .secondaryToolbarButton.toggled::before {
2021
+ :is(.toolbarButton, .secondaryToolbarButton).toggled:hover,
2022
+ .splitToolbarButton.toggled > .toolbarButton.toggled:hover {
2023
+ outline: var(--toggled-hover-btn-outline) !important;
2024
+ }
2025
+
2026
+ :is(.toolbarButton, .secondaryToolbarButton).toggled::before {
2150
2027
  background-color: var(--toggled-btn-color);
2151
2028
  }
2152
2029
 
2153
- .toolbarButton.toggled:hover:active,
2154
- .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
2155
- .secondaryToolbarButton.toggled:hover:active {
2030
+ :is(.toolbarButton, .secondaryToolbarButton).toggled:hover:active,
2031
+ .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active {
2156
2032
  background-color: var(--toggled-hover-active-btn-color);
2157
2033
  }
2158
2034
 
2159
2035
  .dropdownToolbarButton {
2036
+ /* Define this variable here, and not in :root, to avoid reflowing the
2037
+ entire viewer when updating the width. */
2038
+ --scale-select-width: 140px;
2039
+
2160
2040
  width: var(--scale-select-width);
2161
2041
  padding: 0;
2162
2042
  background-color: var(--dropdown-btn-bg-color);
2163
2043
  border: var(--dropdown-btn-border);
2164
2044
  }
2165
- [dir="ltr"] .dropdownToolbarButton::after {
2166
- right: 6px;
2167
- }
2168
- [dir="rtl"] .dropdownToolbarButton::after {
2169
- left: 6px;
2170
- }
2171
2045
  .dropdownToolbarButton::after {
2172
2046
  top: 6px;
2173
2047
  inset-inline-end: 6px;
@@ -2176,14 +2050,6 @@ html[dir='ltr'] body {
2176
2050
  mask-image: var(--toolbarButton-menuArrow-icon);
2177
2051
  }
2178
2052
 
2179
- [dir="ltr"] .dropdownToolbarButton > select {
2180
- padding-left: 6px;
2181
- }
2182
-
2183
- [dir="rtl"] .dropdownToolbarButton > select {
2184
- padding-right: 6px;
2185
- }
2186
-
2187
2053
  .dropdownToolbarButton > select {
2188
2054
  -webkit-appearance: none;
2189
2055
  -moz-appearance: none;
@@ -2194,13 +2060,11 @@ html[dir='ltr'] body {
2194
2060
  color: var(--main-color);
2195
2061
  margin: 0;
2196
2062
  padding: 1px 0 2px;
2197
- -webkit-padding-start: 6px;
2198
- padding-inline-start: 6px;
2063
+ padding-inline-start: 6px;
2199
2064
  border: none;
2200
2065
  background-color: var(--dropdown-btn-bg-color);
2201
2066
  }
2202
- .dropdownToolbarButton > select:hover,
2203
- .dropdownToolbarButton > select:focus-visible {
2067
+ .dropdownToolbarButton > select:is(:hover, :focus-visible) {
2204
2068
  background-color: var(--button-hover-color);
2205
2069
  color: var(--toggled-btn-color);
2206
2070
  }
@@ -2215,10 +2079,8 @@ html[dir='ltr'] body {
2215
2079
  height: 1px;
2216
2080
  }
2217
2081
 
2218
- .toolbarButton::before,
2219
- .secondaryToolbarButton::before,
2220
- .dropdownToolbarButton::after,
2221
- .treeItemToggler::before {
2082
+ :is(.toolbarButton, .secondaryToolbarButton, .treeItemToggler)::before,
2083
+ .dropdownToolbarButton::after {
2222
2084
  /* All matching images have a size of 16x16
2223
2085
  * All relevant containers have a size of 28x28 */
2224
2086
  position: absolute;
@@ -2232,9 +2094,7 @@ html[dir='ltr'] body {
2232
2094
  mask-size: cover;
2233
2095
  }
2234
2096
 
2235
- .dropdownToolbarButton:hover::after,
2236
- .dropdownToolbarButton:focus-visible::after,
2237
- .dropdownToolbarButton:active::after {
2097
+ .dropdownToolbarButton:is(:hover, :focus-visible, :active)::after {
2238
2098
  background-color: var(--toolbar-icon-hover-bg-color);
2239
2099
  }
2240
2100
 
@@ -2244,21 +2104,11 @@ html[dir='ltr'] body {
2244
2104
  left: 6px;
2245
2105
  }
2246
2106
 
2247
- .toolbarButton:hover::before,
2248
- .toolbarButton:focus-visible::before,
2249
- .secondaryToolbarButton:hover::before,
2250
- .secondaryToolbarButton:focus-visible::before {
2107
+ .toolbarButton:is(:hover, :focus-visible)::before,
2108
+ .secondaryToolbarButton:is(:hover, :focus-visible)::before {
2251
2109
  background-color: var(--toolbar-icon-hover-bg-color);
2252
2110
  }
2253
2111
 
2254
- [dir="ltr"] .secondaryToolbarButton::before {
2255
- left: 12px;
2256
- }
2257
-
2258
- [dir="rtl"] .secondaryToolbarButton::before {
2259
- right: 12px;
2260
- }
2261
-
2262
2112
  .secondaryToolbarButton::before {
2263
2113
  opacity: var(--doorhanger-icon-opacity);
2264
2114
  top: 5px;
@@ -2322,20 +2172,23 @@ html[dir='ltr'] body {
2322
2172
  mask-image: var(--toolbarButton-editorInk-icon);
2323
2173
  }
2324
2174
 
2175
+ #editorStamp::before {
2176
+ -webkit-mask-image: var(--toolbarButton-editorStamp-icon);
2177
+ mask-image: var(--toolbarButton-editorStamp-icon);
2178
+ }
2179
+
2325
2180
  #print::before,
2326
2181
  #secondaryPrint::before {
2327
2182
  -webkit-mask-image: var(--toolbarButton-print-icon);
2328
2183
  mask-image: var(--toolbarButton-print-icon);
2329
2184
  }
2330
2185
 
2331
- #openFile::before,
2332
- #secondaryOpenFile::before {
2186
+ :is(#openFile, #secondaryOpenFile)::before {
2333
2187
  -webkit-mask-image: var(--toolbarButton-openFile-icon);
2334
2188
  mask-image: var(--toolbarButton-openFile-icon);
2335
2189
  }
2336
2190
 
2337
- #download::before,
2338
- #secondaryDownload::before {
2191
+ :is(#download, #secondaryDownload)::before {
2339
2192
  -webkit-mask-image: var(--toolbarButton-download-icon);
2340
2193
  mask-image: var(--toolbarButton-download-icon);
2341
2194
  }
@@ -2344,8 +2197,7 @@ a.secondaryToolbarButton {
2344
2197
  padding-top: 5px;
2345
2198
  text-decoration: none;
2346
2199
  }
2347
- a.toolbarButton[href="#"],
2348
- a.secondaryToolbarButton[href="#"] {
2200
+ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
2349
2201
  opacity: 0.5;
2350
2202
  pointer-events: none;
2351
2203
  }
@@ -2387,14 +2239,6 @@ a.secondaryToolbarButton[href="#"] {
2387
2239
  mask-image: var(--toolbarButton-search-icon);
2388
2240
  }
2389
2241
 
2390
- [dir="ltr"] .pdfSidebarNotification::after {
2391
- right: 2px;
2392
- }
2393
-
2394
- [dir="rtl"] .pdfSidebarNotification::after {
2395
- left: 2px;
2396
- }
2397
-
2398
2242
  .pdfSidebarNotification::after {
2399
2243
  position: absolute;
2400
2244
  display: inline-block;
@@ -2408,28 +2252,11 @@ a.secondaryToolbarButton[href="#"] {
2408
2252
  border-radius: 50%;
2409
2253
  }
2410
2254
 
2411
- [dir="ltr"] .secondaryToolbarButton {
2412
- padding-left: 36px;
2413
- }
2414
-
2415
- [dir="rtl"] .secondaryToolbarButton {
2416
- padding-right: 36px;
2417
- }
2418
-
2419
- [dir="ltr"] .secondaryToolbarButton {
2420
- text-align: left;
2421
- }
2422
-
2423
- [dir="rtl"] .secondaryToolbarButton {
2424
- text-align: right;
2425
- }
2426
-
2427
2255
  .secondaryToolbarButton {
2428
2256
  position: relative;
2429
2257
  margin: 0;
2430
2258
  padding: 0 0 1px;
2431
- -webkit-padding-start: 36px;
2432
- padding-inline-start: 36px;
2259
+ padding-inline-start: 36px;
2433
2260
  height: auto;
2434
2261
  min-height: 26px;
2435
2262
  width: auto;
@@ -2440,15 +2267,8 @@ a.secondaryToolbarButton[href="#"] {
2440
2267
  box-sizing: border-box;
2441
2268
  display: inline-block;
2442
2269
  }
2443
- [dir="ltr"] .secondaryToolbarButton > span {
2444
- padding-right: 4px;
2445
- }
2446
- [dir="rtl"] .secondaryToolbarButton > span {
2447
- padding-left: 4px;
2448
- }
2449
2270
  .secondaryToolbarButton > span {
2450
- -webkit-padding-end: 4px;
2451
- padding-inline-end: 4px;
2271
+ padding-inline-end: 4px;
2452
2272
  }
2453
2273
 
2454
2274
  #firstPage::before {
@@ -2550,32 +2370,30 @@ a.secondaryToolbarButton[href="#"] {
2550
2370
  outline: none;
2551
2371
  }
2552
2372
 
2553
- [dir="ltr"] .toolbarField[type="checkbox"] {
2554
- margin-left: 7px;
2555
- }
2556
-
2557
- [dir="rtl"] .toolbarField[type="checkbox"] {
2558
- margin-right: 7px;
2559
- }
2560
-
2561
2373
  .toolbarField[type="checkbox"] {
2562
2374
  opacity: 0;
2563
2375
  position: absolute !important;
2564
2376
  left: 0;
2565
2377
  margin: 10px 0 3px;
2566
- -webkit-margin-start: 7px;
2567
- margin-inline-start: 7px;
2378
+ margin-inline-start: 7px;
2568
2379
  }
2569
2380
 
2570
2381
  #pageNumber {
2571
2382
  -moz-appearance: textfield; /* hides the spinner in moz */
2572
- text-align: right;
2383
+ text-align: end;
2573
2384
  width: 40px;
2385
+ background-size: 0 0;
2386
+ transition-property: none;
2574
2387
  }
2575
2388
  #pageNumber.visiblePageIsLoading {
2576
2389
  background-image: var(--loading-icon);
2577
2390
  background-repeat: no-repeat;
2578
- background-position: 3px;
2391
+ background-position: calc(50% - 42% * var(--dir-factor));
2392
+ background-size: 16px 16px;
2393
+ /* Using a delay with background-image doesn't work,
2394
+ consequently we use background-size. */
2395
+ transition-property: background-size;
2396
+ transition-delay: var(--loading-icon-delay);
2579
2397
  }
2580
2398
  #pageNumber::-webkit-inner-spin-button {
2581
2399
  -webkit-appearance: none;
@@ -2600,17 +2418,8 @@ a.secondaryToolbarButton[href="#"] {
2600
2418
  cursor: default;
2601
2419
  }
2602
2420
 
2603
- [dir="ltr"] #numPages.toolbarLabel {
2604
- padding-left: 3px;
2605
- }
2606
-
2607
- [dir="rtl"] #numPages.toolbarLabel {
2608
- padding-right: 3px;
2609
- }
2610
-
2611
2421
  #numPages.toolbarLabel {
2612
- -webkit-padding-start: 3px;
2613
- padding-inline-start: 3px;
2422
+ padding-inline-start: 3px;
2614
2423
  }
2615
2424
 
2616
2425
  #thumbnailView,
@@ -2619,8 +2428,7 @@ a.secondaryToolbarButton[href="#"] {
2619
2428
  #layersView {
2620
2429
  position: absolute;
2621
2430
  width: calc(100% - 8px);
2622
- top: 0;
2623
- bottom: 0;
2431
+ inset-block: 0;
2624
2432
  padding: 4px 4px 0;
2625
2433
  overflow: auto;
2626
2434
  -webkit-user-select: none;
@@ -2632,94 +2440,59 @@ a.secondaryToolbarButton[href="#"] {
2632
2440
  padding: 10px 30px 0;
2633
2441
  }
2634
2442
 
2635
- #thumbnailView > a:active,
2636
- #thumbnailView > a:focus {
2443
+ #thumbnailView > a:is(:active, :focus) {
2637
2444
  outline: 0;
2638
2445
  }
2639
2446
 
2640
- [dir="ltr"] .thumbnail {
2641
- float: left;
2642
- }
2643
-
2644
- [dir="rtl"] .thumbnail {
2645
- float: right;
2646
- }
2647
-
2648
2447
  .thumbnail {
2649
- float: inline-start;
2448
+ /* Define these variables here, and not in :root, since the individual
2449
+ thumbnails may have different sizes. */
2450
+ --thumbnail-width: 0;
2451
+ --thumbnail-height: 0;
2452
+
2453
+ float: var(--inline-start);
2454
+ width: var(--thumbnail-width);
2455
+ height: var(--thumbnail-height);
2650
2456
  margin: 0 10px 5px;
2457
+ padding: 1px;
2458
+ border: 7px solid transparent;
2459
+ border-radius: 2px;
2651
2460
  }
2652
2461
 
2653
2462
  #thumbnailView > a:last-of-type > .thumbnail {
2654
2463
  margin-bottom: 10px;
2655
2464
  }
2656
- #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
2657
- margin-bottom: 9px;
2658
- }
2659
2465
 
2660
- .thumbnail:not([data-loaded]) {
2661
- border: 1px dashed rgba(132, 132, 132, 1);
2662
- margin: -1px 9px 4px;
2466
+ a:focus > .thumbnail,
2467
+ .thumbnail:hover {
2468
+ border-color: var(--thumbnail-hover-color);
2663
2469
  }
2664
-
2665
- .thumbnailImage {
2666
- border: 1px solid rgba(0, 0, 0, 0);
2667
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
2668
- opacity: 0.8;
2669
- z-index: 99;
2670
- background-color: rgba(255, 255, 255, 1);
2671
- background-clip: content-box;
2470
+ .thumbnail.selected {
2471
+ border-color: var(--thumbnail-selected-color) !important;
2672
2472
  }
2673
2473
 
2674
- .thumbnailSelectionRing {
2675
- border-radius: 2px;
2676
- padding: 7px;
2677
- }
2678
-
2679
- a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
2680
- .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
2474
+ .thumbnailImage {
2475
+ width: var(--thumbnail-width);
2476
+ height: var(--thumbnail-height);
2681
2477
  opacity: 0.9;
2682
2478
  }
2683
-
2684
- a:focus > .thumbnail > .thumbnailSelectionRing,
2685
- .thumbnail:hover > .thumbnailSelectionRing {
2686
- background-color: var(--sidebaritem-bg-color);
2687
- background-clip: padding-box;
2688
- color: rgba(255, 255, 255, 0.9);
2689
- }
2690
-
2691
- .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
2692
- opacity: 1;
2693
- }
2694
-
2695
- .thumbnail.selected > .thumbnailSelectionRing {
2696
- background-color: var(--sidebaritem-bg-color);
2697
- background-clip: padding-box;
2698
- color: rgba(255, 255, 255, 1);
2479
+ a:focus > .thumbnail > .thumbnailImage,
2480
+ .thumbnail:hover > .thumbnailImage {
2481
+ opacity: 0.95;
2699
2482
  }
2700
-
2701
- [dir="ltr"] .treeWithDeepNesting > .treeItem,[dir="ltr"]
2702
- .treeItem > .treeItems {
2703
- margin-left: 20px;
2483
+ .thumbnail.selected > .thumbnailImage {
2484
+ opacity: 1 !important;
2704
2485
  }
2705
2486
 
2706
- [dir="rtl"] .treeWithDeepNesting > .treeItem,[dir="rtl"]
2707
- .treeItem > .treeItems {
2708
- margin-right: 20px;
2487
+ .thumbnail:not([data-loaded]) > .thumbnailImage {
2488
+ width: calc(var(--thumbnail-width) - 2px);
2489
+ height: calc(var(--thumbnail-height) - 2px);
2490
+ border: 1px dashed rgba(132, 132, 132, 1);
2709
2491
  }
2710
2492
 
2711
2493
  .treeWithDeepNesting > .treeItem,
2712
2494
  .treeItem > .treeItems {
2713
- -webkit-margin-start: 20px;
2714
- margin-inline-start: 20px;
2715
- }
2716
-
2717
- [dir="ltr"] .treeItem > a {
2718
- padding-left: 4px;
2719
- }
2720
-
2721
- [dir="rtl"] .treeItem > a {
2722
- padding-right: 4px;
2495
+ margin-inline-start: 20px;
2723
2496
  }
2724
2497
 
2725
2498
  .treeItem > a {
@@ -2730,8 +2503,7 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
2730
2503
  height: auto;
2731
2504
  margin-bottom: 1px;
2732
2505
  padding: 2px 0 5px;
2733
- -webkit-padding-start: 4px;
2734
- padding-inline-start: 4px;
2506
+ padding-inline-start: 4px;
2735
2507
  border-radius: 2px;
2736
2508
  color: var(--treeitem-color);
2737
2509
  font-size: 13px;
@@ -2746,48 +2518,21 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
2746
2518
  #layersView .treeItem > a * {
2747
2519
  cursor: pointer;
2748
2520
  }
2749
- [dir="ltr"] #layersView .treeItem > a > label {
2750
- padding-left: 4px;
2751
- }
2752
- [dir="rtl"] #layersView .treeItem > a > label {
2753
- padding-right: 4px;
2754
- }
2755
2521
  #layersView .treeItem > a > label {
2756
- -webkit-padding-start: 4px;
2757
- padding-inline-start: 4px;
2758
- }
2759
- [dir="ltr"] #layersView .treeItem > a > label > input {
2760
- float: left;
2761
- }
2762
- [dir="rtl"] #layersView .treeItem > a > label > input {
2763
- float: right;
2522
+ padding-inline-start: 4px;
2764
2523
  }
2765
2524
  #layersView .treeItem > a > label > input {
2766
- float: inline-start;
2525
+ float: var(--inline-start);
2767
2526
  margin-top: 1px;
2768
2527
  }
2769
2528
 
2770
- [dir="ltr"] .treeItemToggler {
2771
- float: left;
2772
- }
2773
-
2774
- [dir="rtl"] .treeItemToggler {
2775
- float: right;
2776
- }
2777
-
2778
2529
  .treeItemToggler {
2779
2530
  position: relative;
2780
- float: inline-start;
2531
+ float: var(--inline-start);
2781
2532
  height: 0;
2782
2533
  width: 0;
2783
2534
  color: rgba(255, 255, 255, 0.5);
2784
2535
  }
2785
- [dir="ltr"] .treeItemToggler::before {
2786
- right: 4px;
2787
- }
2788
- [dir="rtl"] .treeItemToggler::before {
2789
- left: 4px;
2790
- }
2791
2536
  .treeItemToggler::before {
2792
2537
  inset-inline-end: 4px;
2793
2538
  -webkit-mask-image: var(--treeitem-expanded-icon);
@@ -2811,7 +2556,7 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
2811
2556
  .treeItemToggler:hover + a,
2812
2557
  .treeItemToggler:hover ~ .treeItems,
2813
2558
  .treeItem > a:hover {
2814
- background-color: var(--sidebaritem-bg-color);
2559
+ background-color: var(--treeitem-bg-color);
2815
2560
  background-clip: padding-box;
2816
2561
  border-radius: 2px;
2817
2562
  color: var(--treeitem-hover-color);
@@ -2839,9 +2584,6 @@ dialog {
2839
2584
  border-radius: 4px;
2840
2585
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2841
2586
  }
2842
- dialog::-webkit-backdrop {
2843
- background-color: rgba(0, 0, 0, 0.2);
2844
- }
2845
2587
  dialog::backdrop {
2846
2588
  background-color: rgba(0, 0, 0, 0.2);
2847
2589
  }
@@ -2885,12 +2627,6 @@ dialog :link {
2885
2627
  #documentPropertiesDialog {
2886
2628
  text-align: left;
2887
2629
  }
2888
- [dir="ltr"] #documentPropertiesDialog .row > * {
2889
- text-align: left;
2890
- }
2891
- [dir="rtl"] #documentPropertiesDialog .row > * {
2892
- text-align: right;
2893
- }
2894
2630
  #documentPropertiesDialog .row > * {
2895
2631
  min-width: 100px;
2896
2632
  text-align: start;
@@ -2920,10 +2656,7 @@ dialog :link {
2920
2656
  position: fixed;
2921
2657
  background: rgba(0, 0, 0, 0);
2922
2658
  display: block;
2923
- top: 0;
2924
- left: 0;
2925
- right: 0;
2926
- bottom: 0;
2659
+ inset: 0;
2927
2660
  overflow: hidden;
2928
2661
  z-index: 50000; /* should be higher than anything else in PDF.js! */
2929
2662
  }
@@ -2976,8 +2709,7 @@ dialog :link {
2976
2709
  position: relative;
2977
2710
  }
2978
2711
 
2979
- #printContainer > .printedPage canvas,
2980
- #printContainer > .printedPage img {
2712
+ #printContainer > .printedPage :is(canvas, img) {
2981
2713
  /* The intrinsic canvas / image size will make sure that we fit the page. */
2982
2714
  max-width: 100%;
2983
2715
  max-height: 100%;
@@ -3006,12 +2738,6 @@ dialog :link {
3006
2738
  #sidebarContainer {
3007
2739
  background-color: var(--sidebar-narrow-bg-color);
3008
2740
  }
3009
- [dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
3010
- left: 0 !important;
3011
- }
3012
- [dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
3013
- right: 0 !important;
3014
- }
3015
2741
  #outerContainer.sidebarOpen #viewerContainer {
3016
2742
  inset-inline-start: 0 !important;
3017
2743
  }
@@ -3043,12 +2769,6 @@ dialog :link {
3043
2769
  .toolbarButtonSpacer {
3044
2770
  width: 0;
3045
2771
  }
3046
- [dir="ltr"] .findbar {
3047
- left: 34px;
3048
- }
3049
- [dir="rtl"] .findbar {
3050
- right: 34px;
3051
- }
3052
2772
  .findbar {
3053
2773
  inset-inline-start: 34px;
3054
2774
  }