2022-12-15 00:40:25 +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(pdf_viewer.css);
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--dir-factor: 1;
|
|
|
|
--scale-select-width: 140px;
|
|
|
|
|
2023-04-14 02:15:08 +09:00
|
|
|
--toolbar-icon-opacity: 1;
|
2022-12-15 00:40:25 +09:00
|
|
|
--doorhanger-icon-opacity: 0.9;
|
|
|
|
|
2023-10-06 16:50:03 +09:00
|
|
|
--main-color: rgb(12 12 13);
|
|
|
|
--body-bg-color: rgb(212 212 215);
|
2022-12-15 00:40:25 +09:00
|
|
|
--scrollbar-color: auto;
|
|
|
|
--scrollbar-bg-color: auto;
|
2023-10-06 16:50:03 +09:00
|
|
|
--field-color: rgb(6 6 6);
|
|
|
|
--field-bg-color: rgb(255 255 255);
|
|
|
|
--field-border-color: rgb(187 187 188);
|
|
|
|
--doorhanger-bg-color: rgb(255 255 255);
|
2022-12-15 00:40:25 +09:00
|
|
|
--dialog-button-border: none;
|
2023-10-06 00:43:56 +09:00
|
|
|
--dialog-button-bg-color: rgb(12 12 13 / 0.1);
|
|
|
|
--dialog-button-hover-bg-color: rgb(12 12 13 / 0.3);
|
2023-04-07 17:28:53 +09:00
|
|
|
|
2023-04-24 18:44:43 +09:00
|
|
|
--toolbar-bg-color: #f9f9fb;
|
|
|
|
--toolbar-divider-color: #e0e0e6;
|
|
|
|
--toolbar-fg-color: #15141a;
|
|
|
|
|
|
|
|
--toolbarButton-download-icon: url(images/gv-toolbarButton-download.svg);
|
2023-05-05 22:18:01 +09:00
|
|
|
--toolbarButton-openinapp-icon: url(images/gv-toolbarButton-openinapp.svg);
|
2022-12-15 00:40:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
:root:dir(rtl) {
|
|
|
|
--dir-factor: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
2023-10-06 16:50:03 +09:00
|
|
|
--main-color: rgb(249 249 250);
|
|
|
|
--body-bg-color: rgb(42 42 46);
|
|
|
|
--scrollbar-color: rgb(121 121 123);
|
|
|
|
--scrollbar-bg-color: rgb(35 35 39);
|
|
|
|
--field-color: rgb(250 250 250);
|
|
|
|
--field-bg-color: rgb(64 64 68);
|
|
|
|
--field-border-color: rgb(115 115 115);
|
|
|
|
--doorhanger-bg-color: rgb(74 74 79);
|
|
|
|
--dialog-button-bg-color: rgb(92 92 97);
|
|
|
|
--dialog-button-hover-bg-color: rgb(115 115 115);
|
2023-04-24 18:44:43 +09:00
|
|
|
|
|
|
|
--toolbar-bg-color: #2b2a33;
|
|
|
|
--toolbar-divider-color: #5b5b66;
|
|
|
|
--toolbar-fg-color: #fbfbfe;
|
2022-12-15 00:40:25 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (forced-colors: active) {
|
|
|
|
:root {
|
|
|
|
--dialog-button-border: 1px solid Highlight;
|
|
|
|
--dialog-button-hover-bg-color: Highlight;
|
|
|
|
--dialog-button-hover-color: ButtonFace;
|
2023-07-31 00:23:21 +09:00
|
|
|
--field-border-color: ButtonText;
|
2022-12-15 00:40:25 +09:00
|
|
|
--main-color: CanvasText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background-color: var(--body-bg-color);
|
|
|
|
scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden,
|
|
|
|
[hidden] {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#outerContainer {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mainContainer {
|
|
|
|
position: absolute;
|
2023-03-19 22:30:42 +09:00
|
|
|
inset: 0;
|
2022-12-15 00:40:25 +09:00
|
|
|
min-width: 350px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#viewerContainer {
|
|
|
|
overflow: auto;
|
|
|
|
position: absolute;
|
2023-05-15 23:13:41 +09:00
|
|
|
inset-block: 41px 0;
|
|
|
|
inset-inline: 0;
|
2022-12-15 00:40:25 +09:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-05-15 23:13:41 +09:00
|
|
|
#viewerContainer.noToolbar {
|
|
|
|
inset-block-start: 0;
|
|
|
|
}
|
|
|
|
|
2022-12-15 00:40:25 +09:00
|
|
|
.dialogButton {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-04-19 23:37:48 +09:00
|
|
|
.dialogButton:is(:hover, :focus-visible) {
|
2022-12-15 00:40:25 +09:00
|
|
|
background-color: var(--dialog-button-hover-bg-color);
|
|
|
|
}
|
|
|
|
|
2023-04-19 23:37:48 +09:00
|
|
|
.dialogButton:is(:hover, :focus-visible) > span {
|
2022-12-15 00:40:25 +09:00
|
|
|
color: var(--dialog-button-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialogButton[disabled] {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialogButton {
|
|
|
|
min-width: 16px;
|
|
|
|
margin: 2px 1px;
|
|
|
|
padding: 2px 6px 0;
|
|
|
|
border: none;
|
|
|
|
border-radius: 2px;
|
|
|
|
color: var(--main-color);
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
user-select: none;
|
|
|
|
cursor: default;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarField {
|
|
|
|
padding: 4px 7px;
|
|
|
|
margin: 3px 0;
|
|
|
|
border-radius: 2px;
|
|
|
|
background-color: var(--field-bg-color);
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid var(--field-border-color);
|
|
|
|
box-shadow: none;
|
|
|
|
color: var(--field-color);
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 16px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarField:focus {
|
|
|
|
border-color: #0a84ff;
|
|
|
|
}
|
|
|
|
|
2023-04-07 17:28:53 +09:00
|
|
|
#floatingToolbar {
|
2023-04-24 18:44:43 +09:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-07 17:28:53 +09:00
|
|
|
position: absolute;
|
2023-04-24 18:44:43 +09:00
|
|
|
width: 100%;
|
|
|
|
height: 40px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
box-sizing: content-box;
|
|
|
|
border-block-end: solid 1px var(--toolbar-divider-color);
|
|
|
|
background-color: var(--toolbar-bg-color);
|
2023-04-07 17:28:53 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#floatingToolbar.show {
|
2023-04-14 02:15:08 +09:00
|
|
|
z-index: 100000;
|
|
|
|
opacity: 1;
|
2023-04-07 17:28:53 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#floatingToolbar:not(show) {
|
2023-04-14 02:15:08 +09:00
|
|
|
z-index: -1;
|
|
|
|
opacity: 0;
|
2023-04-07 17:28:53 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton {
|
2023-04-24 18:44:43 +09:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border-style: none;
|
2023-04-07 17:28:53 +09:00
|
|
|
user-select: none;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: transparent;
|
2023-04-24 18:44:43 +09:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2023-04-07 17:28:53 +09:00
|
|
|
outline: none;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton > span {
|
2023-04-24 18:44:43 +09:00
|
|
|
color: var(--toolbar-fg-color);
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2023-04-07 17:28:53 +09:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-04-19 23:37:48 +09:00
|
|
|
:is(.toolbarButton .dialogButton)[disabled] {
|
2023-04-07 17:28:53 +09:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton::before {
|
2023-04-24 18:44:43 +09:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2023-04-07 17:28:53 +09:00
|
|
|
content: "";
|
2023-04-24 18:44:43 +09:00
|
|
|
background-color: var(--toolbar-fg-color);
|
2023-04-07 17:28:53 +09:00
|
|
|
mask-size: cover;
|
2023-04-24 18:44:43 +09:00
|
|
|
margin-inline: 12px 8px;
|
2023-04-07 17:28:53 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#download::before {
|
|
|
|
mask-image: var(--toolbarButton-download-icon);
|
|
|
|
}
|
|
|
|
|
2023-05-05 22:18:01 +09:00
|
|
|
#openInApp::before {
|
|
|
|
mask-image: var(--toolbarButton-openinapp-icon);
|
|
|
|
}
|
|
|
|
|
2022-12-15 00:40:25 +09:00
|
|
|
.dialogButton {
|
|
|
|
width: auto;
|
|
|
|
margin: 3px 4px 2px !important;
|
|
|
|
padding: 2px 11px;
|
|
|
|
color: var(--main-color);
|
|
|
|
background-color: var(--dialog-button-bg-color);
|
|
|
|
border: var(--dialog-button-border) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog {
|
|
|
|
margin: auto;
|
|
|
|
padding: 15px;
|
|
|
|
border-spacing: 4px;
|
|
|
|
color: var(--main-color);
|
|
|
|
font: message-box;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
background-color: var(--doorhanger-bg-color);
|
2023-10-06 00:43:56 +09:00
|
|
|
border: 1px solid rgb(0 0 0 / 0.5);
|
2022-12-15 00:40:25 +09:00
|
|
|
border-radius: 4px;
|
2023-10-06 00:43:56 +09:00
|
|
|
box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
|
2022-12-15 00:40:25 +09:00
|
|
|
}
|
|
|
|
dialog::backdrop {
|
2023-10-06 00:43:56 +09:00
|
|
|
background-color: rgb(0 0 0 / 0.2);
|
2022-12-15 00:40:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
dialog > .row {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog > .row > * {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog .toolbarField {
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog .separator {
|
|
|
|
display: block;
|
|
|
|
margin: 4px 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
background-color: var(--separator-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog .buttonRow {
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog :link {
|
2023-10-06 16:50:03 +09:00
|
|
|
color: rgb(255 255 255);
|
2022-12-15 00:40:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#passwordDialog {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
#passwordDialog .toolbarField {
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-03-16 22:22:14 +09:00
|
|
|
|
|
|
|
#printContainer {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
body {
|
2023-10-06 00:43:56 +09:00
|
|
|
background: rgb(0 0 0 / 0) none;
|
2023-03-16 22:22:14 +09:00
|
|
|
}
|
|
|
|
body[data-pdfjsprinting] #outerContainer {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
body[data-pdfjsprinting] #printContainer {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
#printContainer {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
/* wrapper around (scaled) print canvas elements */
|
|
|
|
#printContainer > .printedPage {
|
|
|
|
page-break-after: always;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
|
|
|
/* The wrapper always cover the whole page. */
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#printContainer > .xfaPrintedPage .xfaPage {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
#printContainer > .xfaPrintedPage {
|
|
|
|
page-break-after: always;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
#printContainer > .printedPage :is(canvas, img) {
|
|
|
|
/* The intrinsic canvas / image size will make sure that we fit the page. */
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
|
|
|
|
direction: ltr;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|