2015-06-12 06:23:43 +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.
|
|
|
|
*/
|
|
|
|
|
2021-09-19 03:22:29 +09:00
|
|
|
:root {
|
|
|
|
--annotation-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>");
|
2022-09-15 01:58:26 +09:00
|
|
|
--input-focus-border-color: Highlight;
|
|
|
|
--input-focus-outline: 1px solid Canvas;
|
|
|
|
--input-unfocused-border-color: transparent;
|
|
|
|
--input-disabled-border-color: transparent;
|
|
|
|
--input-hover-border-color: black;
|
2023-02-22 20:01:56 +09:00
|
|
|
--link-outline: none;
|
2021-09-19 03:22:29 +09:00
|
|
|
}
|
|
|
|
|
2023-01-18 18:49:52 +09:00
|
|
|
@media screen and (forced-colors: active) {
|
2022-09-15 01:58:26 +09:00
|
|
|
:root {
|
|
|
|
--input-focus-border-color: CanvasText;
|
|
|
|
--input-unfocused-border-color: ActiveText;
|
|
|
|
--input-disabled-border-color: GrayText;
|
|
|
|
--input-hover-border-color: Highlight;
|
2023-02-22 20:01:56 +09:00
|
|
|
--link-outline: 1.5px solid LinkText;
|
2023-06-23 22:47:59 +09:00
|
|
|
--hcm-highligh-filter: invert(100%);
|
2022-09-15 01:58:26 +09:00
|
|
|
}
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea):required,
|
2022-06-07 21:44:17 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select:required,
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer
|
|
|
|
.buttonWidgetAnnotation:is(.checkBox, .radioButton)
|
|
|
|
input:required {
|
2022-06-07 21:44:17 +09:00
|
|
|
outline: 1.5px solid selectedItem;
|
|
|
|
}
|
2023-02-22 20:01:56 +09:00
|
|
|
|
|
|
|
.annotationLayer .linkAnnotation:hover {
|
2023-06-23 22:47:59 +09:00
|
|
|
backdrop-filter: var(--hcm-highligh-filter);
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .linkAnnotation > a:hover {
|
|
|
|
opacity: 0 !important;
|
|
|
|
background: none !important;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .popupAnnotation .popup {
|
|
|
|
outline: calc(1.5px * var(--scale-factor)) solid CanvasText !important;
|
|
|
|
background-color: ButtonFace !important;
|
|
|
|
color: ButtonText !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .highlightArea:hover::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
backdrop-filter: var(--hcm-highligh-filter);
|
|
|
|
content: "";
|
|
|
|
pointer-events: none;
|
2023-02-22 20:01:56 +09:00
|
|
|
}
|
2023-06-15 18:59:59 +09:00
|
|
|
|
|
|
|
.annotationLayer .popupAnnotation.focused .popup {
|
|
|
|
outline: calc(3px * var(--scale-factor)) solid Highlight !important;
|
|
|
|
}
|
2022-06-07 21:44:17 +09:00
|
|
|
}
|
|
|
|
|
2022-06-13 18:01:55 +09:00
|
|
|
.annotationLayer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transform-origin: 0 0;
|
2022-12-23 05:55:25 +09:00
|
|
|
z-index: 3;
|
2022-06-13 18:01:55 +09:00
|
|
|
}
|
|
|
|
|
2023-03-05 21:57:27 +09:00
|
|
|
.annotationLayer[data-main-rotation="90"] .norotate {
|
|
|
|
transform: rotate(270deg) translateX(-100%);
|
|
|
|
}
|
|
|
|
.annotationLayer[data-main-rotation="180"] .norotate {
|
|
|
|
transform: rotate(180deg) translate(-100%, -100%);
|
|
|
|
}
|
|
|
|
.annotationLayer[data-main-rotation="270"] .norotate {
|
|
|
|
transform: rotate(90deg) translateY(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer canvas {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-06-16 04:10:40 +09:00
|
|
|
pointer-events: none;
|
2023-03-05 21:57:27 +09:00
|
|
|
}
|
|
|
|
|
2015-12-03 08:20:18 +09:00
|
|
|
.annotationLayer section {
|
|
|
|
position: absolute;
|
2021-01-11 00:41:34 +09:00
|
|
|
text-align: initial;
|
2022-06-13 18:01:55 +09:00
|
|
|
pointer-events: auto;
|
|
|
|
box-sizing: border-box;
|
2022-06-19 23:39:54 +09:00
|
|
|
transform-origin: 0 0;
|
2015-12-03 08:20:18 +09:00
|
|
|
}
|
|
|
|
|
2023-02-22 20:01:56 +09:00
|
|
|
.annotationLayer .linkAnnotation {
|
|
|
|
outline: var(--link-outline);
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
|
2015-12-27 23:51:58 +09:00
|
|
|
position: absolute;
|
|
|
|
font-size: 1em;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer
|
2023-05-30 19:36:35 +09:00
|
|
|
:is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
|
2023-04-18 19:42:13 +09:00
|
|
|
> a:hover {
|
2015-06-12 06:23:43 +09:00
|
|
|
opacity: 0.2;
|
2023-05-30 19:36:35 +09:00
|
|
|
background-color: rgba(255, 255, 0, 1);
|
2021-01-10 22:02:38 +09:00
|
|
|
box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
|
|
|
|
2023-05-30 19:36:35 +09:00
|
|
|
.annotationLayer .linkAnnotation.hasBorder:hover {
|
|
|
|
background-color: rgba(255, 255, 0, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .hasBorder {
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
|
2015-12-23 05:31:56 +09:00
|
|
|
.annotationLayer .textAnnotation img {
|
2015-06-12 06:23:43 +09:00
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
2022-06-13 18:01:55 +09:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-03-05 21:57:27 +09:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea),
|
2016-12-16 07:49:46 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select,
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
|
2021-09-19 03:22:29 +09:00
|
|
|
background-image: var(--annotation-unfocused-field-background);
|
2022-09-15 01:58:26 +09:00
|
|
|
border: 2px solid var(--input-unfocused-border-color);
|
2016-09-07 05:26:57 +09:00
|
|
|
box-sizing: border-box;
|
2022-06-20 03:09:24 +09:00
|
|
|
font: calc(9px * var(--scale-factor)) sans-serif;
|
2016-09-07 05:26:57 +09:00
|
|
|
height: 100%;
|
2017-09-11 01:10:43 +09:00
|
|
|
margin: 0;
|
2016-09-07 05:26:57 +09:00
|
|
|
vertical-align: top;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea):required,
|
2022-06-07 21:44:17 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select:required,
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer
|
|
|
|
.buttonWidgetAnnotation:is(.checkBox, .radioButton)
|
|
|
|
input:required {
|
2022-06-07 21:44:17 +09:00
|
|
|
outline: 1.5px solid red;
|
|
|
|
}
|
|
|
|
|
2017-09-11 01:10:43 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select option {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2017-09-07 07:11:19 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.radioButton input {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
2016-09-14 23:32:51 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation textarea {
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
|
2016-12-16 06:15:38 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select[disabled],
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer
|
|
|
|
.buttonWidgetAnnotation:is(.checkBox, .radioButton)
|
|
|
|
input[disabled] {
|
2016-09-14 23:32:51 +09:00
|
|
|
background: none;
|
2022-09-15 01:58:26 +09:00
|
|
|
border: 2px solid var(--input-disabled-border-color);
|
2016-09-14 23:32:51 +09:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
|
2016-12-16 07:49:46 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select:hover,
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer
|
|
|
|
.buttonWidgetAnnotation:is(.checkBox, .radioButton)
|
|
|
|
input:hover {
|
2022-09-15 01:58:26 +09:00
|
|
|
border: 2px solid var(--input-hover-border-color);
|
2016-09-07 05:26:57 +09:00
|
|
|
}
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
|
2022-09-22 16:54:28 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select:hover,
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
2016-09-07 05:26:57 +09:00
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
|
2016-09-25 08:45:49 +09:00
|
|
|
.annotationLayer .choiceWidgetAnnotation select:focus {
|
2016-09-07 05:26:57 +09:00
|
|
|
background: none;
|
2022-09-15 01:58:26 +09:00
|
|
|
border: 2px solid var(--input-focus-border-color);
|
|
|
|
border-radius: 2px;
|
|
|
|
outline: var(--input-focus-outline);
|
2016-09-07 05:26:57 +09:00
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
|
2021-09-19 03:22:29 +09:00
|
|
|
background-image: none;
|
|
|
|
background-color: transparent;
|
2022-09-15 01:58:26 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox :focus {
|
|
|
|
border: 2px solid var(--input-focus-border-color);
|
|
|
|
border-radius: 2px;
|
|
|
|
outline: var(--input-focus-outline);
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.radioButton :focus {
|
|
|
|
border: 2px solid var(--input-focus-border-color);
|
|
|
|
outline: var(--input-focus-outline);
|
2021-08-05 19:58:36 +09:00
|
|
|
}
|
|
|
|
|
2023-04-18 22:46:51 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
|
2022-06-07 21:44:17 +09:00
|
|
|
background-color: CanvasText;
|
2020-08-30 23:24:55 +09:00
|
|
|
content: "";
|
2017-09-07 07:11:19 +09:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2023-04-18 22:46:51 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
|
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
|
2017-09-07 07:11:19 +09:00
|
|
|
height: 80%;
|
|
|
|
left: 45%;
|
|
|
|
width: 1px;
|
|
|
|
}
|
|
|
|
|
2023-04-18 22:46:51 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {
|
2017-09-07 07:11:19 +09:00
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
|
2023-04-18 22:46:51 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
|
2017-09-07 07:11:19 +09:00
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|
|
|
|
|
2023-04-18 22:46:51 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
|
2017-09-07 07:11:19 +09:00
|
|
|
border-radius: 50%;
|
|
|
|
height: 50%;
|
|
|
|
left: 30%;
|
|
|
|
top: 20%;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
2016-09-20 07:04:11 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation input.comb {
|
|
|
|
font-family: monospace;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
2021-10-05 16:26:43 +09:00
|
|
|
.annotationLayer .textWidgetAnnotation input.comb:focus {
|
|
|
|
/*
|
|
|
|
* Letter spacing is placed on the right side of each character. Hence, the
|
|
|
|
* letter spacing of the last character may be placed outside the visible
|
|
|
|
* area, causing horizontal scrolling. We avoid this by extending the width
|
|
|
|
* when the element has focus and revert this when it loses focus.
|
|
|
|
*/
|
|
|
|
width: 103%;
|
|
|
|
}
|
|
|
|
|
2023-04-18 19:42:13 +09:00
|
|
|
.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
|
2016-12-16 07:49:46 +09:00
|
|
|
appearance: none;
|
2016-11-04 21:01:42 +09:00
|
|
|
}
|
|
|
|
|
2023-06-15 18:59:59 +09:00
|
|
|
.annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
|
2022-06-20 05:44:58 +09:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-06-15 18:59:59 +09:00
|
|
|
.annotationLayer .popupAnnotation {
|
2015-06-12 06:23:43 +09:00
|
|
|
position: absolute;
|
2022-06-13 18:01:55 +09:00
|
|
|
font-size: calc(9px * var(--scale-factor));
|
|
|
|
pointer-events: none;
|
2023-06-15 18:59:59 +09:00
|
|
|
width: max-content;
|
|
|
|
max-width: 45%;
|
|
|
|
height: auto;
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
|
|
|
|
2015-12-23 05:31:56 +09:00
|
|
|
.annotationLayer .popup {
|
2019-12-26 00:19:14 +09:00
|
|
|
background-color: rgba(255, 255, 153, 1);
|
2022-06-13 18:01:55 +09:00
|
|
|
box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))
|
|
|
|
rgba(136, 136, 136, 1);
|
|
|
|
border-radius: calc(2px * var(--scale-factor));
|
2023-06-15 18:59:59 +09:00
|
|
|
outline: 1.5px solid rgb(255, 255, 74);
|
2022-06-13 18:01:55 +09:00
|
|
|
padding: calc(6px * var(--scale-factor));
|
2015-06-12 06:23:43 +09:00
|
|
|
cursor: pointer;
|
2017-09-11 01:10:43 +09:00
|
|
|
font: message-box;
|
2021-01-11 00:41:34 +09:00
|
|
|
white-space: normal;
|
2015-12-23 05:31:56 +09:00
|
|
|
word-wrap: break-word;
|
2022-06-13 18:01:55 +09:00
|
|
|
pointer-events: auto;
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
|
|
|
|
2023-06-15 18:59:59 +09:00
|
|
|
.annotationLayer .popupAnnotation.focused .popup {
|
|
|
|
outline-width: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .popup * {
|
2022-06-13 18:01:55 +09:00
|
|
|
font-size: calc(9px * var(--scale-factor));
|
2019-04-22 04:21:01 +09:00
|
|
|
}
|
|
|
|
|
2023-06-15 18:59:59 +09:00
|
|
|
.annotationLayer .popup > .header {
|
2019-04-22 04:21:01 +09:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2023-06-15 18:59:59 +09:00
|
|
|
.annotationLayer .popup > .header h1 {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .popup > .header .popupDate {
|
2019-04-22 04:21:01 +09:00
|
|
|
display: inline-block;
|
2022-06-13 18:01:55 +09:00
|
|
|
margin-left: calc(5px * var(--scale-factor));
|
2023-06-15 18:59:59 +09:00
|
|
|
width: fit-content;
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
|
|
|
|
2021-10-25 00:29:30 +09:00
|
|
|
.annotationLayer .popupContent {
|
2019-12-26 00:16:13 +09:00
|
|
|
border-top: 1px solid rgba(51, 51, 51, 1);
|
2022-06-13 18:01:55 +09:00
|
|
|
margin-top: calc(2px * var(--scale-factor));
|
|
|
|
padding-top: calc(2px * var(--scale-factor));
|
2015-06-12 06:23:43 +09:00
|
|
|
}
|
2015-12-28 08:33:41 +09:00
|
|
|
|
2021-10-25 00:29:30 +09:00
|
|
|
.annotationLayer .richText > * {
|
|
|
|
white-space: pre-wrap;
|
2022-06-13 18:01:55 +09:00
|
|
|
font-size: calc(9px * var(--scale-factor));
|
2021-10-25 00:29:30 +09:00
|
|
|
}
|
|
|
|
|
2023-09-05 00:29:50 +09:00
|
|
|
.annotationLayer .popupTriggerArea {
|
2015-12-29 23:09:28 +09:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2022-06-13 18:01:55 +09:00
|
|
|
|
|
|
|
.annotationLayer section svg {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-03-05 21:57:27 +09:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2022-06-13 18:01:55 +09:00
|
|
|
}
|
2022-08-03 19:03:49 +09:00
|
|
|
|
|
|
|
.annotationLayer .annotationTextContent {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
color: transparent;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.annotationLayer .annotationTextContent span {
|
|
|
|
width: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2023-05-30 19:36:35 +09:00
|
|
|
|
|
|
|
.annotationLayer svg.quadrilateralsContainer {
|
|
|
|
contain: strict;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: -1;
|
|
|
|
}
|