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