2014-09-30 10:48:29 -05:00
|
|
|
/* Copyright 2014 Mozilla Foundation
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2024-10-08 10:51:20 +02:00
|
|
|
@import url(message_bar.css);
|
2024-05-27 12:38:31 +02:00
|
|
|
@import url(dialog.css);
|
2014-09-30 10:48:29 -05:00
|
|
|
@import url(text_layer_builder.css);
|
2015-12-17 12:54:53 +01:00
|
|
|
@import url(annotation_layer_builder.css);
|
2021-03-19 10:11:40 +01:00
|
|
|
@import url(xfa_layer_builder.css);
|
2023-09-21 15:18:12 +02:00
|
|
|
/* Ignored in GECKOVIEW builds: */
|
2022-06-01 10:38:08 +02:00
|
|
|
@import url(annotation_editor_layer_builder.css);
|
2014-09-30 10:48:29 -05:00
|
|
|
|
2021-04-10 16:02:24 +04:00
|
|
|
:root {
|
2022-05-05 17:37:33 +02:00
|
|
|
--viewer-container-height: 0;
|
2021-11-23 13:29:00 +01:00
|
|
|
--pdfViewer-padding-bottom: 0;
|
2021-04-10 16:02:24 +04:00
|
|
|
--page-margin: 1px auto -8px;
|
|
|
|
--page-border: 9px solid transparent;
|
|
|
|
--spreadHorizontalWrapped-margin-LR: -3.5px;
|
2022-12-27 14:01:27 +01:00
|
|
|
--loading-icon-delay: 400ms;
|
2025-02-12 19:29:16 +01:00
|
|
|
--focus-ring-color: #0060df;
|
|
|
|
--focus-ring-outline: 2px solid var(--focus-ring-color);
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
--focus-ring-color: #0df;
|
|
|
|
}
|
2021-04-10 16:02:24 +04:00
|
|
|
|
2025-02-12 19:29:16 +01:00
|
|
|
@media screen and (forced-colors: active) {
|
2021-04-10 16:02:24 +04:00
|
|
|
--pdfViewer-padding-bottom: 9px;
|
2022-06-28 21:29:35 +02:00
|
|
|
--page-margin: 8px auto -1px;
|
|
|
|
--page-border: 1px solid CanvasText;
|
|
|
|
--spreadHorizontalWrapped-margin-LR: 3.5px;
|
2025-02-12 19:29:16 +01:00
|
|
|
--focus-ring-color: CanvasText;
|
2021-04-10 16:02:24 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-23 15:47:45 +02:00
|
|
|
[data-main-rotation="90"] {
|
|
|
|
transform: rotate(90deg) translateY(-100%);
|
|
|
|
}
|
|
|
|
[data-main-rotation="180"] {
|
|
|
|
transform: rotate(180deg) translate(-100%, -100%);
|
|
|
|
}
|
|
|
|
[data-main-rotation="270"] {
|
|
|
|
transform: rotate(270deg) translateX(-100%);
|
|
|
|
}
|
|
|
|
|
2024-01-04 15:53:36 +01:00
|
|
|
#hiddenCopyElement,
|
|
|
|
.hiddenCanvasElement {
|
2023-04-13 16:57:23 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-04-10 16:02:24 +04:00
|
|
|
.pdfViewer {
|
2023-01-16 19:38:33 +01:00
|
|
|
/* Define this variable here and not in :root to avoid to reflow all the UI
|
|
|
|
when scaling (see #15929). */
|
|
|
|
--scale-factor: 1;
|
2024-09-02 10:05:09 +02:00
|
|
|
--page-bg-color: unset;
|
2023-01-16 19:38:33 +01:00
|
|
|
|
2021-04-10 16:02:24 +04:00
|
|
|
padding-bottom: var(--pdfViewer-padding-bottom);
|
2024-01-18 18:36:03 +01:00
|
|
|
|
|
|
|
--hcm-highlight-filter: none;
|
2024-01-25 09:13:40 +01:00
|
|
|
--hcm-highlight-selected-filter: none;
|
|
|
|
|
2024-01-18 18:36:03 +01:00
|
|
|
@media screen and (forced-colors: active) {
|
|
|
|
--hcm-highlight-filter: invert(100%);
|
|
|
|
}
|
2021-04-10 16:02:24 +04:00
|
|
|
|
2024-06-14 10:00:53 +02:00
|
|
|
&.copyAll {
|
|
|
|
cursor: wait;
|
|
|
|
}
|
|
|
|
|
2024-05-13 16:14:50 +02:00
|
|
|
.canvasWrapper {
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
canvas {
|
2024-12-04 19:34:57 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2024-05-13 16:14:50 +02:00
|
|
|
margin: 0;
|
|
|
|
display: block;
|
2024-09-05 17:05:22 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2024-12-04 19:34:57 +01:00
|
|
|
contain: content;
|
2024-05-13 16:14:50 +02:00
|
|
|
|
|
|
|
.structTree {
|
|
|
|
contain: strict;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-09-30 10:48:29 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.pdfViewer .page {
|
2025-02-11 11:55:24 +01:00
|
|
|
--user-unit: 1;
|
|
|
|
--total-scale-factor: calc(var(--scale-factor) * var(--user-unit));
|
2024-09-05 17:05:22 +02:00
|
|
|
--scale-round-x: 1px;
|
|
|
|
--scale-round-y: 1px;
|
|
|
|
|
2014-09-30 10:48:29 -05:00
|
|
|
direction: ltr;
|
|
|
|
width: 816px;
|
|
|
|
height: 1056px;
|
2021-04-10 16:02:24 +04:00
|
|
|
margin: var(--page-margin);
|
2014-09-30 10:48:29 -05:00
|
|
|
position: relative;
|
|
|
|
overflow: visible;
|
2021-04-10 16:02:24 +04:00
|
|
|
border: var(--page-border);
|
2014-09-30 10:48:29 -05:00
|
|
|
background-clip: content-box;
|
2024-09-02 10:05:09 +02:00
|
|
|
background-color: var(--page-bg-color, rgb(255 255 255));
|
2014-09-30 10:48:29 -05:00
|
|
|
}
|
|
|
|
|
2021-11-23 13:29:00 +01:00
|
|
|
.pdfViewer .dummyPage {
|
|
|
|
position: relative;
|
|
|
|
width: 0;
|
2022-05-05 17:37:33 +02:00
|
|
|
height: var(--viewer-container-height);
|
2021-11-23 13:29:00 +01:00
|
|
|
}
|
|
|
|
|
2023-08-02 20:08:09 +02:00
|
|
|
.pdfViewer.noUserSelect {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#if GENERIC*/
|
2015-03-11 20:36:01 +01:00
|
|
|
.pdfViewer.removePageBorders .page {
|
2021-01-22 14:36:02 +01:00
|
|
|
margin: 0 auto 10px;
|
2015-03-11 20:36:01 +01:00
|
|
|
border: none;
|
|
|
|
}
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#endif*/
|
2015-03-11 20:36:01 +01:00
|
|
|
|
2023-02-02 17:59:07 +01:00
|
|
|
/*#if COMPONENTS*/
|
2016-04-28 13:30:03 -05:00
|
|
|
.pdfViewer.singlePageView {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pdfViewer.singlePageView .page {
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
}
|
2023-02-02 17:59:07 +01:00
|
|
|
/*#endif*/
|
2016-04-28 13:30:03 -05:00
|
|
|
|
2023-04-18 12:01:08 +02:00
|
|
|
.pdfViewer:is(.scrollHorizontal, .scrollWrapped),
|
2018-05-14 23:10:32 -04:00
|
|
|
.spread {
|
2023-03-19 12:31:34 +01:00
|
|
|
margin-inline: 3.5px;
|
2018-05-14 23:10:32 -04:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2018-05-14 23:10:32 -04:00
|
|
|
.pdfViewer.scrollHorizontal,
|
|
|
|
.spread {
|
2018-05-14 23:10:32 -04:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#if GENERIC*/
|
2018-05-14 23:10:32 -04:00
|
|
|
.pdfViewer.removePageBorders,
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#endif*/
|
2023-04-18 12:01:08 +02:00
|
|
|
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .spread {
|
2023-03-19 12:31:34 +01:00
|
|
|
margin-inline: 0;
|
2018-05-14 23:10:32 -04:00
|
|
|
}
|
|
|
|
|
2023-04-18 12:01:08 +02:00
|
|
|
.spread :is(.page, .dummyPage),
|
|
|
|
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) :is(.page, .spread) {
|
2018-05-14 23:10:32 -04:00
|
|
|
display: inline-block;
|
2018-05-14 23:10:32 -04:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spread .page,
|
2023-04-18 12:01:08 +02:00
|
|
|
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .page {
|
2023-03-19 12:31:34 +01:00
|
|
|
margin-inline: var(--spreadHorizontalWrapped-margin-LR);
|
2018-05-14 23:10:32 -04:00
|
|
|
}
|
|
|
|
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#if GENERIC*/
|
2018-05-14 23:10:32 -04:00
|
|
|
.pdfViewer.removePageBorders .spread .page,
|
2023-04-18 12:01:08 +02:00
|
|
|
.pdfViewer.removePageBorders:is(.scrollHorizontal, .scrollWrapped) .page {
|
2023-03-19 12:31:34 +01:00
|
|
|
margin-inline: 5px;
|
2018-05-14 23:10:32 -04:00
|
|
|
}
|
2023-02-03 10:08:47 +01:00
|
|
|
/*#endif*/
|
2018-05-14 23:10:32 -04:00
|
|
|
|
2023-04-18 15:46:51 +02:00
|
|
|
.pdfViewer .page.loadingIcon::after {
|
2014-09-30 10:48:29 -05:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-01-29 17:53:01 +01:00
|
|
|
left: 0;
|
|
|
|
content: "";
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2014-09-30 10:48:29 -05:00
|
|
|
background: url("images/loading-icon.gif") center no-repeat;
|
2023-02-08 11:48:48 +01:00
|
|
|
display: none;
|
2022-12-27 14:01:27 +01:00
|
|
|
/* Using a delay with background-image doesn't work,
|
2023-02-08 11:48:48 +01:00
|
|
|
consequently we use the display. */
|
|
|
|
transition-property: display;
|
2022-12-27 14:01:27 +01:00
|
|
|
transition-delay: var(--loading-icon-delay);
|
2022-12-22 21:55:25 +01:00
|
|
|
z-index: 5;
|
2023-01-29 17:53:01 +01:00
|
|
|
contain: strict;
|
2014-09-30 10:48:29 -05:00
|
|
|
}
|
2023-01-29 17:53:01 +01:00
|
|
|
|
2023-04-18 15:46:51 +02:00
|
|
|
.pdfViewer .page.loading::after {
|
2023-02-08 11:48:48 +01:00
|
|
|
display: block;
|
2023-01-29 17:53:01 +01:00
|
|
|
}
|
|
|
|
|
2023-04-18 15:46:51 +02:00
|
|
|
.pdfViewer .page:not(.loading)::after {
|
2022-12-27 14:01:27 +01:00
|
|
|
transition-property: none;
|
2023-02-08 11:48:48 +01:00
|
|
|
display: none;
|
2021-11-14 12:20:04 +01:00
|
|
|
}
|
2014-09-30 10:48:29 -05:00
|
|
|
|
2018-05-14 23:10:32 -04:00
|
|
|
.pdfPresentationMode .pdfViewer {
|
2021-11-23 13:29:00 +01:00
|
|
|
padding-bottom: 0;
|
2018-05-14 23:10:32 -04:00
|
|
|
}
|
|
|
|
|
2021-11-23 13:29:00 +01:00
|
|
|
.pdfPresentationMode .spread {
|
|
|
|
margin: 0;
|
2018-05-14 23:10:32 -04:00
|
|
|
}
|
|
|
|
|
2021-11-23 13:29:00 +01:00
|
|
|
.pdfPresentationMode .pdfViewer .page {
|
|
|
|
margin: 0 auto;
|
|
|
|
border: 2px solid transparent;
|
2014-09-30 10:48:29 -05:00
|
|
|
}
|