2014-10-01 00:48:29 +09: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.
|
|
|
|
*/
|
|
|
|
@import url(text_layer_builder.css);
|
2015-12-17 20:54:53 +09:00
|
|
|
@import url(annotation_layer_builder.css);
|
2021-03-19 18:11:40 +09:00
|
|
|
@import url(xfa_layer_builder.css);
|
2022-06-01 17:38:08 +09:00
|
|
|
@import url(annotation_editor_layer_builder.css);
|
2014-10-01 00:48:29 +09:00
|
|
|
|
2021-04-10 21:02:24 +09:00
|
|
|
:root {
|
2022-05-06 00:37:33 +09:00
|
|
|
--viewer-container-height: 0;
|
2021-11-23 21:29:00 +09:00
|
|
|
--pdfViewer-padding-bottom: 0;
|
2021-04-10 21:02:24 +09:00
|
|
|
--page-margin: 1px auto -8px;
|
|
|
|
--page-border: 9px solid transparent;
|
|
|
|
--spreadHorizontalWrapped-margin-LR: -3.5px;
|
2022-12-27 22:01:27 +09:00
|
|
|
--loading-icon-delay: 400ms;
|
2021-04-10 21:02:24 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (forced-colors: active) {
|
|
|
|
:root {
|
|
|
|
--pdfViewer-padding-bottom: 9px;
|
2022-06-29 04:29:35 +09:00
|
|
|
--page-margin: 8px auto -1px;
|
|
|
|
--page-border: 1px solid CanvasText;
|
|
|
|
--spreadHorizontalWrapped-margin-LR: 3.5px;
|
2021-04-10 21:02:24 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-23 22:47:45 +09: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%);
|
|
|
|
}
|
|
|
|
|
2021-04-10 21:02:24 +09:00
|
|
|
.pdfViewer {
|
2023-01-17 03:38:33 +09:00
|
|
|
/* Define this variable here and not in :root to avoid to reflow all the UI
|
|
|
|
when scaling (see #15929). */
|
|
|
|
--scale-factor: 1;
|
|
|
|
|
2021-04-10 21:02:24 +09:00
|
|
|
padding-bottom: var(--pdfViewer-padding-bottom);
|
|
|
|
}
|
|
|
|
|
2014-10-01 00:48:29 +09:00
|
|
|
.pdfViewer .canvasWrapper {
|
|
|
|
overflow: hidden;
|
2022-11-22 02:48:37 +09:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-12-23 05:55:25 +09:00
|
|
|
z-index: 1;
|
2014-10-01 00:48:29 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.pdfViewer .page {
|
|
|
|
direction: ltr;
|
|
|
|
width: 816px;
|
|
|
|
height: 1056px;
|
2021-04-10 21:02:24 +09:00
|
|
|
margin: var(--page-margin);
|
2014-10-01 00:48:29 +09:00
|
|
|
position: relative;
|
|
|
|
overflow: visible;
|
2021-04-10 21:02:24 +09:00
|
|
|
border: var(--page-border);
|
2014-10-01 00:48:29 +09:00
|
|
|
background-clip: content-box;
|
2019-12-25 22:44:05 +09:00
|
|
|
background-color: rgba(255, 255, 255, 1);
|
2014-10-01 00:48:29 +09:00
|
|
|
}
|
|
|
|
|
2021-11-23 21:29:00 +09:00
|
|
|
.pdfViewer .dummyPage {
|
|
|
|
position: relative;
|
|
|
|
width: 0;
|
2022-05-06 00:37:33 +09:00
|
|
|
height: var(--viewer-container-height);
|
2021-11-23 21:29:00 +09:00
|
|
|
}
|
|
|
|
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#if GENERIC*/
|
2015-03-12 04:36:01 +09:00
|
|
|
.pdfViewer.removePageBorders .page {
|
2021-01-22 22:36:02 +09:00
|
|
|
margin: 0 auto 10px;
|
2015-03-12 04:36:01 +09:00
|
|
|
border: none;
|
|
|
|
}
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#endif*/
|
2015-03-12 04:36:01 +09:00
|
|
|
|
2023-02-03 01:59:07 +09:00
|
|
|
/*#if COMPONENTS*/
|
2016-04-29 03:30:03 +09:00
|
|
|
.pdfViewer.singlePageView {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pdfViewer.singlePageView .page {
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
}
|
2023-02-03 01:59:07 +09:00
|
|
|
/*#endif*/
|
2016-04-29 03:30:03 +09:00
|
|
|
|
2020-08-30 23:24:55 +09:00
|
|
|
.pdfViewer.scrollHorizontal,
|
|
|
|
.pdfViewer.scrollWrapped,
|
|
|
|
.spread {
|
2023-03-19 20:31:34 +09:00
|
|
|
margin-inline: 3.5px;
|
2018-05-15 12:10:32 +09:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-08-30 23:24:55 +09:00
|
|
|
.pdfViewer.scrollHorizontal,
|
|
|
|
.spread {
|
2018-05-15 12:10:32 +09:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#if GENERIC*/
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.removePageBorders,
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#endif*/
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.scrollHorizontal .spread,
|
|
|
|
.pdfViewer.scrollWrapped .spread {
|
2023-03-19 20:31:34 +09:00
|
|
|
margin-inline: 0;
|
2018-05-15 12:10:32 +09:00
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.spread .page,
|
2021-11-23 21:29:00 +09:00
|
|
|
.spread .dummyPage,
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.scrollHorizontal .page,
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.scrollWrapped .page,
|
|
|
|
.pdfViewer.scrollHorizontal .spread,
|
|
|
|
.pdfViewer.scrollWrapped .spread {
|
2018-05-15 12:10:32 +09:00
|
|
|
display: inline-block;
|
2018-05-15 12:10:32 +09:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spread .page,
|
|
|
|
.pdfViewer.scrollHorizontal .page,
|
|
|
|
.pdfViewer.scrollWrapped .page {
|
2023-03-19 20:31:34 +09:00
|
|
|
margin-inline: var(--spreadHorizontalWrapped-margin-LR);
|
2018-05-15 12:10:32 +09:00
|
|
|
}
|
|
|
|
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#if GENERIC*/
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.removePageBorders .spread .page,
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfViewer.removePageBorders.scrollHorizontal .page,
|
|
|
|
.pdfViewer.removePageBorders.scrollWrapped .page {
|
2023-03-19 20:31:34 +09:00
|
|
|
margin-inline: 5px;
|
2018-05-15 12:10:32 +09:00
|
|
|
}
|
2023-02-03 18:08:47 +09:00
|
|
|
/*#endif*/
|
2018-05-15 12:10:32 +09:00
|
|
|
|
2014-10-01 00:48:29 +09:00
|
|
|
.pdfViewer .page canvas {
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2023-02-07 22:38:32 +09:00
|
|
|
.pdfViewer .page canvas .structTree {
|
|
|
|
contain: strict;
|
|
|
|
}
|
|
|
|
|
2017-06-21 04:45:07 +09:00
|
|
|
.pdfViewer .page canvas[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-12-12 22:24:27 +09:00
|
|
|
.pdfViewer .page canvas[zooming] {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-01-30 01:53:01 +09:00
|
|
|
.pdfViewer .page.loadingIcon:after {
|
2014-10-01 00:48:29 +09:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-01-30 01:53:01 +09:00
|
|
|
left: 0;
|
|
|
|
content: "";
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-08-30 23:24:55 +09:00
|
|
|
background: url("images/loading-icon.gif") center no-repeat;
|
2023-02-08 19:48:48 +09:00
|
|
|
display: none;
|
2022-12-27 22:01:27 +09:00
|
|
|
/* Using a delay with background-image doesn't work,
|
2023-02-08 19:48:48 +09:00
|
|
|
consequently we use the display. */
|
|
|
|
transition-property: display;
|
2022-12-27 22:01:27 +09:00
|
|
|
transition-delay: var(--loading-icon-delay);
|
2022-12-23 05:55:25 +09:00
|
|
|
z-index: 5;
|
2023-01-30 01:53:01 +09:00
|
|
|
contain: strict;
|
2014-10-01 00:48:29 +09:00
|
|
|
}
|
2023-01-30 01:53:01 +09:00
|
|
|
|
|
|
|
.pdfViewer .page.loading:after {
|
2023-02-08 19:48:48 +09:00
|
|
|
display: block;
|
2023-01-30 01:53:01 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.pdfViewer .page:not(.loading):after {
|
2022-12-27 22:01:27 +09:00
|
|
|
transition-property: none;
|
2023-02-08 19:48:48 +09:00
|
|
|
display: none;
|
2021-11-14 20:20:04 +09:00
|
|
|
}
|
2014-10-01 00:48:29 +09:00
|
|
|
|
2021-12-12 00:23:29 +09:00
|
|
|
.pdfViewer.enablePermissions .textLayer span {
|
|
|
|
user-select: none !important;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.pdfPresentationMode .pdfViewer {
|
2021-11-23 21:29:00 +09:00
|
|
|
padding-bottom: 0;
|
2018-05-15 12:10:32 +09:00
|
|
|
}
|
|
|
|
|
2021-11-23 21:29:00 +09:00
|
|
|
.pdfPresentationMode .spread {
|
|
|
|
margin: 0;
|
2018-05-15 12:10:32 +09:00
|
|
|
}
|
|
|
|
|
2021-11-23 21:29:00 +09:00
|
|
|
.pdfPresentationMode .pdfViewer .page {
|
|
|
|
margin: 0 auto;
|
|
|
|
border: 2px solid transparent;
|
2014-10-01 00:48:29 +09:00
|
|
|
}
|