UNPKG

9.33 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 > span {
28 color: transparent;
29 position: absolute;
30 white-space: pre;
31 cursor: text;
32 transform-origin: 0% 0%;
33}
34
35.textLayer .highlight {
36 margin: -1px;
37 padding: 1px;
38 background-color: rgba(180, 0, 170, 1);
39 border-radius: 4px;
40}
41
42.textLayer .highlight.begin {
43 border-radius: 4px 0px 0px 4px;
44}
45
46.textLayer .highlight.end {
47 border-radius: 0px 4px 4px 0px;
48}
49
50.textLayer .highlight.middle {
51 border-radius: 0px;
52}
53
54.textLayer .highlight.selected {
55 background-color: rgba(0, 100, 0, 1);
56}
57
58.textLayer ::-moz-selection {
59 background: rgba(0, 0, 255, 1);
60}
61
62.textLayer ::selection {
63 background: rgba(0, 0, 255, 1);
64}
65
66.textLayer .endOfContent {
67 display: block;
68 position: absolute;
69 left: 0px;
70 top: 100%;
71 right: 0px;
72 bottom: 0px;
73 z-index: -1;
74 cursor: default;
75 -webkit-user-select: none;
76 -moz-user-select: none;
77 -ms-user-select: none;
78 user-select: none;
79}
80
81.textLayer .endOfContent.active {
82 top: 0px;
83}
84
85
86.annotationLayer section {
87 position: absolute;
88}
89
90.annotationLayer .linkAnnotation > a,
91.annotationLayer .buttonWidgetAnnotation.pushButton > a {
92 position: absolute;
93 font-size: 1em;
94 top: 0;
95 left: 0;
96 width: 100%;
97 height: 100%;
98}
99
100.annotationLayer .linkAnnotation > a:hover,
101.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
102 opacity: 0.2;
103 background: rgba(255, 255, 0, 1);
104 box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
105}
106
107.annotationLayer .textAnnotation img {
108 position: absolute;
109 cursor: pointer;
110}
111
112.annotationLayer .textWidgetAnnotation input,
113.annotationLayer .textWidgetAnnotation textarea,
114.annotationLayer .choiceWidgetAnnotation select,
115.annotationLayer .buttonWidgetAnnotation.checkBox input,
116.annotationLayer .buttonWidgetAnnotation.radioButton input {
117 background-color: rgba(0, 54, 255, 0.13);
118 border: 1px solid transparent;
119 box-sizing: border-box;
120 font-size: 9px;
121 height: 100%;
122 margin: 0;
123 padding: 0 3px;
124 vertical-align: top;
125 width: 100%;
126}
127
128.annotationLayer .choiceWidgetAnnotation select option {
129 padding: 0;
130}
131
132.annotationLayer .buttonWidgetAnnotation.radioButton input {
133 border-radius: 50%;
134}
135
136.annotationLayer .textWidgetAnnotation textarea {
137 font: message-box;
138 font-size: 9px;
139 resize: none;
140}
141
142.annotationLayer .textWidgetAnnotation input[disabled],
143.annotationLayer .textWidgetAnnotation textarea[disabled],
144.annotationLayer .choiceWidgetAnnotation select[disabled],
145.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
146.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
147 background: none;
148 border: 1px solid transparent;
149 cursor: not-allowed;
150}
151
152.annotationLayer .textWidgetAnnotation input:hover,
153.annotationLayer .textWidgetAnnotation textarea:hover,
154.annotationLayer .choiceWidgetAnnotation select:hover,
155.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
156.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
157 border: 1px solid rgba(0, 0, 0, 1);
158}
159
160.annotationLayer .textWidgetAnnotation input:focus,
161.annotationLayer .textWidgetAnnotation textarea:focus,
162.annotationLayer .choiceWidgetAnnotation select:focus {
163 background: none;
164 border: 1px solid transparent;
165}
166
167.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
168.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
169.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
170 background-color: rgba(0, 0, 0, 1);
171 content: '';
172 display: block;
173 position: absolute;
174}
175
176.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
177.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
178 height: 80%;
179 left: 45%;
180 width: 1px;
181}
182
183.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
184 transform: rotate(45deg);
185}
186
187.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
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: rgba(255, 255, 153, 1);
233 box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
234 border-radius: 2px;
235 padding: 6px;
236 margin-left: 5px;
237 cursor: pointer;
238 font: message-box;
239 font-size: 9px;
240 word-wrap: break-word;
241}
242
243.annotationLayer .popup > * {
244 font-size: 9px;
245}
246
247.annotationLayer .popup h1 {
248 display: inline-block;
249}
250
251.annotationLayer .popup span {
252 display: inline-block;
253 margin-left: 5px;
254}
255
256.annotationLayer .popup p {
257 border-top: 1px solid rgba(51, 51, 51, 1);
258 margin-top: 2px;
259 padding-top: 2px;
260}
261
262.annotationLayer .highlightAnnotation,
263.annotationLayer .underlineAnnotation,
264.annotationLayer .squigglyAnnotation,
265.annotationLayer .strikeoutAnnotation,
266.annotationLayer .freeTextAnnotation,
267.annotationLayer .lineAnnotation svg line,
268.annotationLayer .squareAnnotation svg rect,
269.annotationLayer .circleAnnotation svg ellipse,
270.annotationLayer .polylineAnnotation svg polyline,
271.annotationLayer .polygonAnnotation svg polygon,
272.annotationLayer .caretAnnotation,
273.annotationLayer .inkAnnotation svg polyline,
274.annotationLayer .stampAnnotation,
275.annotationLayer .fileAttachmentAnnotation {
276 cursor: pointer;
277}
278
279.pdfViewer .canvasWrapper {
280 overflow: hidden;
281}
282
283.pdfViewer .page {
284 direction: ltr;
285 width: 816px;
286 height: 1056px;
287 margin: 1px auto -8px auto;
288 position: relative;
289 overflow: visible;
290 border: 9px solid transparent;
291 background-clip: content-box;
292 -o-border-image: url(images/shadow.png) 9 9 repeat;
293 border-image: url(images/shadow.png) 9 9 repeat;
294 background-color: rgba(255, 255, 255, 1);
295}
296
297.pdfViewer.removePageBorders .page {
298 margin: 0px auto 10px auto;
299 border: none;
300}
301
302.pdfViewer.singlePageView {
303 display: inline-block;
304}
305
306.pdfViewer.singlePageView .page {
307 margin: 0;
308 border: none;
309}
310
311.pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
312 margin-left: 3.5px;
313 margin-right: 3.5px;
314 text-align: center;
315}
316
317.pdfViewer.scrollHorizontal, .spread {
318 white-space: nowrap;
319}
320
321.pdfViewer.removePageBorders,
322.pdfViewer.scrollHorizontal .spread,
323.pdfViewer.scrollWrapped .spread {
324 margin-left: 0;
325 margin-right: 0;
326}
327
328.spread .page,
329.pdfViewer.scrollHorizontal .page,
330.pdfViewer.scrollWrapped .page,
331.pdfViewer.scrollHorizontal .spread,
332.pdfViewer.scrollWrapped .spread {
333 display: inline-block;
334 vertical-align: middle;
335}
336
337.spread .page,
338.pdfViewer.scrollHorizontal .page,
339.pdfViewer.scrollWrapped .page {
340 margin-left: -3.5px;
341 margin-right: -3.5px;
342}
343
344.pdfViewer.removePageBorders .spread .page,
345.pdfViewer.removePageBorders.scrollHorizontal .page,
346.pdfViewer.removePageBorders.scrollWrapped .page {
347 margin-left: 5px;
348 margin-right: 5px;
349}
350
351.pdfViewer .page canvas {
352 margin: 0;
353 display: block;
354}
355
356.pdfViewer .page canvas[hidden] {
357 display: none;
358}
359
360.pdfViewer .page .loadingIcon {
361 position: absolute;
362 display: block;
363 left: 0;
364 top: 0;
365 right: 0;
366 bottom: 0;
367 background: url('images/loading-icon.gif') center no-repeat;
368}
369
370.pdfPresentationMode .pdfViewer {
371 margin-left: 0;
372 margin-right: 0;
373}
374
375.pdfPresentationMode .pdfViewer .page,
376.pdfPresentationMode .pdfViewer .spread {
377 display: block;
378}
379
380.pdfPresentationMode .pdfViewer .page,
381.pdfPresentationMode .pdfViewer.removePageBorders .page {
382 margin-left: auto;
383 margin-right: auto;
384}
385
386.pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
387 margin-bottom: 100% !important;
388}
389
390.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
391 margin-bottom: 100%;
392 border: 0;
393}
394
395.pdfPresentationMode:-moz-full-screen .pdfViewer .page {
396 margin-bottom: 100%;
397 border: 0;
398}
399
400.pdfPresentationMode:fullscreen .pdfViewer .page {
401 margin-bottom: 100%;
402 border: 0;
403}