UNPKG

7.89 kBCSSView Raw
1/* Copyright 2014 Mozilla Foundation
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16.textLayer {
17 position: absolute;
18 left: 0;
19 top: 0;
20 right: 0;
21 bottom: 0;
22 overflow: hidden;
23 opacity: 0.2;
24 line-height: 1.0;
25}
26
27.textLayer > div {
28 color: transparent;
29 position: absolute;
30 white-space: pre;
31 cursor: text;
32 -webkit-transform-origin: 0% 0%;
33 transform-origin: 0% 0%;
34}
35
36.textLayer .highlight {
37 margin: -1px;
38 padding: 1px;
39
40 background-color: rgb(180, 0, 170);
41 border-radius: 4px;
42}
43
44.textLayer .highlight.begin {
45 border-radius: 4px 0px 0px 4px;
46}
47
48.textLayer .highlight.end {
49 border-radius: 0px 4px 4px 0px;
50}
51
52.textLayer .highlight.middle {
53 border-radius: 0px;
54}
55
56.textLayer .highlight.selected {
57 background-color: rgb(0, 100, 0);
58}
59
60.textLayer ::-moz-selection { background: rgb(0,0,255); }
61
62.textLayer ::selection { background: rgb(0,0,255); }
63
64.textLayer .endOfContent {
65 display: block;
66 position: absolute;
67 left: 0px;
68 top: 100%;
69 right: 0px;
70 bottom: 0px;
71 z-index: -1;
72 cursor: default;
73 -webkit-user-select: none;
74 -moz-user-select: none;
75 -ms-user-select: none;
76 user-select: none;
77}
78
79.textLayer .endOfContent.active {
80 top: 0px;
81}
82
83
84.annotationLayer section {
85 position: absolute;
86}
87
88.annotationLayer .linkAnnotation > a,
89.annotationLayer .buttonWidgetAnnotation.pushButton > a {
90 position: absolute;
91 font-size: 1em;
92 top: 0;
93 left: 0;
94 width: 100%;
95 height: 100%;
96}
97
98.annotationLayer .linkAnnotation > a:hover,
99.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
100 opacity: 0.2;
101 background: #ff0;
102 box-shadow: 0px 2px 10px #ff0;
103}
104
105.annotationLayer .textAnnotation img {
106 position: absolute;
107 cursor: pointer;
108}
109
110.annotationLayer .textWidgetAnnotation input,
111.annotationLayer .textWidgetAnnotation textarea,
112.annotationLayer .choiceWidgetAnnotation select,
113.annotationLayer .buttonWidgetAnnotation.checkBox input,
114.annotationLayer .buttonWidgetAnnotation.radioButton input {
115 background-color: rgba(0, 54, 255, 0.13);
116 border: 1px solid transparent;
117 box-sizing: border-box;
118 font-size: 9px;
119 height: 100%;
120 margin: 0;
121 padding: 0 3px;
122 vertical-align: top;
123 width: 100%;
124}
125
126.annotationLayer .choiceWidgetAnnotation select option {
127 padding: 0;
128}
129
130.annotationLayer .buttonWidgetAnnotation.radioButton input {
131 border-radius: 50%;
132}
133
134.annotationLayer .textWidgetAnnotation textarea {
135 font: message-box;
136 font-size: 9px;
137 resize: none;
138}
139
140.annotationLayer .textWidgetAnnotation input[disabled],
141.annotationLayer .textWidgetAnnotation textarea[disabled],
142.annotationLayer .choiceWidgetAnnotation select[disabled],
143.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
144.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
145 background: none;
146 border: 1px solid transparent;
147 cursor: not-allowed;
148}
149
150.annotationLayer .textWidgetAnnotation input:hover,
151.annotationLayer .textWidgetAnnotation textarea:hover,
152.annotationLayer .choiceWidgetAnnotation select:hover,
153.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
154.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
155 border: 1px solid #000;
156}
157
158.annotationLayer .textWidgetAnnotation input:focus,
159.annotationLayer .textWidgetAnnotation textarea:focus,
160.annotationLayer .choiceWidgetAnnotation select:focus {
161 background: none;
162 border: 1px solid transparent;
163}
164
165.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
166.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
167.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
168 background-color: #000;
169 content: '';
170 display: block;
171 position: absolute;
172}
173
174.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
175.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
176 height: 80%;
177 left: 45%;
178 width: 1px;
179}
180
181.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
182 -webkit-transform: rotate(45deg);
183 transform: rotate(45deg);
184}
185
186.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
187 -webkit-transform: rotate(-45deg);
188 transform: rotate(-45deg);
189}
190
191.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
192 border-radius: 50%;
193 height: 50%;
194 left: 30%;
195 top: 20%;
196 width: 50%;
197}
198
199.annotationLayer .textWidgetAnnotation input.comb {
200 font-family: monospace;
201 padding-left: 2px;
202 padding-right: 0;
203}
204
205.annotationLayer .textWidgetAnnotation input.comb:focus {
206 /*
207 * Letter spacing is placed on the right side of each character. Hence, the
208 * letter spacing of the last character may be placed outside the visible
209 * area, causing horizontal scrolling. We avoid this by extending the width
210 * when the element has focus and revert this when it loses focus.
211 */
212 width: 115%;
213}
214
215.annotationLayer .buttonWidgetAnnotation.checkBox input,
216.annotationLayer .buttonWidgetAnnotation.radioButton input {
217 -webkit-appearance: none;
218 -moz-appearance: none;
219 appearance: none;
220 padding: 0;
221}
222
223.annotationLayer .popupWrapper {
224 position: absolute;
225 width: 20em;
226}
227
228.annotationLayer .popup {
229 position: absolute;
230 z-index: 200;
231 max-width: 20em;
232 background-color: #FFFF99;
233 box-shadow: 0px 2px 5px #333;
234 border-radius: 2px;
235 padding: 0.6em;
236 margin-left: 5px;
237 cursor: pointer;
238 font: message-box;
239 word-wrap: break-word;
240}
241
242.annotationLayer .popup h1 {
243 font-size: 1em;
244 border-bottom: 1px solid #000000;
245 margin: 0;
246 padding-bottom: 0.2em;
247}
248
249.annotationLayer .popup p {
250 margin: 0;
251 padding-top: 0.2em;
252}
253
254.annotationLayer .highlightAnnotation,
255.annotationLayer .underlineAnnotation,
256.annotationLayer .squigglyAnnotation,
257.annotationLayer .strikeoutAnnotation,
258.annotationLayer .lineAnnotation svg line,
259.annotationLayer .squareAnnotation svg rect,
260.annotationLayer .circleAnnotation svg ellipse,
261.annotationLayer .polylineAnnotation svg polyline,
262.annotationLayer .polygonAnnotation svg polygon,
263.annotationLayer .stampAnnotation,
264.annotationLayer .fileAttachmentAnnotation {
265 cursor: pointer;
266}
267
268.pdfViewer .canvasWrapper {
269 overflow: hidden;
270}
271
272.pdfViewer .page {
273 direction: ltr;
274 width: 816px;
275 height: 1056px;
276 margin: 1px auto -8px auto;
277 position: relative;
278 overflow: visible;
279 border: 9px solid transparent;
280 background-clip: content-box;
281 -o-border-image: url(images/shadow.png) 9 9 repeat;
282 border-image: url(images/shadow.png) 9 9 repeat;
283 background-color: white;
284}
285
286.pdfViewer.removePageBorders .page {
287 margin: 0px auto 10px auto;
288 border: none;
289}
290
291.pdfViewer.singlePageView {
292 display: inline-block;
293}
294
295.pdfViewer.singlePageView .page {
296 margin: 0;
297 border: none;
298}
299
300.pdfViewer .page canvas {
301 margin: 0;
302 display: block;
303}
304
305.pdfViewer .page canvas[hidden] {
306 display: none;
307}
308
309.pdfViewer .page .loadingIcon {
310 position: absolute;
311 display: block;
312 left: 0;
313 top: 0;
314 right: 0;
315 bottom: 0;
316 background: url('images/loading-icon.gif') center no-repeat;
317}
318
319.pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
320 margin-bottom: 100% !important;
321}
322
323.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
324 margin-bottom: 100%;
325 border: 0;
326}
327
328.pdfPresentationMode:-moz-full-screen .pdfViewer .page {
329 margin-bottom: 100%;
330 border: 0;
331}
332
333.pdfPresentationMode:fullscreen .pdfViewer .page {
334 margin-bottom: 100%;
335 border: 0;
336}