pdfjs_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +37 -0
  6. data/Rakefile +1 -0
  7. data/lib/generators/pdfjs_rails/install_generator.rb +13 -0
  8. data/lib/pdfjs/build/pdf.js +7071 -0
  9. data/lib/pdfjs/build/pdf.worker.js +38687 -0
  10. data/lib/pdfjs/web/compatibility.js +471 -0
  11. data/lib/pdfjs/web/debugger.js +532 -0
  12. data/lib/pdfjs/web/images/annotation-check.svg +10 -0
  13. data/lib/pdfjs/web/images/annotation-comment.svg +15 -0
  14. data/lib/pdfjs/web/images/annotation-help.svg +25 -0
  15. data/lib/pdfjs/web/images/annotation-insert.svg +9 -0
  16. data/lib/pdfjs/web/images/annotation-key.svg +10 -0
  17. data/lib/pdfjs/web/images/annotation-newparagraph.svg +10 -0
  18. data/lib/pdfjs/web/images/annotation-note.svg +41 -0
  19. data/lib/pdfjs/web/images/annotation-paragraph.svg +15 -0
  20. data/lib/pdfjs/web/images/findbarButton-next-rtl.png +0 -0
  21. data/lib/pdfjs/web/images/findbarButton-next.png +0 -0
  22. data/lib/pdfjs/web/images/findbarButton-previous-rtl.png +0 -0
  23. data/lib/pdfjs/web/images/findbarButton-previous.png +0 -0
  24. data/lib/pdfjs/web/images/loading-icon.gif +0 -0
  25. data/lib/pdfjs/web/images/loading-small.png +0 -0
  26. data/lib/pdfjs/web/images/secondaryToolbarButton-firstPage.png +0 -0
  27. data/lib/pdfjs/web/images/secondaryToolbarButton-lastPage.png +0 -0
  28. data/lib/pdfjs/web/images/secondaryToolbarButton-rotateCcw.png +0 -0
  29. data/lib/pdfjs/web/images/secondaryToolbarButton-rotateCw.png +0 -0
  30. data/lib/pdfjs/web/images/shadow.png +0 -0
  31. data/lib/pdfjs/web/images/texture.png +0 -0
  32. data/lib/pdfjs/web/images/toolbarButton-bookmark.png +0 -0
  33. data/lib/pdfjs/web/images/toolbarButton-download.png +0 -0
  34. data/lib/pdfjs/web/images/toolbarButton-menuArrows.png +0 -0
  35. data/lib/pdfjs/web/images/toolbarButton-openFile.png +0 -0
  36. data/lib/pdfjs/web/images/toolbarButton-pageDown-rtl.png +0 -0
  37. data/lib/pdfjs/web/images/toolbarButton-pageDown.png +0 -0
  38. data/lib/pdfjs/web/images/toolbarButton-pageUp-rtl.png +0 -0
  39. data/lib/pdfjs/web/images/toolbarButton-pageUp.png +0 -0
  40. data/lib/pdfjs/web/images/toolbarButton-presentationMode.png +0 -0
  41. data/lib/pdfjs/web/images/toolbarButton-print.png +0 -0
  42. data/lib/pdfjs/web/images/toolbarButton-search.png +0 -0
  43. data/lib/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.png +0 -0
  44. data/lib/pdfjs/web/images/toolbarButton-sidebarToggle.png +0 -0
  45. data/lib/pdfjs/web/images/toolbarButton-viewOutline.png +0 -0
  46. data/lib/pdfjs/web/images/toolbarButton-viewThumbnail.png +0 -0
  47. data/lib/pdfjs/web/images/toolbarButton-zoomIn.png +0 -0
  48. data/lib/pdfjs/web/images/toolbarButton-zoomOut.png +0 -0
  49. data/lib/pdfjs/web/l10n.js +922 -0
  50. data/lib/pdfjs/web/locale/ar/viewer.properties +112 -0
  51. data/lib/pdfjs/web/locale/ca/viewer.properties +131 -0
  52. data/lib/pdfjs/web/locale/cs/viewer.properties +58 -0
  53. data/lib/pdfjs/web/locale/da/viewer.properties +132 -0
  54. data/lib/pdfjs/web/locale/de/viewer.properties +128 -0
  55. data/lib/pdfjs/web/locale/el/viewer.properties +124 -0
  56. data/lib/pdfjs/web/locale/en-US/viewer.properties +134 -0
  57. data/lib/pdfjs/web/locale/es/viewer.properties +131 -0
  58. data/lib/pdfjs/web/locale/fi/viewer.properties +129 -0
  59. data/lib/pdfjs/web/locale/fr/viewer.properties +130 -0
  60. data/lib/pdfjs/web/locale/he/viewer.properties +59 -0
  61. data/lib/pdfjs/web/locale/it/viewer.properties +44 -0
  62. data/lib/pdfjs/web/locale/ja/viewer.properties +132 -0
  63. data/lib/pdfjs/web/locale/ko/viewer.properties +131 -0
  64. data/lib/pdfjs/web/locale/locale.properties +78 -0
  65. data/lib/pdfjs/web/locale/lt/viewer.properties +129 -0
  66. data/lib/pdfjs/web/locale/nl/viewer.properties +134 -0
  67. data/lib/pdfjs/web/locale/pl/viewer.properties +132 -0
  68. data/lib/pdfjs/web/locale/pt-BR/viewer.properties +44 -0
  69. data/lib/pdfjs/web/locale/ro/viewer.properties +55 -0
  70. data/lib/pdfjs/web/locale/ru/viewer.properties +62 -0
  71. data/lib/pdfjs/web/locale/sr/viewer.properties +55 -0
  72. data/lib/pdfjs/web/locale/sv/viewer.properties +134 -0
  73. data/lib/pdfjs/web/locale/tr/viewer.properties +129 -0
  74. data/lib/pdfjs/web/locale/vi/viewer.properties +131 -0
  75. data/lib/pdfjs/web/locale/zh-CN/viewer.properties +129 -0
  76. data/lib/pdfjs/web/locale/zh-TW/viewer.properties +132 -0
  77. data/lib/pdfjs/web/viewer.css +1544 -0
  78. data/lib/pdfjs/web/viewer.html +250 -0
  79. data/lib/pdfjs/web/viewer.js +4477 -0
  80. data/lib/pdfjs_rails.rb +6 -0
  81. data/lib/pdfjs_rails/railtie.rb +9 -0
  82. data/lib/pdfjs_rails/version.rb +3 -0
  83. data/lib/pdfjs_rails/view_helpers.rb +225 -0
  84. data/pdfjs_rails.gemspec +24 -0
  85. data/vender/assets/images/annotation-check.svg +10 -0
  86. data/vender/assets/images/annotation-comment.svg +15 -0
  87. data/vender/assets/images/annotation-help.svg +25 -0
  88. data/vender/assets/images/annotation-insert.svg +9 -0
  89. data/vender/assets/images/annotation-key.svg +10 -0
  90. data/vender/assets/images/annotation-newparagraph.svg +10 -0
  91. data/vender/assets/images/annotation-note.svg +41 -0
  92. data/vender/assets/images/annotation-paragraph.svg +15 -0
  93. data/vender/assets/images/findbarButton-next-rtl.png +0 -0
  94. data/vender/assets/images/findbarButton-next.png +0 -0
  95. data/vender/assets/images/findbarButton-previous-rtl.png +0 -0
  96. data/vender/assets/images/findbarButton-previous.png +0 -0
  97. data/vender/assets/images/loading-icon.gif +0 -0
  98. data/vender/assets/images/loading-small.png +0 -0
  99. data/vender/assets/images/shadow.png +0 -0
  100. data/vender/assets/images/texture.png +0 -0
  101. data/vender/assets/images/toolbarButton-bookmark.png +0 -0
  102. data/vender/assets/images/toolbarButton-download.png +0 -0
  103. data/vender/assets/images/toolbarButton-menuArrows.png +0 -0
  104. data/vender/assets/images/toolbarButton-openFile.png +0 -0
  105. data/vender/assets/images/toolbarButton-pageDown-rtl.png +0 -0
  106. data/vender/assets/images/toolbarButton-pageDown.png +0 -0
  107. data/vender/assets/images/toolbarButton-pageUp-rtl.png +0 -0
  108. data/vender/assets/images/toolbarButton-pageUp.png +0 -0
  109. data/vender/assets/images/toolbarButton-presentationMode.png +0 -0
  110. data/vender/assets/images/toolbarButton-print.png +0 -0
  111. data/vender/assets/images/toolbarButton-search.png +0 -0
  112. data/vender/assets/images/toolbarButton-sidebarToggle.png +0 -0
  113. data/vender/assets/images/toolbarButton-viewOutline.png +0 -0
  114. data/vender/assets/images/toolbarButton-viewThumbnail.png +0 -0
  115. data/vender/assets/images/toolbarButton-zoomIn.png +0 -0
  116. data/vender/assets/images/toolbarButton-zoomOut.png +0 -0
  117. data/vender/assets/javascripts/application.js +22 -0
  118. data/vender/assets/javascripts/compatibility.js +471 -0
  119. data/vender/assets/javascripts/debugger.js +532 -0
  120. data/vender/assets/javascripts/l10n.js +922 -0
  121. data/vender/assets/javascripts/pdf.js +7063 -0
  122. data/vender/assets/javascripts/pdf.worker.js +38679 -0
  123. data/vender/assets/javascripts/viewer.js +4317 -0
  124. data/vender/assets/stylesheets/viewer.css +1382 -0
  125. metadata +209 -0
@@ -0,0 +1,1382 @@
1
+ /* Copyright 2012 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
+ * {
17
+ padding: 0;
18
+ margin: 0;
19
+ }
20
+
21
+ html {
22
+ height: 100%;
23
+ }
24
+
25
+ body {
26
+ height: 100%;
27
+ background-color: #404040;
28
+ background-image: url(texture.png);
29
+ }
30
+
31
+ body,
32
+ input,
33
+ button,
34
+ select {
35
+ font: message-box;
36
+ }
37
+
38
+ .hidden {
39
+ display: none;
40
+ }
41
+ [hidden] {
42
+ display: none !important;
43
+ }
44
+
45
+
46
+
47
+ #viewerContainer:-webkit-full-screen {
48
+ top: 0px;
49
+ border-top: 2px solid transparent;
50
+ background-color: #404040;
51
+ background-image: url(texture.png);
52
+ width: 100%;
53
+ height: 100%;
54
+ overflow: hidden;
55
+ cursor: none;
56
+ }
57
+
58
+ #viewerContainer:-moz-full-screen {
59
+ top: 0px;
60
+ border-top: 2px solid transparent;
61
+ background-color: #404040;
62
+ background-image: url(texture.png);
63
+ width: 100%;
64
+ height: 100%;
65
+ overflow: hidden;
66
+ cursor: none;
67
+ }
68
+
69
+ #viewerContainer:fullscreen {
70
+ top: 0px;
71
+ border-top: 2px solid transparent;
72
+ background-color: #404040;
73
+ background-image: url(texture.png);
74
+ width: 100%;
75
+ height: 100%;
76
+ overflow: hidden;
77
+ cursor: none;
78
+ }
79
+
80
+
81
+ :-webkit-full-screen .page {
82
+ margin-bottom: 100%;
83
+ }
84
+
85
+ :-moz-full-screen .page {
86
+ margin-bottom: 100%;
87
+ }
88
+
89
+ :fullscreen .page {
90
+ margin-bottom: 100%;
91
+ }
92
+
93
+ :-webkit-full-screen a:not(.internalLink) {
94
+ display: none;
95
+ }
96
+
97
+ :-moz-full-screen a:not(.internalLink) {
98
+ display: none;
99
+ }
100
+
101
+ :fullscreen a:not(.internalLink) {
102
+ display: none;
103
+ }
104
+
105
+ #viewerContainer.presentationControls {
106
+ cursor: default;
107
+ }
108
+
109
+ /* outer/inner center provides horizontal center */
110
+ html[dir='ltr'] .outerCenter {
111
+ float: right;
112
+ position: relative;
113
+ right: 50%;
114
+ }
115
+ html[dir='rtl'] .outerCenter {
116
+ float: left;
117
+ position: relative;
118
+ left: 50%;
119
+ }
120
+ html[dir='ltr'] .innerCenter {
121
+ float: right;
122
+ position: relative;
123
+ right: -50%;
124
+ }
125
+ html[dir='rtl'] .innerCenter {
126
+ float: left;
127
+ position: relative;
128
+ left: -50%;
129
+ }
130
+
131
+ #outerContainer {
132
+ width: 100%;
133
+ height: 100%;
134
+ }
135
+
136
+ #sidebarContainer {
137
+ position: absolute;
138
+ top: 0;
139
+ bottom: 0;
140
+ width: 200px;
141
+ visibility: hidden;
142
+ -webkit-transition-duration: 200ms;
143
+ -webkit-transition-timing-function: ease;
144
+ transition-duration: 200ms;
145
+ transition-timing-function: ease;
146
+
147
+ }
148
+ html[dir='ltr'] #sidebarContainer {
149
+ -webkit-transition-property: left;
150
+ transition-property: left;
151
+ left: -200px;
152
+ }
153
+ html[dir='rtl'] #sidebarContainer {
154
+ -webkit-transition-property: right;
155
+ transition-property: right;
156
+ right: -200px;
157
+ }
158
+
159
+ #outerContainer.sidebarMoving > #sidebarContainer,
160
+ #outerContainer.sidebarOpen > #sidebarContainer {
161
+ visibility: visible;
162
+ }
163
+ html[dir='ltr'] #outerContainer.sidebarOpen > #sidebarContainer {
164
+ left: 0px;
165
+ }
166
+ html[dir='rtl'] #outerContainer.sidebarOpen > #sidebarContainer {
167
+ right: 0px;
168
+ }
169
+
170
+ #mainContainer {
171
+ position: absolute;
172
+ top: 0;
173
+ right: 0;
174
+ bottom: 0;
175
+ left: 0;
176
+ min-width: 320px;
177
+ -webkit-transition-duration: 200ms;
178
+ -webkit-transition-timing-function: ease;
179
+ transition-duration: 200ms;
180
+ transition-timing-function: ease;
181
+ }
182
+ html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
183
+ -webkit-transition-property: left;
184
+ transition-property: left;
185
+ left: 200px;
186
+ }
187
+ html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
188
+ -webkit-transition-property: right;
189
+ transition-property: right;
190
+ right: 200px;
191
+ }
192
+
193
+ #sidebarContent {
194
+ top: 32px;
195
+ bottom: 0;
196
+ overflow: auto;
197
+ position: absolute;
198
+ width: 200px;
199
+
200
+ background-color: hsla(0,0%,0%,.1);
201
+ box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
202
+ }
203
+ html[dir='ltr'] #sidebarContent {
204
+ left: 0;
205
+ }
206
+ html[dir='rtl'] #sidebarContent {
207
+ right: 0;
208
+ }
209
+
210
+ #viewerContainer {
211
+ overflow: auto;
212
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
213
+ position: absolute;
214
+ top: 32px;
215
+ right: 0;
216
+ bottom: 0;
217
+ left: 0;
218
+ outline: none;
219
+ }
220
+
221
+ .toolbar {
222
+ position: relative;
223
+ left: 0;
224
+ right: 0;
225
+ z-index: 9999;
226
+ cursor: default;
227
+ }
228
+
229
+ #toolbarContainer {
230
+ width: 100%;
231
+ }
232
+
233
+ #toolbarSidebar {
234
+ width: 200px;
235
+ height: 32px;
236
+ background-color: #424242; /* fallback */
237
+ background-image: url(texture.png),
238
+ linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
239
+ box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
240
+
241
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
242
+ 0 1px 0 hsla(0,0%,0%,.15),
243
+ 0 0 1px hsla(0,0%,0%,.1);
244
+ }
245
+
246
+ #toolbarContainer, .findbar {
247
+ position: relative;
248
+ height: 32px;
249
+ background-color: #474747; /* fallback */
250
+ background-image: url(texture.png),
251
+ linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
252
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
253
+ inset 0 1px 1px hsla(0,0%,0%,.15),
254
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
255
+ 0 1px 0 hsla(0,0%,0%,.15),
256
+ 0 1px 1px hsla(0,0%,0%,.1);
257
+ }
258
+
259
+ #toolbarViewer {
260
+ height: 32px;
261
+ }
262
+
263
+ #loadingBar {
264
+ position: relative;
265
+ width: 100%;
266
+ height: 6px;
267
+ background-color: #333;
268
+ border-bottom: 1px solid #333;
269
+ }
270
+
271
+ #loadingBar .progress {
272
+ position: absolute;
273
+ top: 0;
274
+ left: 0;
275
+ width: 0%;
276
+ height: 100%;
277
+ background-color: #ddd;
278
+ overflow: hidden;
279
+ -webkit-transition: width 200ms;
280
+ transition: width 200ms;
281
+ }
282
+
283
+ @-webkit-keyframes progressIndeterminate {
284
+ 0% { left: 0%; }
285
+ 50% { left: 100%; }
286
+ 100% { left: 100%; }
287
+ }
288
+
289
+ @keyframes progressIndeterminate {
290
+ 0% { left: 0%; }
291
+ 50% { left: 100%; }
292
+ 100% { left: 100%; }
293
+ }
294
+
295
+ #loadingBar .progress.indeterminate {
296
+ background-color: #999;
297
+ -webkit-transition: none;
298
+ transition: none;
299
+ }
300
+
301
+ #loadingBar .indeterminate .glimmer {
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ height: 100%;
306
+ width: 50px;
307
+
308
+ background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
309
+ background-size: 100% 100%;
310
+ background-repeat: no-repeat;
311
+
312
+ -webkit-animation: progressIndeterminate 2s linear infinite;
313
+ animation: progressIndeterminate 2s linear infinite;
314
+ }
315
+
316
+ .findbar {
317
+ top: 32px;
318
+ position: absolute;
319
+ z-index: 10000;
320
+ height: 32px;
321
+
322
+ min-width: 16px;
323
+ padding: 0px 6px 0px 6px;
324
+ margin: 4px 2px 4px 2px;
325
+ color: hsl(0,0%,85%);
326
+ font-size: 12px;
327
+ line-height: 14px;
328
+ text-align: left;
329
+ cursor: default;
330
+ }
331
+
332
+ html[dir='ltr'] .findbar {
333
+ left: 68px;
334
+ }
335
+
336
+ html[dir='rtl'] .findbar {
337
+ right: 68px;
338
+ }
339
+
340
+ .findbar label {
341
+ -webkit-user-select: none;
342
+ -moz-user-select: none;
343
+ }
344
+
345
+ #findInput[data-status="pending"] {
346
+ background-image: url(loading-small.png);
347
+ background-repeat: no-repeat;
348
+ background-position: right;
349
+ }
350
+
351
+ .doorHanger {
352
+ border: 1px solid hsla(0,0%,0%,.5);
353
+ border-radius: 2px;
354
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
355
+ }
356
+ .doorHanger:after, .doorHanger:before {
357
+ bottom: 100%;
358
+ border: solid transparent;
359
+ content: " ";
360
+ height: 0;
361
+ width: 0;
362
+ position: absolute;
363
+ pointer-events: none;
364
+ }
365
+ .doorHanger:after {
366
+ border-bottom-color: hsla(0,0%,32%,.99);
367
+ border-width: 8px;
368
+ }
369
+ .doorHanger:before {
370
+ border-bottom-color: hsla(0,0%,0%,.5);
371
+ border-width: 9px;
372
+ }
373
+
374
+ html[dir='ltr'] .doorHanger:after {
375
+ left: 13px;
376
+ margin-left: -8px;
377
+ }
378
+
379
+ html[dir='ltr'] .doorHanger:before {
380
+ left: 13px;
381
+ margin-left: -9px;
382
+ }
383
+
384
+ html[dir='rtl'] .doorHanger:after {
385
+ right: 13px;
386
+ margin-right: -8px;
387
+ }
388
+
389
+ html[dir='rtl'] .doorHanger:before {
390
+ right: 13px;
391
+ margin-right: -9px;
392
+ }
393
+
394
+ #findMsg {
395
+ font-style: italic;
396
+ color: #A6B7D0;
397
+ }
398
+
399
+ .notFound {
400
+ background-color: rgb(255, 137, 153);
401
+ }
402
+
403
+ html[dir='ltr'] #toolbarViewerLeft {
404
+ margin-left: -1px;
405
+ }
406
+ html[dir='rtl'] #toolbarViewerRight {
407
+ margin-left: -1px;
408
+ }
409
+
410
+
411
+ html[dir='ltr'] #toolbarViewerLeft,
412
+ html[dir='rtl'] #toolbarViewerRight {
413
+ position: absolute;
414
+ top: 0;
415
+ left: 0;
416
+ }
417
+ html[dir='ltr'] #toolbarViewerRight,
418
+ html[dir='rtl'] #toolbarViewerLeft {
419
+ position: absolute;
420
+ top: 0;
421
+ right: 0;
422
+ }
423
+ html[dir='ltr'] #toolbarViewerLeft > *,
424
+ html[dir='ltr'] #toolbarViewerMiddle > *,
425
+ html[dir='ltr'] #toolbarViewerRight > *,
426
+ html[dir='ltr'] .findbar > * {
427
+ position: relative;
428
+ float: left;
429
+ }
430
+ html[dir='rtl'] #toolbarViewerLeft > *,
431
+ html[dir='rtl'] #toolbarViewerMiddle > *,
432
+ html[dir='rtl'] #toolbarViewerRight > *,
433
+ html[dir='rtl'] .findbar > * {
434
+ position: relative;
435
+ float: right;
436
+ }
437
+
438
+ html[dir='ltr'] .splitToolbarButton {
439
+ margin: 3px 2px 4px 0;
440
+ display: inline-block;
441
+ }
442
+ html[dir='rtl'] .splitToolbarButton {
443
+ margin: 3px 0 4px 2px;
444
+ display: inline-block;
445
+ }
446
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton {
447
+ border-radius: 0;
448
+ float: left;
449
+ }
450
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton {
451
+ border-radius: 0;
452
+ float: right;
453
+ }
454
+
455
+ .toolbarButton {
456
+ border: 0 none;
457
+ background-color: rgba(0, 0, 0, 0);
458
+ width: 32px;
459
+ height: 25px;
460
+ }
461
+
462
+ .toolbarButton > span {
463
+ display: inline-block;
464
+ width: 0;
465
+ height: 0;
466
+ overflow: hidden;
467
+ }
468
+
469
+ .toolbarButton[disabled] {
470
+ opacity: .5;
471
+ }
472
+
473
+ .toolbarButton.group {
474
+ margin-right: 0;
475
+ }
476
+
477
+ .splitToolbarButton.toggled .toolbarButton {
478
+ margin: 0;
479
+ }
480
+
481
+ .splitToolbarButton:hover > .toolbarButton,
482
+ .splitToolbarButton:focus > .toolbarButton,
483
+ .splitToolbarButton.toggled > .toolbarButton,
484
+ .toolbarButton.textButton {
485
+ background-color: hsla(0,0%,0%,.12);
486
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
487
+ background-clip: padding-box;
488
+ border: 1px solid hsla(0,0%,0%,.35);
489
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
490
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
491
+ 0 0 1px hsla(0,0%,100%,.15) inset,
492
+ 0 1px 0 hsla(0,0%,100%,.05);
493
+ -webkit-transition-property: background-color, border-color, box-shadow;
494
+ -webkit-transition-duration: 150ms;
495
+ -webkit-transition-timing-function: ease;
496
+ transition-property: background-color, border-color, box-shadow;
497
+ transition-duration: 150ms;
498
+ transition-timing-function: ease;
499
+
500
+ }
501
+ .splitToolbarButton > .toolbarButton:hover,
502
+ .splitToolbarButton > .toolbarButton:focus,
503
+ .dropdownToolbarButton:hover,
504
+ .toolbarButton.textButton:hover,
505
+ .toolbarButton.textButton:focus {
506
+ background-color: hsla(0,0%,0%,.2);
507
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
508
+ 0 0 1px hsla(0,0%,100%,.15) inset,
509
+ 0 0 1px hsla(0,0%,0%,.05);
510
+ z-index: 199;
511
+ }
512
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
513
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
514
+ position: relative;
515
+ margin: 0;
516
+ margin-right: -1px;
517
+ border-top-left-radius: 2px;
518
+ border-bottom-left-radius: 2px;
519
+ border-right-color: transparent;
520
+ }
521
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
522
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
523
+ position: relative;
524
+ margin: 0;
525
+ margin-left: -1px;
526
+ border-top-right-radius: 2px;
527
+ border-bottom-right-radius: 2px;
528
+ border-left-color: transparent;
529
+ }
530
+ .splitToolbarButtonSeparator {
531
+ padding: 8px 0;
532
+ width: 1px;
533
+ background-color: hsla(0,0%,00%,.5);
534
+ z-index: 99;
535
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
536
+ display: inline-block;
537
+ margin: 5px 0;
538
+ }
539
+ html[dir='ltr'] .splitToolbarButtonSeparator {
540
+ float: left;
541
+ }
542
+ html[dir='rtl'] .splitToolbarButtonSeparator {
543
+ float: right;
544
+ }
545
+ .splitToolbarButton:hover > .splitToolbarButtonSeparator,
546
+ .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
547
+ padding: 12px 0;
548
+ margin: 1px 0;
549
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
550
+ -webkit-transition-property: padding;
551
+ -webkit-transition-duration: 10ms;
552
+ -webkit-transition-timing-function: ease;
553
+ transition-property: padding;
554
+ transition-duration: 10ms;
555
+ transition-timing-function: ease;
556
+ }
557
+
558
+ .toolbarButton,
559
+ .dropdownToolbarButton {
560
+ min-width: 16px;
561
+ padding: 2px 6px 0;
562
+ border: 1px solid transparent;
563
+ border-radius: 2px;
564
+ color: hsl(0,0%,95%);
565
+ font-size: 12px;
566
+ line-height: 14px;
567
+ -webkit-user-select: none;
568
+ -moz-user-select: none;
569
+ -ms-user-select: none;
570
+ /* Opera does not support user-select, use <... unselectable="on"> instead */
571
+ cursor: default;
572
+ -webkit-transition-property: background-color, border-color, box-shadow;
573
+ -webkit-transition-duration: 150ms;
574
+ -webkit-transition-timing-function: ease;
575
+ transition-property: background-color, border-color, box-shadow;
576
+ transition-duration: 150ms;
577
+ transition-timing-function: ease;
578
+ }
579
+
580
+ html[dir='ltr'] .toolbarButton,
581
+ html[dir='ltr'] .dropdownToolbarButton {
582
+ margin: 3px 2px 4px 0;
583
+ }
584
+ html[dir='rtl'] .toolbarButton,
585
+ html[dir='rtl'] .dropdownToolbarButton {
586
+ margin: 3px 0 4px 2px;
587
+ }
588
+
589
+ .toolbarButton:hover,
590
+ .toolbarButton:focus,
591
+ .dropdownToolbarButton {
592
+ background-color: hsla(0,0%,0%,.12);
593
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
594
+ background-clip: padding-box;
595
+ border: 1px solid hsla(0,0%,0%,.35);
596
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
597
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
598
+ 0 0 1px hsla(0,0%,100%,.15) inset,
599
+ 0 1px 0 hsla(0,0%,100%,.05);
600
+ }
601
+
602
+ .toolbarButton:hover:active,
603
+ .dropdownToolbarButton:hover:active {
604
+ background-color: hsla(0,0%,0%,.2);
605
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
606
+ border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
607
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
608
+ 0 0 1px hsla(0,0%,0%,.2) inset,
609
+ 0 1px 0 hsla(0,0%,100%,.05);
610
+ -webkit-transition-property: background-color, border-color, box-shadow;
611
+ -webkit-transition-duration: 10ms;
612
+ -webkit-transition-timing-function: linear;
613
+ transition-property: background-color, border-color, box-shadow;
614
+ transition-duration: 10ms;
615
+ transition-timing-function: linear;
616
+ }
617
+
618
+ .toolbarButton.toggled,
619
+ .splitToolbarButton.toggled > .toolbarButton.toggled {
620
+ background-color: hsla(0,0%,0%,.3);
621
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
622
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
623
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
624
+ 0 0 1px hsla(0,0%,0%,.2) inset,
625
+ 0 1px 0 hsla(0,0%,100%,.05);
626
+ -webkit-transition-property: background-color, border-color, box-shadow;
627
+ -webkit-transition-duration: 10ms;
628
+ -webkit-transition-timing-function: linear;
629
+ transition-property: background-color, border-color, box-shadow;
630
+ transition-duration: 10ms;
631
+ transition-timing-function: linear;
632
+ }
633
+
634
+ .toolbarButton.toggled:hover:active,
635
+ .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active {
636
+ background-color: hsla(0,0%,0%,.4);
637
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
638
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
639
+ 0 0 1px hsla(0,0%,0%,.3) inset,
640
+ 0 1px 0 hsla(0,0%,100%,.05);
641
+ }
642
+
643
+ .dropdownToolbarButton {
644
+ width: 120px;
645
+ max-width: 120px;
646
+ padding: 3px 2px 2px;
647
+ overflow: hidden;
648
+ background: url(toolbarButton-menuArrows.png) no-repeat;
649
+ }
650
+ html[dir='ltr'] .dropdownToolbarButton {
651
+ background-position: 95%;
652
+ }
653
+ html[dir='rtl'] .dropdownToolbarButton {
654
+ background-position: 5%;
655
+ }
656
+
657
+ .dropdownToolbarButton > select {
658
+ -webkit-appearance: none;
659
+ -moz-appearance: none; /* in the future this might matter, see bugzilla bug #649849 */
660
+ min-width: 140px;
661
+ font-size: 12px;
662
+ color: hsl(0,0%,95%);
663
+ margin: 0;
664
+ padding: 0;
665
+ border: none;
666
+ background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
667
+ }
668
+
669
+ .dropdownToolbarButton > select > option {
670
+ background: hsl(0,0%,24%);
671
+ }
672
+
673
+ #customScaleOption {
674
+ display: none;
675
+ }
676
+
677
+ #pageWidthOption {
678
+ border-bottom: 1px rgba(255, 255, 255, .5) solid;
679
+ }
680
+
681
+ html[dir='ltr'] .splitToolbarButton:first-child,
682
+ html[dir='ltr'] .toolbarButton:first-child,
683
+ html[dir='rtl'] .splitToolbarButton:last-child,
684
+ html[dir='rtl'] .toolbarButton:last-child {
685
+ margin-left: 4px;
686
+ }
687
+ html[dir='ltr'] .splitToolbarButton:last-child,
688
+ html[dir='ltr'] .toolbarButton:last-child,
689
+ html[dir='rtl'] .splitToolbarButton:first-child,
690
+ html[dir='rtl'] .toolbarButton:first-child {
691
+ margin-right: 4px;
692
+ }
693
+
694
+ .toolbarButtonSpacer {
695
+ width: 30px;
696
+ display: inline-block;
697
+ height: 1px;
698
+ }
699
+
700
+ .toolbarButtonFlexibleSpacer {
701
+ -webkit-box-flex: 1;
702
+ -moz-box-flex: 1;
703
+ min-width: 30px;
704
+ }
705
+
706
+ .toolbarButton#sidebarToggle::before {
707
+ display: inline-block;
708
+ content: url(toolbarButton-sidebarToggle.png);
709
+ }
710
+
711
+ html[dir='ltr'] #findPrevious {
712
+ margin-left: 3px;
713
+ }
714
+ html[dir='ltr'] #findNext {
715
+ margin-right: 3px;
716
+ }
717
+
718
+ html[dir='rtl'] #findPrevious {
719
+ margin-right: 3px;
720
+ }
721
+ html[dir='rtl'] #findNext {
722
+ margin-left: 3px;
723
+ }
724
+ .toolbarButton::before {
725
+ /* All matching images have a size of 16x16
726
+ * (except for the print button: 18x16)
727
+ * All relevant containers have a size of 32x25 */
728
+ position: absolute;
729
+ top: 4px;
730
+ left: 7px;
731
+ }
732
+
733
+ html[dir='ltr'] .toolbarButton.findPrevious::before {
734
+ display: inline-block;
735
+ content: url(findbarButton-previous.png);
736
+ }
737
+
738
+ html[dir='rtl'] .toolbarButton.findPrevious::before {
739
+ display: inline-block;
740
+ content: url(findbarButton-previous-rtl.png);
741
+ }
742
+
743
+ html[dir='ltr'] .toolbarButton.findNext::before {
744
+ display: inline-block;
745
+ content: url(findbarButton-next.png);
746
+ }
747
+
748
+ html[dir='rtl'] .toolbarButton.findNext::before {
749
+ display: inline-block;
750
+ content: url(findbarButton-next-rtl.png);
751
+ }
752
+
753
+ html[dir='ltr'] .toolbarButton.pageUp::before {
754
+ display: inline-block;
755
+ content: url(toolbarButton-pageUp.png);
756
+ }
757
+
758
+ html[dir='rtl'] .toolbarButton.pageUp::before {
759
+ display: inline-block;
760
+ content: url(toolbarButton-pageUp-rtl.png);
761
+ }
762
+
763
+ html[dir='ltr'] .toolbarButton.pageDown::before {
764
+ display: inline-block;
765
+ content: url(toolbarButton-pageDown.png);
766
+ }
767
+
768
+ html[dir='rtl'] .toolbarButton.pageDown::before {
769
+ display: inline-block;
770
+ content: url(toolbarButton-pageDown-rtl.png);
771
+ }
772
+
773
+ .toolbarButton.zoomOut::before {
774
+ display: inline-block;
775
+ content: url(toolbarButton-zoomOut.png);
776
+ }
777
+
778
+ .toolbarButton.zoomIn::before {
779
+ display: inline-block;
780
+ content: url(toolbarButton-zoomIn.png);
781
+ }
782
+
783
+ .toolbarButton.presentationMode::before {
784
+ display: inline-block;
785
+ content: url(toolbarButton-presentationMode.png);
786
+ }
787
+
788
+ .toolbarButton.print::before {
789
+ display: inline-block;
790
+ content: url(toolbarButton-print.png);
791
+ left: 6px;
792
+ }
793
+
794
+ .toolbarButton.openFile::before {
795
+ display: inline-block;
796
+ content: url(toolbarButton-openFile.png);
797
+ }
798
+
799
+ .toolbarButton.download::before {
800
+ display: inline-block;
801
+ content: url(toolbarButton-download.png);
802
+ }
803
+
804
+ .toolbarButton.bookmark {
805
+ -webkit-box-sizing: border-box;
806
+ -moz-box-sizing: border-box;
807
+ box-sizing: border-box;
808
+ margin-top: 3px;
809
+ padding-top: 4px;
810
+ }
811
+
812
+ #viewBookmark[href='#'] {
813
+ opacity: .5;
814
+ pointer-events: none;
815
+ }
816
+
817
+ .toolbarButton.bookmark::before {
818
+ content: url(toolbarButton-bookmark.png);
819
+ }
820
+
821
+ #viewThumbnail.toolbarButton::before {
822
+ display: inline-block;
823
+ content: url(toolbarButton-viewThumbnail.png);
824
+ }
825
+
826
+ #viewOutline.toolbarButton::before {
827
+ display: inline-block;
828
+ content: url(toolbarButton-viewOutline.png);
829
+ }
830
+
831
+ #viewFind.toolbarButton::before {
832
+ display: inline-block;
833
+ content: url(toolbarButton-search.png);
834
+ }
835
+
836
+
837
+ .toolbarField {
838
+ padding: 3px 6px;
839
+ margin: 4px 0 4px 0;
840
+ border: 1px solid transparent;
841
+ border-radius: 2px;
842
+ background-color: hsla(0,0%,100%,.09);
843
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
844
+ background-clip: padding-box;
845
+ border: 1px solid hsla(0,0%,0%,.35);
846
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
847
+ box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
848
+ 0 1px 0 hsla(0,0%,100%,.05);
849
+ color: hsl(0,0%,95%);
850
+ font-size: 12px;
851
+ line-height: 14px;
852
+ outline-style: none;
853
+ transition-property: background-color, border-color, box-shadow;
854
+ transition-duration: 150ms;
855
+ transition-timing-function: ease;
856
+ }
857
+
858
+ .toolbarField[type=checkbox] {
859
+ display: inline-block;
860
+ margin: 8px 0px;
861
+ }
862
+
863
+ .toolbarField.pageNumber {
864
+ min-width: 16px;
865
+ text-align: right;
866
+ width: 40px;
867
+ }
868
+
869
+ .toolbarField.pageNumber::-webkit-inner-spin-button,
870
+ .toolbarField.pageNumber::-webkit-outer-spin-button {
871
+ -webkit-appearance: none;
872
+ margin: 0;
873
+ }
874
+
875
+ .toolbarField:hover {
876
+ background-color: hsla(0,0%,100%,.11);
877
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
878
+ }
879
+
880
+ .toolbarField:focus {
881
+ background-color: hsla(0,0%,100%,.15);
882
+ border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
883
+ }
884
+
885
+ .toolbarLabel {
886
+ min-width: 16px;
887
+ padding: 3px 6px 3px 2px;
888
+ margin: 4px 2px 4px 0;
889
+ border: 1px solid transparent;
890
+ border-radius: 2px;
891
+ color: hsl(0,0%,85%);
892
+ font-size: 12px;
893
+ line-height: 14px;
894
+ text-align: left;
895
+ -webkit-user-select: none;
896
+ -moz-user-select: none;
897
+ cursor: default;
898
+ }
899
+
900
+ #thumbnailView {
901
+ position: absolute;
902
+ width: 120px;
903
+ top: 0;
904
+ bottom: 0;
905
+ padding: 10px 40px 0;
906
+ overflow: auto;
907
+ }
908
+
909
+ .thumbnail {
910
+ float: left;
911
+ }
912
+
913
+ .thumbnail:not([data-loaded]) {
914
+ border: 1px dashed rgba(255, 255, 255, 0.5);
915
+ margin-bottom: 10px;
916
+ }
917
+
918
+ .thumbnailImage {
919
+ transition-duration: 150ms;
920
+ border: 1px solid transparent;
921
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
922
+ opacity: 0.8;
923
+ z-index: 99;
924
+ }
925
+
926
+ .thumbnailSelectionRing {
927
+ border-radius: 2px;
928
+ padding: 7px;
929
+ transition-duration: 150ms;
930
+ }
931
+
932
+ a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
933
+ .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
934
+ opacity: .9;
935
+ }
936
+
937
+ a:focus > .thumbnail > .thumbnailSelectionRing,
938
+ .thumbnail:hover > .thumbnailSelectionRing {
939
+ background-color: hsla(0,0%,100%,.15);
940
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
941
+ background-clip: padding-box;
942
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
943
+ 0 0 1px hsla(0,0%,100%,.2) inset,
944
+ 0 0 1px hsla(0,0%,0%,.2);
945
+ color: hsla(0,0%,100%,.9);
946
+ }
947
+
948
+ .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
949
+ box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
950
+ opacity: 1;
951
+ }
952
+
953
+ .thumbnail.selected > .thumbnailSelectionRing {
954
+ background-color: hsla(0,0%,100%,.3);
955
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
956
+ background-clip: padding-box;
957
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
958
+ 0 0 1px hsla(0,0%,100%,.1) inset,
959
+ 0 0 1px hsla(0,0%,0%,.2);
960
+ color: hsla(0,0%,100%,1);
961
+ }
962
+
963
+ #outlineView {
964
+ position: absolute;
965
+ width: 192px;
966
+ top: 0;
967
+ bottom: 0;
968
+ padding: 4px 4px 0;
969
+ overflow: auto;
970
+ -webkit-user-select: none;
971
+ -moz-user-select: none;
972
+ }
973
+
974
+ html[dir='ltr'] .outlineItem > .outlineItems {
975
+ margin-left: 20px;
976
+ }
977
+
978
+ html[dir='rtl'] .outlineItem > .outlineItems {
979
+ margin-right: 20px;
980
+ }
981
+
982
+ .outlineItem > a {
983
+ text-decoration: none;
984
+ display: inline-block;
985
+ min-width: 95%;
986
+ height: auto;
987
+ margin-bottom: 1px;
988
+ border-radius: 2px;
989
+ color: hsla(0,0%,100%,.8);
990
+ font-size: 13px;
991
+ line-height: 15px;
992
+ -moz-user-select: none;
993
+ white-space: normal;
994
+ }
995
+
996
+ html[dir='ltr'] .outlineItem > a {
997
+ padding: 2px 0 5px 10px;
998
+ }
999
+
1000
+ html[dir='rtl'] .outlineItem > a {
1001
+ padding: 2px 10px 5px 0;
1002
+ }
1003
+
1004
+ .outlineItem > a:hover {
1005
+ background-color: hsla(0,0%,100%,.02);
1006
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1007
+ background-clip: padding-box;
1008
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1009
+ 0 0 1px hsla(0,0%,100%,.2) inset,
1010
+ 0 0 1px hsla(0,0%,0%,.2);
1011
+ color: hsla(0,0%,100%,.9);
1012
+ }
1013
+
1014
+ .outlineItem.selected {
1015
+ background-color: hsla(0,0%,100%,.08);
1016
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1017
+ background-clip: padding-box;
1018
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1019
+ 0 0 1px hsla(0,0%,100%,.1) inset,
1020
+ 0 0 1px hsla(0,0%,0%,.2);
1021
+ color: hsla(0,0%,100%,1);
1022
+ }
1023
+
1024
+ .noResults {
1025
+ font-size: 12px;
1026
+ color: hsla(0,0%,100%,.8);
1027
+ font-style: italic;
1028
+ cursor: default;
1029
+ }
1030
+
1031
+ #findScrollView {
1032
+ position: absolute;
1033
+ top: 10px;
1034
+ bottom: 10px;
1035
+ left: 10px;
1036
+ width: 280px;
1037
+ }
1038
+
1039
+ #sidebarControls {
1040
+ position:absolute;
1041
+ width: 180px;
1042
+ height: 32px;
1043
+ left: 15px;
1044
+ bottom: 35px;
1045
+ }
1046
+
1047
+ .canvasWrapper {
1048
+ overflow: hidden;
1049
+ }
1050
+
1051
+ canvas {
1052
+ margin: 0;
1053
+ display: block;
1054
+ }
1055
+
1056
+ .page {
1057
+ direction: ltr;
1058
+ width: 816px;
1059
+ height: 1056px;
1060
+ margin: 1px auto -8px auto;
1061
+ position: relative;
1062
+ overflow: visible;
1063
+ border: 9px solid transparent;
1064
+ background-clip: content-box;
1065
+ border-image: url(shadow.png) 9 9 repeat;
1066
+ background-color: white;
1067
+ }
1068
+
1069
+ .page > a,
1070
+ .annotationLayer > a {
1071
+ display: block;
1072
+ position: absolute;
1073
+ }
1074
+
1075
+ .page > a:hover,
1076
+ .annotationLayer > a:hover {
1077
+ opacity: 0.2;
1078
+ background: #ff0;
1079
+ box-shadow: 0px 2px 10px #ff0;
1080
+ }
1081
+
1082
+ .loadingIcon {
1083
+ position: absolute;
1084
+ display: block;
1085
+ left: 0;
1086
+ top: 0;
1087
+ right: 0;
1088
+ bottom: 0;
1089
+ background: url('loading-icon.gif') center no-repeat;
1090
+ }
1091
+
1092
+ .textLayer {
1093
+ position: absolute;
1094
+ left: 0;
1095
+ top: 0;
1096
+ right: 0;
1097
+ bottom: 0;
1098
+ color: #000;
1099
+ font-family: sans-serif;
1100
+ overflow: hidden;
1101
+ }
1102
+
1103
+ .textLayer > div {
1104
+ color: transparent;
1105
+ position: absolute;
1106
+ line-height: 1;
1107
+ white-space: pre;
1108
+ cursor: text;
1109
+ }
1110
+
1111
+ .textLayer .highlight {
1112
+ margin: -1px;
1113
+ padding: 1px;
1114
+
1115
+ background-color: rgba(180, 0, 170, 0.2);
1116
+ border-radius: 4px;
1117
+ }
1118
+
1119
+ .textLayer .highlight.begin {
1120
+ border-radius: 4px 0px 0px 4px;
1121
+ }
1122
+
1123
+ .textLayer .highlight.end {
1124
+ border-radius: 0px 4px 4px 0px;
1125
+ }
1126
+
1127
+ .textLayer .highlight.middle {
1128
+ border-radius: 0px;
1129
+ }
1130
+
1131
+ .textLayer .highlight.selected {
1132
+ background-color: rgba(0, 100, 0, 0.2);
1133
+ }
1134
+
1135
+ /* TODO: file FF bug to support ::-moz-selection:window-inactive
1136
+ so we can override the opaque grey background when the window is inactive;
1137
+ see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
1138
+ ::selection { background:rgba(0,0,255,0.3); }
1139
+ ::-moz-selection { background:rgba(0,0,255,0.3); }
1140
+
1141
+ .annotText > div {
1142
+ z-index: 200;
1143
+ position: absolute;
1144
+ padding: 0.6em;
1145
+ max-width: 20em;
1146
+ background-color: #FFFF99;
1147
+ box-shadow: 0px 2px 10px #333;
1148
+ border-radius: 7px;
1149
+ }
1150
+
1151
+ .annotText > img {
1152
+ position: absolute;
1153
+ opacity: 0.6;
1154
+ }
1155
+
1156
+ .annotText > img:hover {
1157
+ cursor: pointer;
1158
+ opacity: 1;
1159
+ }
1160
+
1161
+ .annotText > div > h1 {
1162
+ font-size: 1.2em;
1163
+ border-bottom: 1px solid #000000;
1164
+ margin: 0px;
1165
+ }
1166
+
1167
+ #errorWrapper {
1168
+ background: none repeat scroll 0 0 #FF5555;
1169
+ color: white;
1170
+ left: 0;
1171
+ position: absolute;
1172
+ right: 0;
1173
+ z-index: 1000;
1174
+ padding: 3px;
1175
+ font-size: 0.8em;
1176
+ }
1177
+ .loadingInProgress #errorWrapper {
1178
+ top: 39px;
1179
+ }
1180
+
1181
+ #errorMessageLeft {
1182
+ float: left;
1183
+ }
1184
+
1185
+ #errorMessageRight {
1186
+ float: right;
1187
+ }
1188
+
1189
+ #errorMoreInfo {
1190
+ background-color: #FFFFFF;
1191
+ color: black;
1192
+ padding: 3px;
1193
+ margin: 3px;
1194
+ width: 98%;
1195
+ }
1196
+
1197
+ .clearBoth {
1198
+ clear: both;
1199
+ }
1200
+
1201
+ .fileInput {
1202
+ background: white;
1203
+ color: black;
1204
+ margin-top: 5px;
1205
+ }
1206
+
1207
+ #PDFBug {
1208
+ background: none repeat scroll 0 0 white;
1209
+ border: 1px solid #666666;
1210
+ position: fixed;
1211
+ top: 32px;
1212
+ right: 0;
1213
+ bottom: 0;
1214
+ font-size: 10px;
1215
+ padding: 0;
1216
+ width: 300px;
1217
+ }
1218
+ #PDFBug .controls {
1219
+ background:#EEEEEE;
1220
+ border-bottom: 1px solid #666666;
1221
+ padding: 3px;
1222
+ }
1223
+ #PDFBug .panels {
1224
+ bottom: 0;
1225
+ left: 0;
1226
+ overflow: auto;
1227
+ position: absolute;
1228
+ right: 0;
1229
+ top: 27px;
1230
+ }
1231
+ #PDFBug button.active {
1232
+ font-weight: bold;
1233
+ }
1234
+ .debuggerShowText {
1235
+ background: none repeat scroll 0 0 yellow;
1236
+ color: blue;
1237
+ opacity: 0.3;
1238
+ }
1239
+ .debuggerHideText:hover {
1240
+ background: none repeat scroll 0 0 yellow;
1241
+ opacity: 0.3;
1242
+ }
1243
+ #PDFBug .stats {
1244
+ font-family: courier;
1245
+ font-size: 10px;
1246
+ white-space: pre;
1247
+ }
1248
+ #PDFBug .stats .title {
1249
+ font-weight: bold;
1250
+ }
1251
+ #PDFBug table {
1252
+ font-size: 10px;
1253
+ }
1254
+
1255
+ #viewer.textLayer-visible .textLayer > div,
1256
+ #viewer.textLayer-hover .textLayer > div:hover {
1257
+ background-color: white;
1258
+ color: black;
1259
+ }
1260
+
1261
+ #viewer.textLayer-shadow .textLayer > div {
1262
+ background-color: rgba(255,255,255, .6);
1263
+ color: black;
1264
+ }
1265
+
1266
+ @page {
1267
+ margin: 0;
1268
+ }
1269
+
1270
+ #printContainer {
1271
+ display: none;
1272
+ }
1273
+
1274
+ @media print {
1275
+ /* General rules for printing. */
1276
+ body {
1277
+ background: transparent none;
1278
+ }
1279
+
1280
+ /* Rules for browsers that don't support mozPrintCallback. */
1281
+ #sidebarContainer, .toolbar, #loadingBox, #errorWrapper, .textLayer {
1282
+ display: none;
1283
+ }
1284
+ #viewerContainer {
1285
+ overflow: visible;
1286
+ }
1287
+
1288
+ #mainContainer, #viewerContainer, .page, .page canvas {
1289
+ position: static;
1290
+ padding: 0;
1291
+ margin: 0;
1292
+ }
1293
+
1294
+ .page {
1295
+ float: left;
1296
+ display: none;
1297
+ border: none;
1298
+ box-shadow: none;
1299
+ }
1300
+
1301
+ .page[data-loaded] {
1302
+ display: block;
1303
+ }
1304
+
1305
+ /* Rules for browsers that support mozPrintCallback */
1306
+ body[data-mozPrintCallback] #outerContainer {
1307
+ display: none;
1308
+ }
1309
+ body[data-mozPrintCallback] #printContainer {
1310
+ display: block;
1311
+ }
1312
+ #printContainer canvas {
1313
+ position: relative;
1314
+ top: 0;
1315
+ left: 0;
1316
+ }
1317
+ }
1318
+
1319
+ @media all and (max-width: 950px) {
1320
+ html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
1321
+ html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter {
1322
+ float: left;
1323
+ left: 180px;
1324
+ }
1325
+ html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
1326
+ html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter {
1327
+ float: right;
1328
+ right: 180px;
1329
+ }
1330
+ }
1331
+
1332
+ @media all and (max-width: 770px) {
1333
+ #sidebarContainer {
1334
+ top: 32px;
1335
+ z-index: 100;
1336
+ }
1337
+ .loadingInProgress #sidebarContainer {
1338
+ top: 39px;
1339
+ }
1340
+ #sidebarContent {
1341
+ top: 32px;
1342
+ background-color: hsla(0,0%,0%,.7);
1343
+ }
1344
+
1345
+ html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
1346
+ left: 0px;
1347
+ }
1348
+ html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
1349
+ right: 0px;
1350
+ }
1351
+
1352
+ html[dir='ltr'] .outerCenter {
1353
+ float: left;
1354
+ left: 180px;
1355
+ }
1356
+ html[dir='rtl'] .outerCenter {
1357
+ float: right;
1358
+ right: 180px;
1359
+ }
1360
+ }
1361
+
1362
+ @media all and (max-width: 600px) {
1363
+ .hiddenSmallView {
1364
+ display: none;
1365
+ }
1366
+ html[dir='ltr'] .outerCenter {
1367
+ left: 156px;
1368
+ }
1369
+ html[dir='rtr'] .outerCenter {
1370
+ right: 156px;
1371
+ }
1372
+ .toolbarButtonSpacer {
1373
+ width: 0;
1374
+ }
1375
+ }
1376
+
1377
+ @media all and (max-width: 500px) {
1378
+ #scaleSelectContainer, #pageNumberLabel {
1379
+ display: none;
1380
+ }
1381
+ }
1382
+