pdfjs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +39 -2
  3. data/Rakefile +2 -0
  4. data/app/assets/images/pdfjs/annotation-check.svg +11 -0
  5. data/app/assets/images/pdfjs/annotation-comment.svg +16 -0
  6. data/app/assets/images/pdfjs/annotation-help.svg +26 -0
  7. data/app/assets/images/pdfjs/annotation-insert.svg +10 -0
  8. data/app/assets/images/pdfjs/annotation-key.svg +11 -0
  9. data/app/assets/images/pdfjs/annotation-newparagraph.svg +11 -0
  10. data/app/assets/images/pdfjs/annotation-noicon.svg +7 -0
  11. data/app/assets/images/pdfjs/annotation-note.svg +42 -0
  12. data/app/assets/images/pdfjs/annotation-paragraph.svg +16 -0
  13. data/app/assets/images/pdfjs/findbarButton-next-rtl.png +0 -0
  14. data/app/assets/images/pdfjs/findbarButton-next-rtl@2x.png +0 -0
  15. data/app/assets/images/pdfjs/findbarButton-next.png +0 -0
  16. data/app/assets/images/pdfjs/findbarButton-next@2x.png +0 -0
  17. data/app/assets/images/pdfjs/findbarButton-previous-rtl.png +0 -0
  18. data/app/assets/images/pdfjs/findbarButton-previous-rtl@2x.png +0 -0
  19. data/app/assets/images/pdfjs/findbarButton-previous.png +0 -0
  20. data/app/assets/images/pdfjs/findbarButton-previous@2x.png +0 -0
  21. data/app/assets/images/pdfjs/grab.cur +0 -0
  22. data/app/assets/images/pdfjs/grabbing.cur +0 -0
  23. data/app/assets/images/pdfjs/loading-icon.gif +0 -0
  24. data/app/assets/images/pdfjs/loading-small.png +0 -0
  25. data/app/assets/images/pdfjs/loading-small@2x.png +0 -0
  26. data/app/assets/images/pdfjs/loading.gif +0 -0
  27. data/app/assets/images/pdfjs/secondaryToolbarButton-documentProperties.png +0 -0
  28. data/app/assets/images/pdfjs/secondaryToolbarButton-documentProperties@2x.png +0 -0
  29. data/app/assets/images/pdfjs/secondaryToolbarButton-firstPage.png +0 -0
  30. data/app/assets/images/pdfjs/secondaryToolbarButton-firstPage@2x.png +0 -0
  31. data/app/assets/images/pdfjs/secondaryToolbarButton-handTool.png +0 -0
  32. data/app/assets/images/pdfjs/secondaryToolbarButton-handTool@2x.png +0 -0
  33. data/app/assets/images/pdfjs/secondaryToolbarButton-lastPage.png +0 -0
  34. data/app/assets/images/pdfjs/secondaryToolbarButton-lastPage@2x.png +0 -0
  35. data/app/assets/images/pdfjs/secondaryToolbarButton-rotateCcw.png +0 -0
  36. data/app/assets/images/pdfjs/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  37. data/app/assets/images/pdfjs/secondaryToolbarButton-rotateCw.png +0 -0
  38. data/app/assets/images/pdfjs/secondaryToolbarButton-rotateCw@2x.png +0 -0
  39. data/app/assets/images/pdfjs/shadow.png +0 -0
  40. data/app/assets/images/pdfjs/texture.png +0 -0
  41. data/app/assets/images/pdfjs/toolbarButton-bookmark.png +0 -0
  42. data/app/assets/images/pdfjs/toolbarButton-bookmark@2x.png +0 -0
  43. data/app/assets/images/pdfjs/toolbarButton-download.png +0 -0
  44. data/app/assets/images/pdfjs/toolbarButton-download@2x.png +0 -0
  45. data/app/assets/images/pdfjs/toolbarButton-menuArrows.png +0 -0
  46. data/app/assets/images/pdfjs/toolbarButton-menuArrows@2x.png +0 -0
  47. data/app/assets/images/pdfjs/toolbarButton-openFile.png +0 -0
  48. data/app/assets/images/pdfjs/toolbarButton-openFile@2x.png +0 -0
  49. data/app/assets/images/pdfjs/toolbarButton-pageDown-rtl.png +0 -0
  50. data/app/assets/images/pdfjs/toolbarButton-pageDown-rtl@2x.png +0 -0
  51. data/app/assets/images/pdfjs/toolbarButton-pageDown.png +0 -0
  52. data/app/assets/images/pdfjs/toolbarButton-pageDown@2x.png +0 -0
  53. data/app/assets/images/pdfjs/toolbarButton-pageUp-rtl.png +0 -0
  54. data/app/assets/images/pdfjs/toolbarButton-pageUp-rtl@2x.png +0 -0
  55. data/app/assets/images/pdfjs/toolbarButton-pageUp.png +0 -0
  56. data/app/assets/images/pdfjs/toolbarButton-pageUp@2x.png +0 -0
  57. data/app/assets/images/pdfjs/toolbarButton-presentationMode.png +0 -0
  58. data/app/assets/images/pdfjs/toolbarButton-presentationMode@2x.png +0 -0
  59. data/app/assets/images/pdfjs/toolbarButton-print.png +0 -0
  60. data/app/assets/images/pdfjs/toolbarButton-print@2x.png +0 -0
  61. data/app/assets/images/pdfjs/toolbarButton-search.png +0 -0
  62. data/app/assets/images/pdfjs/toolbarButton-search@2x.png +0 -0
  63. data/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  64. data/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  65. data/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle.png +0 -0
  66. data/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  67. data/app/assets/images/pdfjs/toolbarButton-sidebarToggle-rtl.png +0 -0
  68. data/app/assets/images/pdfjs/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  69. data/app/assets/images/pdfjs/toolbarButton-sidebarToggle.png +0 -0
  70. data/app/assets/images/pdfjs/toolbarButton-sidebarToggle@2x.png +0 -0
  71. data/app/assets/images/pdfjs/toolbarButton-viewAttachments.png +0 -0
  72. data/app/assets/images/pdfjs/toolbarButton-viewAttachments@2x.png +0 -0
  73. data/app/assets/images/pdfjs/toolbarButton-viewOutline-rtl.png +0 -0
  74. data/app/assets/images/pdfjs/toolbarButton-viewOutline-rtl@2x.png +0 -0
  75. data/app/assets/images/pdfjs/toolbarButton-viewOutline.png +0 -0
  76. data/app/assets/images/pdfjs/toolbarButton-viewOutline@2x.png +0 -0
  77. data/app/assets/images/pdfjs/toolbarButton-viewThumbnail.png +0 -0
  78. data/app/assets/images/pdfjs/toolbarButton-viewThumbnail@2x.png +0 -0
  79. data/app/assets/images/pdfjs/toolbarButton-zoomIn.png +0 -0
  80. data/app/assets/images/pdfjs/toolbarButton-zoomIn@2x.png +0 -0
  81. data/app/assets/images/pdfjs/toolbarButton-zoomOut.png +0 -0
  82. data/app/assets/images/pdfjs/toolbarButton-zoomOut@2x.png +0 -0
  83. data/app/assets/javascripts/pdfjs.js +5 -0
  84. data/app/assets/javascripts/pdfjs/compatibility.js +574 -0
  85. data/app/assets/javascripts/pdfjs/debugger.js +620 -0
  86. data/app/assets/javascripts/pdfjs/l10n.js +1004 -0
  87. data/app/assets/javascripts/pdfjs/pdf.js +7793 -0
  88. data/app/assets/javascripts/pdfjs/pdf.worker.js +38661 -0
  89. data/app/assets/javascripts/pdfjs/viewer.js.erb +6912 -0
  90. data/app/assets/stylesheets/pdfjs.scss +3 -0
  91. data/app/assets/stylesheets/pdfjs/viewer.css.erb +1989 -0
  92. data/app/controllers/pdfjs/application_controller.rb +4 -0
  93. data/app/controllers/pdfjs/pdfjs_controller.rb +4 -0
  94. data/app/helpers/pdfjs/application_helper.rb +4 -0
  95. data/app/views/layouts/pdfjs/application.html.erb +396 -0
  96. data/config/routes.rb +2 -0
  97. data/lib/pdfjs.rb +2 -1
  98. data/lib/pdfjs/engine.rb +9 -0
  99. data/lib/pdfjs/version.rb +1 -1
  100. data/test/controllers/pdfjs_controller_test.rb +7 -0
  101. data/test/dummy/README.rdoc +28 -0
  102. data/test/dummy/Rakefile +6 -0
  103. data/test/dummy/app/assets/images/pdfjs/annotation-check.svg +11 -0
  104. data/test/dummy/app/assets/images/pdfjs/annotation-comment.svg +16 -0
  105. data/test/dummy/app/assets/images/pdfjs/annotation-help.svg +26 -0
  106. data/test/dummy/app/assets/images/pdfjs/annotation-insert.svg +10 -0
  107. data/test/dummy/app/assets/images/pdfjs/annotation-key.svg +11 -0
  108. data/test/dummy/app/assets/images/pdfjs/annotation-newparagraph.svg +11 -0
  109. data/test/dummy/app/assets/images/pdfjs/annotation-noicon.svg +7 -0
  110. data/test/dummy/app/assets/images/pdfjs/annotation-note.svg +42 -0
  111. data/test/dummy/app/assets/images/pdfjs/annotation-paragraph.svg +16 -0
  112. data/test/dummy/app/assets/images/pdfjs/findbarButton-next-rtl.png +0 -0
  113. data/test/dummy/app/assets/images/pdfjs/findbarButton-next-rtl@2x.png +0 -0
  114. data/test/dummy/app/assets/images/pdfjs/findbarButton-next.png +0 -0
  115. data/test/dummy/app/assets/images/pdfjs/findbarButton-next@2x.png +0 -0
  116. data/test/dummy/app/assets/images/pdfjs/findbarButton-previous-rtl.png +0 -0
  117. data/test/dummy/app/assets/images/pdfjs/findbarButton-previous-rtl@2x.png +0 -0
  118. data/test/dummy/app/assets/images/pdfjs/findbarButton-previous.png +0 -0
  119. data/test/dummy/app/assets/images/pdfjs/findbarButton-previous@2x.png +0 -0
  120. data/test/dummy/app/assets/images/pdfjs/grab.cur +0 -0
  121. data/test/dummy/app/assets/images/pdfjs/grabbing.cur +0 -0
  122. data/test/dummy/app/assets/images/pdfjs/loading-icon.gif +0 -0
  123. data/test/dummy/app/assets/images/pdfjs/loading-small.png +0 -0
  124. data/test/dummy/app/assets/images/pdfjs/loading-small@2x.png +0 -0
  125. data/test/dummy/app/assets/images/pdfjs/loading.gif +0 -0
  126. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-documentProperties.png +0 -0
  127. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-documentProperties@2x.png +0 -0
  128. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-firstPage.png +0 -0
  129. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-firstPage@2x.png +0 -0
  130. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-handTool.png +0 -0
  131. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-handTool@2x.png +0 -0
  132. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-lastPage.png +0 -0
  133. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-lastPage@2x.png +0 -0
  134. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-rotateCcw.png +0 -0
  135. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  136. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-rotateCw.png +0 -0
  137. data/test/dummy/app/assets/images/pdfjs/secondaryToolbarButton-rotateCw@2x.png +0 -0
  138. data/test/dummy/app/assets/images/pdfjs/shadow.png +0 -0
  139. data/test/dummy/app/assets/images/pdfjs/texture.png +0 -0
  140. data/test/dummy/app/assets/images/pdfjs/toolbarButton-bookmark.png +0 -0
  141. data/test/dummy/app/assets/images/pdfjs/toolbarButton-bookmark@2x.png +0 -0
  142. data/test/dummy/app/assets/images/pdfjs/toolbarButton-download.png +0 -0
  143. data/test/dummy/app/assets/images/pdfjs/toolbarButton-download@2x.png +0 -0
  144. data/test/dummy/app/assets/images/pdfjs/toolbarButton-menuArrows.png +0 -0
  145. data/test/dummy/app/assets/images/pdfjs/toolbarButton-menuArrows@2x.png +0 -0
  146. data/test/dummy/app/assets/images/pdfjs/toolbarButton-openFile.png +0 -0
  147. data/test/dummy/app/assets/images/pdfjs/toolbarButton-openFile@2x.png +0 -0
  148. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageDown-rtl.png +0 -0
  149. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageDown-rtl@2x.png +0 -0
  150. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageDown.png +0 -0
  151. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageDown@2x.png +0 -0
  152. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageUp-rtl.png +0 -0
  153. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageUp-rtl@2x.png +0 -0
  154. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageUp.png +0 -0
  155. data/test/dummy/app/assets/images/pdfjs/toolbarButton-pageUp@2x.png +0 -0
  156. data/test/dummy/app/assets/images/pdfjs/toolbarButton-presentationMode.png +0 -0
  157. data/test/dummy/app/assets/images/pdfjs/toolbarButton-presentationMode@2x.png +0 -0
  158. data/test/dummy/app/assets/images/pdfjs/toolbarButton-print.png +0 -0
  159. data/test/dummy/app/assets/images/pdfjs/toolbarButton-print@2x.png +0 -0
  160. data/test/dummy/app/assets/images/pdfjs/toolbarButton-search.png +0 -0
  161. data/test/dummy/app/assets/images/pdfjs/toolbarButton-search@2x.png +0 -0
  162. data/test/dummy/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  163. data/test/dummy/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  164. data/test/dummy/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle.png +0 -0
  165. data/test/dummy/app/assets/images/pdfjs/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  166. data/test/dummy/app/assets/images/pdfjs/toolbarButton-sidebarToggle-rtl.png +0 -0
  167. data/test/dummy/app/assets/images/pdfjs/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  168. data/test/dummy/app/assets/images/pdfjs/toolbarButton-sidebarToggle.png +0 -0
  169. data/test/dummy/app/assets/images/pdfjs/toolbarButton-sidebarToggle@2x.png +0 -0
  170. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewAttachments.png +0 -0
  171. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewAttachments@2x.png +0 -0
  172. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewOutline-rtl.png +0 -0
  173. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewOutline-rtl@2x.png +0 -0
  174. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewOutline.png +0 -0
  175. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewOutline@2x.png +0 -0
  176. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewThumbnail.png +0 -0
  177. data/test/dummy/app/assets/images/pdfjs/toolbarButton-viewThumbnail@2x.png +0 -0
  178. data/test/dummy/app/assets/images/pdfjs/toolbarButton-zoomIn.png +0 -0
  179. data/test/dummy/app/assets/images/pdfjs/toolbarButton-zoomIn@2x.png +0 -0
  180. data/test/dummy/app/assets/images/pdfjs/toolbarButton-zoomOut.png +0 -0
  181. data/test/dummy/app/assets/images/pdfjs/toolbarButton-zoomOut@2x.png +0 -0
  182. data/test/dummy/app/assets/javascripts/application.js +13 -0
  183. data/test/dummy/app/assets/javascripts/pdfjs.js +5 -0
  184. data/test/dummy/app/assets/javascripts/pdfjs/compatibility.js +574 -0
  185. data/test/dummy/app/assets/javascripts/pdfjs/debugger.js +620 -0
  186. data/test/dummy/app/assets/javascripts/pdfjs/l10n.js +1004 -0
  187. data/test/dummy/app/assets/javascripts/pdfjs/pdf.js +7793 -0
  188. data/test/dummy/app/assets/javascripts/pdfjs/pdf.worker.js +38661 -0
  189. data/test/dummy/app/assets/javascripts/pdfjs/viewer.js.erb +6912 -0
  190. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  191. data/test/dummy/app/assets/stylesheets/pdfjs.scss +3 -0
  192. data/test/dummy/app/assets/stylesheets/pdfjs/viewer.css.erb +1989 -0
  193. data/test/dummy/app/controllers/application_controller.rb +5 -0
  194. data/test/dummy/app/controllers/pdfjs/application_controller.rb +4 -0
  195. data/test/dummy/app/controllers/pdfjs/pdfjs_controller.rb +4 -0
  196. data/test/dummy/app/helpers/application_helper.rb +2 -0
  197. data/test/dummy/app/helpers/pdfjs/application_helper.rb +4 -0
  198. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  199. data/test/dummy/app/views/layouts/pdfjs/application.html.erb +396 -0
  200. data/test/dummy/app/views/pdfjs/pdfjs/show.html.erb +5 -0
  201. data/test/dummy/bin/bundle +3 -0
  202. data/test/dummy/bin/rails +4 -0
  203. data/test/dummy/bin/rake +4 -0
  204. data/test/dummy/config.ru +4 -0
  205. data/test/dummy/config/application.rb +26 -0
  206. data/test/dummy/config/boot.rb +5 -0
  207. data/test/dummy/config/database.yml +25 -0
  208. data/test/dummy/config/environment.rb +5 -0
  209. data/test/dummy/config/environments/development.rb +37 -0
  210. data/test/dummy/config/environments/production.rb +78 -0
  211. data/test/dummy/config/environments/test.rb +42 -0
  212. data/test/dummy/config/initializers/assets.rb +8 -0
  213. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  214. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  215. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  216. data/test/dummy/config/initializers/inflections.rb +16 -0
  217. data/test/dummy/config/initializers/mime_types.rb +4 -0
  218. data/test/dummy/config/initializers/session_store.rb +3 -0
  219. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  220. data/test/dummy/config/locales/en.yml +23 -0
  221. data/test/dummy/config/routes.rb +3 -0
  222. data/test/dummy/config/secrets.yml +22 -0
  223. data/test/dummy/db/test.sqlite3 +0 -0
  224. data/test/dummy/log/test.log +60 -0
  225. data/test/dummy/public/404.html +67 -0
  226. data/test/dummy/public/422.html +67 -0
  227. data/test/dummy/public/500.html +66 -0
  228. data/test/dummy/public/favicon.ico +0 -0
  229. data/test/test_helper.rb +4 -2
  230. metadata +362 -23
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require pdfjs/viewer
3
+ */
@@ -0,0 +1,1989 @@
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
+ }
24
+
25
+ .textLayer > div {
26
+ color: transparent;
27
+ position: absolute;
28
+ white-space: pre;
29
+ cursor: text;
30
+ -webkit-transform-origin: 0% 0%;
31
+ -moz-transform-origin: 0% 0%;
32
+ -o-transform-origin: 0% 0%;
33
+ -ms-transform-origin: 0% 0%;
34
+ transform-origin: 0% 0%;
35
+ }
36
+
37
+ .textLayer .highlight {
38
+ margin: -1px;
39
+ padding: 1px;
40
+
41
+ background-color: rgb(180, 0, 170);
42
+ border-radius: 4px;
43
+ }
44
+
45
+ .textLayer .highlight.begin {
46
+ border-radius: 4px 0px 0px 4px;
47
+ }
48
+
49
+ .textLayer .highlight.end {
50
+ border-radius: 0px 4px 4px 0px;
51
+ }
52
+
53
+ .textLayer .highlight.middle {
54
+ border-radius: 0px;
55
+ }
56
+
57
+ .textLayer .highlight.selected {
58
+ background-color: rgb(0, 100, 0);
59
+ }
60
+
61
+ .pdfViewer .canvasWrapper {
62
+ overflow: hidden;
63
+ }
64
+
65
+ .pdfViewer .page {
66
+ direction: ltr;
67
+ width: 816px;
68
+ height: 1056px;
69
+ margin: 1px auto -8px auto;
70
+ position: relative;
71
+ overflow: visible;
72
+ border: 9px solid transparent;
73
+ background-clip: content-box;
74
+ border-image: url(<%= asset_path('pdfjs/shadow.png') %>) 9 9 repeat;
75
+ background-color: white;
76
+ }
77
+
78
+ .pdfViewer .page canvas {
79
+ margin: 0;
80
+ display: block;
81
+ }
82
+
83
+ .pdfViewer .page .loadingIcon {
84
+ position: absolute;
85
+ display: block;
86
+ left: 0;
87
+ top: 0;
88
+ right: 0;
89
+ bottom: 0;
90
+ background: url(<%= asset_path('pdfjs/loading.gif') %>) center no-repeat;
91
+ }
92
+
93
+ .pdfViewer .page .annotLink > a:hover {
94
+ opacity: 0.2;
95
+ background: #ff0;
96
+ box-shadow: 0px 2px 10px #ff0;
97
+ }
98
+
99
+ :-webkit-full-screen .pdfViewer .page {
100
+ margin-bottom: 100%;
101
+ border: 0;
102
+ }
103
+
104
+ :-moz-full-screen .pdfViewer .page {
105
+ margin-bottom: 100%;
106
+ border: 0;
107
+ }
108
+
109
+ :-ms-fullscreen .pdfViewer .page {
110
+ margin-bottom: 100% !important;
111
+ border: 0;
112
+ }
113
+
114
+ :fullscreen .pdfViewer .page {
115
+ margin-bottom: 100%;
116
+ border: 0;
117
+ }
118
+
119
+ .pdfViewer .page .annotationHighlight {
120
+ position: absolute;
121
+ border: 2px #FFFF99 solid;
122
+ }
123
+
124
+ .pdfViewer .page .annotText > img {
125
+ position: absolute;
126
+ cursor: pointer;
127
+ }
128
+
129
+ .pdfViewer .page .annotTextContentWrapper {
130
+ position: absolute;
131
+ width: 20em;
132
+ }
133
+
134
+ .pdfViewer .page .annotTextContent {
135
+ z-index: 200;
136
+ float: left;
137
+ max-width: 20em;
138
+ background-color: #FFFF99;
139
+ box-shadow: 0px 2px 5px #333;
140
+ border-radius: 2px;
141
+ padding: 0.6em;
142
+ cursor: pointer;
143
+ }
144
+
145
+ .pdfViewer .page .annotTextContent > h1 {
146
+ font-size: 1em;
147
+ border-bottom: 1px solid #000000;
148
+ padding-bottom: 0.2em;
149
+ }
150
+
151
+ .pdfViewer .page .annotTextContent > p {
152
+ padding-top: 0.2em;
153
+ }
154
+
155
+ .pdfViewer .page .annotLink > a {
156
+ position: absolute;
157
+ font-size: 1em;
158
+ top: 0;
159
+ left: 0;
160
+ width: 100%;
161
+ height: 100%;
162
+ }
163
+
164
+ .pdfViewer .page .annotLink > a /* -ms-a */ {
165
+ background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
166
+ }
167
+
168
+ * {
169
+ padding: 0;
170
+ margin: 0;
171
+ }
172
+
173
+ html {
174
+ height: 100%;
175
+ /* Font size is needed to make the activity bar the correct size. */
176
+ font-size: 10px;
177
+ }
178
+
179
+ body {
180
+ height: 100%;
181
+ background-color: #404040;
182
+ background-image: url(<%= asset_path('pdfjs/texture.png') %>);
183
+ }
184
+
185
+ body,
186
+ input,
187
+ button,
188
+ select {
189
+ font: message-box;
190
+ outline: none;
191
+ }
192
+
193
+ .hidden {
194
+ display: none !important;
195
+ }
196
+ [hidden] {
197
+ display: none !important;
198
+ }
199
+
200
+ #viewerContainer:-webkit-full-screen {
201
+ top: 0px;
202
+ border-top: 2px solid transparent;
203
+ background-color: #000;
204
+ width: 100%;
205
+ height: 100%;
206
+ overflow: hidden;
207
+ cursor: none;
208
+ }
209
+
210
+ #viewerContainer:-moz-full-screen {
211
+ top: 0px;
212
+ border-top: 2px solid transparent;
213
+ background-color: #000;
214
+ width: 100%;
215
+ height: 100%;
216
+ overflow: hidden;
217
+ cursor: none;
218
+ }
219
+
220
+ #viewerContainer:-ms-fullscreen {
221
+ top: 0px !important;
222
+ border-top: 2px solid transparent;
223
+ width: 100%;
224
+ height: 100%;
225
+ overflow: hidden !important;
226
+ cursor: none;
227
+ }
228
+
229
+ #viewerContainer:-ms-fullscreen::-ms-backdrop {
230
+ background-color: #000;
231
+ }
232
+
233
+ #viewerContainer:fullscreen {
234
+ top: 0px;
235
+ border-top: 2px solid transparent;
236
+ background-color: #000;
237
+ width: 100%;
238
+ height: 100%;
239
+ overflow: hidden;
240
+ cursor: none;
241
+ }
242
+
243
+ :-webkit-full-screen a:not(.internalLink) {
244
+ display: none;
245
+ }
246
+
247
+ :-moz-full-screen a:not(.internalLink) {
248
+ display: none;
249
+ }
250
+
251
+ :-ms-fullscreen a:not(.internalLink) {
252
+ display: none !important;
253
+ }
254
+
255
+ :fullscreen a:not(.internalLink) {
256
+ display: none;
257
+ }
258
+
259
+ :-webkit-full-screen .textLayer > div {
260
+ cursor: none;
261
+ }
262
+
263
+ :-moz-full-screen .textLayer > div {
264
+ cursor: none;
265
+ }
266
+
267
+ :fullscreen .textLayer > div {
268
+ cursor: none;
269
+ }
270
+
271
+ #viewerContainer.presentationControls,
272
+ #viewerContainer.presentationControls .textLayer > div {
273
+ cursor: default;
274
+ }
275
+
276
+ /* outer/inner center provides horizontal center */
277
+ .outerCenter {
278
+ pointer-events: none;
279
+ position: relative;
280
+ }
281
+ html[dir='ltr'] .outerCenter {
282
+ float: right;
283
+ right: 50%;
284
+ }
285
+ html[dir='rtl'] .outerCenter {
286
+ float: left;
287
+ left: 50%;
288
+ }
289
+ .innerCenter {
290
+ pointer-events: auto;
291
+ position: relative;
292
+ }
293
+ html[dir='ltr'] .innerCenter {
294
+ float: right;
295
+ right: -50%;
296
+ }
297
+ html[dir='rtl'] .innerCenter {
298
+ float: left;
299
+ left: -50%;
300
+ }
301
+
302
+ #outerContainer {
303
+ width: 100%;
304
+ height: 100%;
305
+ position: relative;
306
+ }
307
+
308
+ #sidebarContainer {
309
+ position: absolute;
310
+ top: 0;
311
+ bottom: 0;
312
+ width: 200px;
313
+ visibility: hidden;
314
+ -webkit-transition-duration: 200ms;
315
+ -webkit-transition-timing-function: ease;
316
+ transition-duration: 200ms;
317
+ transition-timing-function: ease;
318
+
319
+ }
320
+ html[dir='ltr'] #sidebarContainer {
321
+ -webkit-transition-property: left;
322
+ transition-property: left;
323
+ left: -200px;
324
+ }
325
+ html[dir='rtl'] #sidebarContainer {
326
+ -webkit-transition-property: right;
327
+ transition-property: right;
328
+ right: -200px;
329
+ }
330
+
331
+ #outerContainer.sidebarMoving > #sidebarContainer,
332
+ #outerContainer.sidebarOpen > #sidebarContainer {
333
+ visibility: visible;
334
+ }
335
+ html[dir='ltr'] #outerContainer.sidebarOpen > #sidebarContainer {
336
+ left: 0px;
337
+ }
338
+ html[dir='rtl'] #outerContainer.sidebarOpen > #sidebarContainer {
339
+ right: 0px;
340
+ }
341
+
342
+ #mainContainer {
343
+ position: absolute;
344
+ top: 0;
345
+ right: 0;
346
+ bottom: 0;
347
+ left: 0;
348
+ min-width: 320px;
349
+ -webkit-transition-duration: 200ms;
350
+ -webkit-transition-timing-function: ease;
351
+ transition-duration: 200ms;
352
+ transition-timing-function: ease;
353
+ }
354
+ html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
355
+ -webkit-transition-property: left;
356
+ transition-property: left;
357
+ left: 200px;
358
+ }
359
+ html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
360
+ -webkit-transition-property: right;
361
+ transition-property: right;
362
+ right: 200px;
363
+ }
364
+
365
+ #sidebarContent {
366
+ top: 32px;
367
+ bottom: 0;
368
+ overflow: auto;
369
+ -webkit-overflow-scrolling: touch;
370
+ position: absolute;
371
+ width: 200px;
372
+ background-color: hsla(0,0%,0%,.1);
373
+ }
374
+ html[dir='ltr'] #sidebarContent {
375
+ left: 0;
376
+ box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
377
+ }
378
+ html[dir='rtl'] #sidebarContent {
379
+ right: 0;
380
+ box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25);
381
+ }
382
+
383
+ #viewerContainer {
384
+ overflow: auto;
385
+ -webkit-overflow-scrolling: touch;
386
+ position: absolute;
387
+ top: 32px;
388
+ right: 0;
389
+ bottom: 0;
390
+ left: 0;
391
+ outline: none;
392
+ }
393
+ html[dir='ltr'] #viewerContainer {
394
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
395
+ }
396
+ html[dir='rtl'] #viewerContainer {
397
+ box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05);
398
+ }
399
+
400
+ .toolbar {
401
+ position: relative;
402
+ left: 0;
403
+ right: 0;
404
+ z-index: 9999;
405
+ cursor: default;
406
+ }
407
+
408
+ #toolbarContainer {
409
+ width: 100%;
410
+ }
411
+
412
+ #toolbarSidebar {
413
+ width: 200px;
414
+ height: 32px;
415
+ background-color: #424242; /* fallback */
416
+ background-image: url(<%= asset_path('pdfjs/texture.png') %>),
417
+ linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
418
+ }
419
+ html[dir='ltr'] #toolbarSidebar {
420
+ box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
421
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
422
+ 0 1px 0 hsla(0,0%,0%,.15),
423
+ 0 0 1px hsla(0,0%,0%,.1);
424
+ }
425
+ html[dir='rtl'] #toolbarSidebar {
426
+ box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
427
+ inset 0 1px 0 hsla(0,0%,100%,.05),
428
+ 0 1px 0 hsla(0,0%,0%,.15),
429
+ 0 0 1px hsla(0,0%,0%,.1);
430
+ }
431
+
432
+ #toolbarContainer, .findbar, .secondaryToolbar {
433
+ position: relative;
434
+ height: 32px;
435
+ background-color: #474747; /* fallback */
436
+ background-image: url(<%= asset_path('pdfjs/texture.png') %>),
437
+ linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
438
+ }
439
+ html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
440
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
441
+ inset 0 1px 1px hsla(0,0%,0%,.15),
442
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
443
+ 0 1px 0 hsla(0,0%,0%,.15),
444
+ 0 1px 1px hsla(0,0%,0%,.1);
445
+ }
446
+ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
447
+ box-shadow: inset -1px 0 0 hsla(0,0%,100%,.08),
448
+ inset 0 1px 1px hsla(0,0%,0%,.15),
449
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
450
+ 0 1px 0 hsla(0,0%,0%,.15),
451
+ 0 1px 1px hsla(0,0%,0%,.1);
452
+ }
453
+
454
+ #toolbarViewer {
455
+ height: 32px;
456
+ }
457
+
458
+ #loadingBar {
459
+ position: relative;
460
+ width: 100%;
461
+ height: 4px;
462
+ background-color: #333;
463
+ border-bottom: 1px solid #333;
464
+ }
465
+
466
+ #loadingBar .progress {
467
+ position: absolute;
468
+ top: 0;
469
+ left: 0;
470
+ width: 0%;
471
+ height: 100%;
472
+ background-color: #ddd;
473
+ overflow: hidden;
474
+ -webkit-transition: width 200ms;
475
+ transition: width 200ms;
476
+ }
477
+
478
+ @-webkit-keyframes progressIndeterminate {
479
+ 0% { left: 0%; }
480
+ 50% { left: 100%; }
481
+ 100% { left: 100%; }
482
+ }
483
+
484
+ @keyframes progressIndeterminate {
485
+ 0% { left: 0%; }
486
+ 50% { left: 100%; }
487
+ 100% { left: 100%; }
488
+ }
489
+
490
+ #loadingBar .progress.indeterminate {
491
+ background-color: #999;
492
+ -webkit-transition: none;
493
+ transition: none;
494
+ }
495
+
496
+ #loadingBar .indeterminate .glimmer {
497
+ position: absolute;
498
+ top: 0;
499
+ left: 0;
500
+ height: 100%;
501
+ width: 50px;
502
+
503
+ background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
504
+ background-size: 100% 100%;
505
+ background-repeat: no-repeat;
506
+
507
+ -webkit-animation: progressIndeterminate 2s linear infinite;
508
+ animation: progressIndeterminate 2s linear infinite;
509
+ }
510
+
511
+ .findbar, .secondaryToolbar {
512
+ top: 32px;
513
+ position: absolute;
514
+ z-index: 10000;
515
+ height: 32px;
516
+
517
+ min-width: 16px;
518
+ padding: 0px 6px 0px 6px;
519
+ margin: 4px 2px 4px 2px;
520
+ color: hsl(0,0%,85%);
521
+ font-size: 12px;
522
+ line-height: 14px;
523
+ text-align: left;
524
+ cursor: default;
525
+ }
526
+
527
+ html[dir='ltr'] .findbar {
528
+ left: 68px;
529
+ }
530
+
531
+ html[dir='rtl'] .findbar {
532
+ right: 68px;
533
+ }
534
+
535
+ .findbar label {
536
+ -webkit-user-select: none;
537
+ -moz-user-select: none;
538
+ }
539
+
540
+ #findInput[data-status="pending"] {
541
+ background-image: url(<%= asset_path('pdfjs/loading-small.png') %>);
542
+ background-repeat: no-repeat;
543
+ background-position: right;
544
+ }
545
+ html[dir='rtl'] #findInput[data-status="pending"] {
546
+ background-position: left;
547
+ }
548
+
549
+ .secondaryToolbar {
550
+ padding: 6px;
551
+ height: auto;
552
+ z-index: 30000;
553
+ }
554
+ html[dir='ltr'] .secondaryToolbar {
555
+ right: 4px;
556
+ }
557
+ html[dir='rtl'] .secondaryToolbar {
558
+ left: 4px;
559
+ }
560
+
561
+ #secondaryToolbarButtonContainer {
562
+ max-width: 200px;
563
+ max-height: 400px;
564
+ overflow-y: auto;
565
+ -webkit-overflow-scrolling: touch;
566
+ margin-bottom: -4px;
567
+ }
568
+
569
+ .doorHanger,
570
+ .doorHangerRight {
571
+ border: 1px solid hsla(0,0%,0%,.5);
572
+ border-radius: 2px;
573
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
574
+ }
575
+ .doorHanger:after, .doorHanger:before,
576
+ .doorHangerRight:after, .doorHangerRight:before {
577
+ bottom: 100%;
578
+ border: solid transparent;
579
+ content: " ";
580
+ height: 0;
581
+ width: 0;
582
+ position: absolute;
583
+ pointer-events: none;
584
+ }
585
+ .doorHanger:after,
586
+ .doorHangerRight:after {
587
+ border-bottom-color: hsla(0,0%,32%,.99);
588
+ border-width: 8px;
589
+ }
590
+ .doorHanger:before,
591
+ .doorHangerRight:before {
592
+ border-bottom-color: hsla(0,0%,0%,.5);
593
+ border-width: 9px;
594
+ }
595
+
596
+ html[dir='ltr'] .doorHanger:after,
597
+ html[dir='rtl'] .doorHangerRight:after {
598
+ left: 13px;
599
+ margin-left: -8px;
600
+ }
601
+
602
+ html[dir='ltr'] .doorHanger:before,
603
+ html[dir='rtl'] .doorHangerRight:before {
604
+ left: 13px;
605
+ margin-left: -9px;
606
+ }
607
+
608
+ html[dir='rtl'] .doorHanger:after,
609
+ html[dir='ltr'] .doorHangerRight:after {
610
+ right: 13px;
611
+ margin-right: -8px;
612
+ }
613
+
614
+ html[dir='rtl'] .doorHanger:before,
615
+ html[dir='ltr'] .doorHangerRight:before {
616
+ right: 13px;
617
+ margin-right: -9px;
618
+ }
619
+
620
+ #findMsg {
621
+ font-style: italic;
622
+ color: #A6B7D0;
623
+ }
624
+
625
+ .notFound {
626
+ background-color: rgb(255, 137, 153);
627
+ }
628
+
629
+ html[dir='ltr'] #toolbarViewerLeft {
630
+ margin-left: -1px;
631
+ }
632
+ html[dir='rtl'] #toolbarViewerRight {
633
+ margin-right: -1px;
634
+ }
635
+
636
+ html[dir='ltr'] #toolbarViewerLeft,
637
+ html[dir='rtl'] #toolbarViewerRight {
638
+ position: absolute;
639
+ top: 0;
640
+ left: 0;
641
+ }
642
+ html[dir='ltr'] #toolbarViewerRight,
643
+ html[dir='rtl'] #toolbarViewerLeft {
644
+ position: absolute;
645
+ top: 0;
646
+ right: 0;
647
+ }
648
+ html[dir='ltr'] #toolbarViewerLeft > *,
649
+ html[dir='ltr'] #toolbarViewerMiddle > *,
650
+ html[dir='ltr'] #toolbarViewerRight > *,
651
+ html[dir='ltr'] .findbar > * {
652
+ position: relative;
653
+ float: left;
654
+ }
655
+ html[dir='rtl'] #toolbarViewerLeft > *,
656
+ html[dir='rtl'] #toolbarViewerMiddle > *,
657
+ html[dir='rtl'] #toolbarViewerRight > *,
658
+ html[dir='rtl'] .findbar > * {
659
+ position: relative;
660
+ float: right;
661
+ }
662
+
663
+ html[dir='ltr'] .splitToolbarButton {
664
+ margin: 3px 2px 4px 0;
665
+ display: inline-block;
666
+ }
667
+ html[dir='rtl'] .splitToolbarButton {
668
+ margin: 3px 0 4px 2px;
669
+ display: inline-block;
670
+ }
671
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton {
672
+ border-radius: 0;
673
+ float: left;
674
+ }
675
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton {
676
+ border-radius: 0;
677
+ float: right;
678
+ }
679
+
680
+ .toolbarButton,
681
+ .secondaryToolbarButton,
682
+ .overlayButton {
683
+ border: 0 none;
684
+ background: none;
685
+ width: 32px;
686
+ height: 25px;
687
+ }
688
+
689
+ .toolbarButton > span {
690
+ display: inline-block;
691
+ width: 0;
692
+ height: 0;
693
+ overflow: hidden;
694
+ }
695
+
696
+ .toolbarButton[disabled],
697
+ .secondaryToolbarButton[disabled],
698
+ .overlayButton[disabled] {
699
+ opacity: .5;
700
+ }
701
+
702
+ .toolbarButton.group {
703
+ margin-right: 0;
704
+ }
705
+
706
+ .splitToolbarButton.toggled .toolbarButton {
707
+ margin: 0;
708
+ }
709
+
710
+ .splitToolbarButton:hover > .toolbarButton,
711
+ .splitToolbarButton:focus > .toolbarButton,
712
+ .splitToolbarButton.toggled > .toolbarButton,
713
+ .toolbarButton.textButton {
714
+ background-color: hsla(0,0%,0%,.12);
715
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
716
+ background-clip: padding-box;
717
+ border: 1px solid hsla(0,0%,0%,.35);
718
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
719
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
720
+ 0 0 1px hsla(0,0%,100%,.15) inset,
721
+ 0 1px 0 hsla(0,0%,100%,.05);
722
+ -webkit-transition-property: background-color, border-color, box-shadow;
723
+ -webkit-transition-duration: 150ms;
724
+ -webkit-transition-timing-function: ease;
725
+ transition-property: background-color, border-color, box-shadow;
726
+ transition-duration: 150ms;
727
+ transition-timing-function: ease;
728
+
729
+ }
730
+ .splitToolbarButton > .toolbarButton:hover,
731
+ .splitToolbarButton > .toolbarButton:focus,
732
+ .dropdownToolbarButton:hover,
733
+ .overlayButton:hover,
734
+ .toolbarButton.textButton:hover,
735
+ .toolbarButton.textButton:focus {
736
+ background-color: hsla(0,0%,0%,.2);
737
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
738
+ 0 0 1px hsla(0,0%,100%,.15) inset,
739
+ 0 0 1px hsla(0,0%,0%,.05);
740
+ z-index: 199;
741
+ }
742
+ .splitToolbarButton > .toolbarButton {
743
+ position: relative;
744
+ }
745
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
746
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
747
+ position: relative;
748
+ margin: 0;
749
+ margin-right: -1px;
750
+ border-top-left-radius: 2px;
751
+ border-bottom-left-radius: 2px;
752
+ border-right-color: transparent;
753
+ }
754
+ html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
755
+ html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
756
+ position: relative;
757
+ margin: 0;
758
+ margin-left: -1px;
759
+ border-top-right-radius: 2px;
760
+ border-bottom-right-radius: 2px;
761
+ border-left-color: transparent;
762
+ }
763
+ .splitToolbarButtonSeparator {
764
+ padding: 8px 0;
765
+ width: 1px;
766
+ background-color: hsla(0,0%,0%,.5);
767
+ z-index: 99;
768
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
769
+ display: inline-block;
770
+ margin: 5px 0;
771
+ }
772
+ html[dir='ltr'] .splitToolbarButtonSeparator {
773
+ float: left;
774
+ }
775
+ html[dir='rtl'] .splitToolbarButtonSeparator {
776
+ float: right;
777
+ }
778
+ .splitToolbarButton:hover > .splitToolbarButtonSeparator,
779
+ .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
780
+ padding: 12px 0;
781
+ margin: 1px 0;
782
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
783
+ -webkit-transition-property: padding;
784
+ -webkit-transition-duration: 10ms;
785
+ -webkit-transition-timing-function: ease;
786
+ transition-property: padding;
787
+ transition-duration: 10ms;
788
+ transition-timing-function: ease;
789
+ }
790
+
791
+ .toolbarButton,
792
+ .dropdownToolbarButton,
793
+ .secondaryToolbarButton,
794
+ .overlayButton {
795
+ min-width: 16px;
796
+ padding: 2px 6px 0;
797
+ border: 1px solid transparent;
798
+ border-radius: 2px;
799
+ color: hsla(0,0%,100%,.8);
800
+ font-size: 12px;
801
+ line-height: 14px;
802
+ -webkit-user-select: none;
803
+ -moz-user-select: none;
804
+ -ms-user-select: none;
805
+ /* Opera does not support user-select, use <... unselectable="on"> instead */
806
+ cursor: default;
807
+ -webkit-transition-property: background-color, border-color, box-shadow;
808
+ -webkit-transition-duration: 150ms;
809
+ -webkit-transition-timing-function: ease;
810
+ transition-property: background-color, border-color, box-shadow;
811
+ transition-duration: 150ms;
812
+ transition-timing-function: ease;
813
+ }
814
+
815
+ html[dir='ltr'] .toolbarButton,
816
+ html[dir='ltr'] .overlayButton,
817
+ html[dir='ltr'] .dropdownToolbarButton {
818
+ margin: 3px 2px 4px 0;
819
+ }
820
+ html[dir='rtl'] .toolbarButton,
821
+ html[dir='rtl'] .overlayButton,
822
+ html[dir='rtl'] .dropdownToolbarButton {
823
+ margin: 3px 0 4px 2px;
824
+ }
825
+
826
+ .toolbarButton:hover,
827
+ .toolbarButton:focus,
828
+ .dropdownToolbarButton,
829
+ .overlayButton,
830
+ .secondaryToolbarButton:hover,
831
+ .secondaryToolbarButton:focus {
832
+ background-color: hsla(0,0%,0%,.12);
833
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
834
+ background-clip: padding-box;
835
+ border: 1px solid hsla(0,0%,0%,.35);
836
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
837
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
838
+ 0 0 1px hsla(0,0%,100%,.15) inset,
839
+ 0 1px 0 hsla(0,0%,100%,.05);
840
+ }
841
+
842
+ .toolbarButton:hover:active,
843
+ .overlayButton:hover:active,
844
+ .dropdownToolbarButton:hover:active,
845
+ .secondaryToolbarButton:hover:active {
846
+ background-color: hsla(0,0%,0%,.2);
847
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
848
+ border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
849
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
850
+ 0 0 1px hsla(0,0%,0%,.2) inset,
851
+ 0 1px 0 hsla(0,0%,100%,.05);
852
+ -webkit-transition-property: background-color, border-color, box-shadow;
853
+ -webkit-transition-duration: 10ms;
854
+ -webkit-transition-timing-function: linear;
855
+ transition-property: background-color, border-color, box-shadow;
856
+ transition-duration: 10ms;
857
+ transition-timing-function: linear;
858
+ }
859
+
860
+ .toolbarButton.toggled,
861
+ .splitToolbarButton.toggled > .toolbarButton.toggled,
862
+ .secondaryToolbarButton.toggled {
863
+ background-color: hsla(0,0%,0%,.3);
864
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
865
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
866
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
867
+ 0 0 1px hsla(0,0%,0%,.2) inset,
868
+ 0 1px 0 hsla(0,0%,100%,.05);
869
+ -webkit-transition-property: background-color, border-color, box-shadow;
870
+ -webkit-transition-duration: 10ms;
871
+ -webkit-transition-timing-function: linear;
872
+ transition-property: background-color, border-color, box-shadow;
873
+ transition-duration: 10ms;
874
+ transition-timing-function: linear;
875
+ }
876
+
877
+ .toolbarButton.toggled:hover:active,
878
+ .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
879
+ .secondaryToolbarButton.toggled:hover:active {
880
+ background-color: hsla(0,0%,0%,.4);
881
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
882
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
883
+ 0 0 1px hsla(0,0%,0%,.3) inset,
884
+ 0 1px 0 hsla(0,0%,100%,.05);
885
+ }
886
+
887
+ .dropdownToolbarButton {
888
+ width: 120px;
889
+ max-width: 120px;
890
+ padding: 3px 2px 2px;
891
+ overflow: hidden;
892
+ background: url(<%= asset_path('pdfjs/toolbarButton-menuArrows.png') %>) no-repeat;
893
+ }
894
+ html[dir='ltr'] .dropdownToolbarButton {
895
+ background-position: 95%;
896
+ }
897
+ html[dir='rtl'] .dropdownToolbarButton {
898
+ background-position: 5%;
899
+ }
900
+
901
+ .dropdownToolbarButton > select {
902
+ -webkit-appearance: none;
903
+ -moz-appearance: none; /* in the future this might matter, see bugzilla bug #649849 */
904
+ min-width: 140px;
905
+ font-size: 12px;
906
+ color: hsl(0,0%,95%);
907
+ margin: 0;
908
+ padding: 0;
909
+ border: none;
910
+ background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
911
+ }
912
+
913
+ .dropdownToolbarButton > select > option {
914
+ background: hsl(0,0%,24%);
915
+ }
916
+
917
+ #customScaleOption {
918
+ display: none;
919
+ }
920
+
921
+ #pageWidthOption {
922
+ border-bottom: 1px rgba(255, 255, 255, .5) solid;
923
+ }
924
+
925
+ html[dir='ltr'] .splitToolbarButton:first-child,
926
+ html[dir='ltr'] .toolbarButton:first-child,
927
+ html[dir='rtl'] .splitToolbarButton:last-child,
928
+ html[dir='rtl'] .toolbarButton:last-child {
929
+ margin-left: 4px;
930
+ }
931
+ html[dir='ltr'] .splitToolbarButton:last-child,
932
+ html[dir='ltr'] .toolbarButton:last-child,
933
+ html[dir='rtl'] .splitToolbarButton:first-child,
934
+ html[dir='rtl'] .toolbarButton:first-child {
935
+ margin-right: 4px;
936
+ }
937
+
938
+ .toolbarButtonSpacer {
939
+ width: 30px;
940
+ display: inline-block;
941
+ height: 1px;
942
+ }
943
+
944
+ .toolbarButtonFlexibleSpacer {
945
+ -webkit-box-flex: 1;
946
+ -moz-box-flex: 1;
947
+ min-width: 30px;
948
+ }
949
+
950
+ html[dir='ltr'] #findPrevious {
951
+ margin-left: 3px;
952
+ }
953
+ html[dir='ltr'] #findNext {
954
+ margin-right: 3px;
955
+ }
956
+
957
+ html[dir='rtl'] #findPrevious {
958
+ margin-right: 3px;
959
+ }
960
+ html[dir='rtl'] #findNext {
961
+ margin-left: 3px;
962
+ }
963
+
964
+ .toolbarButton::before,
965
+ .secondaryToolbarButton::before {
966
+ /* All matching images have a size of 16x16
967
+ * All relevant containers have a size of 32x25 */
968
+ position: absolute;
969
+ display: inline-block;
970
+ top: 4px;
971
+ left: 7px;
972
+ }
973
+
974
+ html[dir="ltr"] .secondaryToolbarButton::before {
975
+ left: 4px;
976
+ }
977
+ html[dir="rtl"] .secondaryToolbarButton::before {
978
+ right: 4px;
979
+ }
980
+
981
+ html[dir='ltr'] .toolbarButton#sidebarToggle::before {
982
+ content: url(<%= asset_path('pdfjs/toolbarButton-sidebarToggle.png') %>);
983
+ }
984
+ html[dir='rtl'] .toolbarButton#sidebarToggle::before {
985
+ content: url(<%= asset_path('pdfjs/toolbarButton-sidebarToggle-rtl.png') %>);
986
+ }
987
+
988
+ html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
989
+ content: url(<%= asset_path('pdfjs/toolbarButton-secondaryToolbarToggle.png') %>);
990
+ }
991
+ html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
992
+ content: url(<%= asset_path('pdfjs/toolbarButton-secondaryToolbarToggle-rtl.png') %>);
993
+ }
994
+
995
+ html[dir='ltr'] .toolbarButton.findPrevious::before {
996
+ content: url(<%= asset_path('pdfjs/findbarButton-previous.png') %>);
997
+ }
998
+ html[dir='rtl'] .toolbarButton.findPrevious::before {
999
+ content: url(<%= asset_path('pdfjs/findbarButton-previous-rtl.png') %>);
1000
+ }
1001
+
1002
+ html[dir='ltr'] .toolbarButton.findNext::before {
1003
+ content: url(<%= asset_path('pdfjs/findbarButton-next.png') %>);
1004
+ }
1005
+ html[dir='rtl'] .toolbarButton.findNext::before {
1006
+ content: url(<%= asset_path('pdfjs/findbarButton-next-rtl.png') %>);
1007
+ }
1008
+
1009
+ html[dir='ltr'] .toolbarButton.pageUp::before {
1010
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageUp.png') %>);
1011
+ }
1012
+ html[dir='rtl'] .toolbarButton.pageUp::before {
1013
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageUp-rtl.png') %>);
1014
+ }
1015
+
1016
+ html[dir='ltr'] .toolbarButton.pageDown::before {
1017
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageDown.png') %>);
1018
+ }
1019
+ html[dir='rtl'] .toolbarButton.pageDown::before {
1020
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageDown-rtl.png') %>);
1021
+ }
1022
+
1023
+ .toolbarButton.zoomOut::before {
1024
+ content: url(<%= asset_path('pdfjs/toolbarButton-zoomOut.png') %>);
1025
+ }
1026
+
1027
+ .toolbarButton.zoomIn::before {
1028
+ content: url(<%= asset_path('pdfjs/toolbarButton-zoomIn.png') %>);
1029
+ }
1030
+
1031
+ .toolbarButton.presentationMode::before,
1032
+ .secondaryToolbarButton.presentationMode::before {
1033
+ content: url(<%= asset_path('pdfjs/toolbarButton-presentationMode.png') %>);
1034
+ }
1035
+
1036
+ .toolbarButton.print::before,
1037
+ .secondaryToolbarButton.print::before {
1038
+ content: url(<%= asset_path('pdfjs/toolbarButton-print.png') %>);
1039
+ }
1040
+
1041
+ .toolbarButton.openFile::before,
1042
+ .secondaryToolbarButton.openFile::before {
1043
+ content: url(<%= asset_path('pdfjs/toolbarButton-openFile.png') %>);
1044
+ }
1045
+
1046
+ .toolbarButton.download::before,
1047
+ .secondaryToolbarButton.download::before {
1048
+ content: url(<%= asset_path('pdfjs/toolbarButton-download.png') %>);
1049
+ }
1050
+
1051
+ .toolbarButton.bookmark,
1052
+ .secondaryToolbarButton.bookmark {
1053
+ -webkit-box-sizing: border-box;
1054
+ -moz-box-sizing: border-box;
1055
+ box-sizing: border-box;
1056
+ outline: none;
1057
+ padding-top: 4px;
1058
+ text-decoration: none;
1059
+ }
1060
+ .secondaryToolbarButton.bookmark {
1061
+ padding-top: 5px;
1062
+ }
1063
+
1064
+ .bookmark[href='#'] {
1065
+ opacity: .5;
1066
+ pointer-events: none;
1067
+ }
1068
+
1069
+ .toolbarButton.bookmark::before,
1070
+ .secondaryToolbarButton.bookmark::before {
1071
+ content: url(<%= asset_path('pdfjs/toolbarButton-bookmark.png') %>);
1072
+ }
1073
+
1074
+ #viewThumbnail.toolbarButton::before {
1075
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewThumbnail.png') %>);
1076
+ }
1077
+
1078
+ html[dir="ltr"] #viewOutline.toolbarButton::before {
1079
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewOutline.png') %>);
1080
+ }
1081
+ html[dir="rtl"] #viewOutline.toolbarButton::before {
1082
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewOutline-rtl.png') %>);
1083
+ }
1084
+
1085
+ #viewAttachments.toolbarButton::before {
1086
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewAttachments.png') %>);
1087
+ }
1088
+
1089
+ #viewFind.toolbarButton::before {
1090
+ content: url(<%= asset_path('pdfjs/toolbarButton-search.png') %>);
1091
+ }
1092
+
1093
+ .secondaryToolbarButton {
1094
+ position: relative;
1095
+ margin: 0 0 4px 0;
1096
+ padding: 3px 0 1px 0;
1097
+ height: auto;
1098
+ min-height: 25px;
1099
+ width: auto;
1100
+ min-width: 100%;
1101
+ white-space: normal;
1102
+ }
1103
+ html[dir="ltr"] .secondaryToolbarButton {
1104
+ padding-left: 24px;
1105
+ text-align: left;
1106
+ }
1107
+ html[dir="rtl"] .secondaryToolbarButton {
1108
+ padding-right: 24px;
1109
+ text-align: right;
1110
+ }
1111
+ html[dir="ltr"] .secondaryToolbarButton.bookmark {
1112
+ padding-left: 27px;
1113
+ }
1114
+ html[dir="rtl"] .secondaryToolbarButton.bookmark {
1115
+ padding-right: 27px;
1116
+ }
1117
+
1118
+ html[dir="ltr"] .secondaryToolbarButton > span {
1119
+ padding-right: 4px;
1120
+ }
1121
+ html[dir="rtl"] .secondaryToolbarButton > span {
1122
+ padding-left: 4px;
1123
+ }
1124
+
1125
+ .secondaryToolbarButton.firstPage::before {
1126
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-firstPage.png') %>);
1127
+ }
1128
+
1129
+ .secondaryToolbarButton.lastPage::before {
1130
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-lastPage.png') %>);
1131
+ }
1132
+
1133
+ .secondaryToolbarButton.rotateCcw::before {
1134
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-rotateCcw.png') %>);
1135
+ }
1136
+
1137
+ .secondaryToolbarButton.rotateCw::before {
1138
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-rotateCw.png') %>)
1139
+ }
1140
+
1141
+ .secondaryToolbarButton.handTool::before {
1142
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-handTool.png') %>);
1143
+ }
1144
+
1145
+ .secondaryToolbarButton.documentProperties::before {
1146
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-documentProperties.png') %>);
1147
+ }
1148
+
1149
+ .verticalToolbarSeparator {
1150
+ display: block;
1151
+ padding: 8px 0;
1152
+ margin: 8px 4px;
1153
+ width: 1px;
1154
+ background-color: hsla(0,0%,0%,.5);
1155
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
1156
+ }
1157
+ html[dir='ltr'] .verticalToolbarSeparator {
1158
+ margin-left: 2px;
1159
+ }
1160
+ html[dir='rtl'] .verticalToolbarSeparator {
1161
+ margin-right: 2px;
1162
+ }
1163
+
1164
+ .horizontalToolbarSeparator {
1165
+ display: block;
1166
+ margin: 0 0 4px 0;
1167
+ height: 1px;
1168
+ width: 100%;
1169
+ background-color: hsla(0,0%,0%,.5);
1170
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
1171
+ }
1172
+
1173
+ .toolbarField {
1174
+ padding: 3px 6px;
1175
+ margin: 4px 0 4px 0;
1176
+ border: 1px solid transparent;
1177
+ border-radius: 2px;
1178
+ background-color: hsla(0,0%,100%,.09);
1179
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1180
+ background-clip: padding-box;
1181
+ border: 1px solid hsla(0,0%,0%,.35);
1182
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
1183
+ box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
1184
+ 0 1px 0 hsla(0,0%,100%,.05);
1185
+ color: hsl(0,0%,95%);
1186
+ font-size: 12px;
1187
+ line-height: 14px;
1188
+ outline-style: none;
1189
+ transition-property: background-color, border-color, box-shadow;
1190
+ transition-duration: 150ms;
1191
+ transition-timing-function: ease;
1192
+ }
1193
+
1194
+ .toolbarField[type=checkbox] {
1195
+ display: inline-block;
1196
+ margin: 8px 0px;
1197
+ }
1198
+
1199
+ .toolbarField.pageNumber {
1200
+ -moz-appearance: textfield; /* hides the spinner in moz */
1201
+ min-width: 16px;
1202
+ text-align: right;
1203
+ width: 40px;
1204
+ }
1205
+
1206
+ .toolbarField.pageNumber.visiblePageIsLoading {
1207
+ background-image: url(<%= asset_path('pdfjs/loading-small.png') %>);
1208
+ background-repeat: no-repeat;
1209
+ background-position: 1px;
1210
+ }
1211
+
1212
+ .toolbarField.pageNumber::-webkit-inner-spin-button,
1213
+ .toolbarField.pageNumber::-webkit-outer-spin-button {
1214
+ -webkit-appearance: none;
1215
+ margin: 0;
1216
+ }
1217
+
1218
+ .toolbarField:hover {
1219
+ background-color: hsla(0,0%,100%,.11);
1220
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
1221
+ }
1222
+
1223
+ .toolbarField:focus {
1224
+ background-color: hsla(0,0%,100%,.15);
1225
+ border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
1226
+ }
1227
+
1228
+ .toolbarLabel {
1229
+ min-width: 16px;
1230
+ padding: 3px 6px 3px 2px;
1231
+ margin: 4px 2px 4px 0;
1232
+ border: 1px solid transparent;
1233
+ border-radius: 2px;
1234
+ color: hsl(0,0%,85%);
1235
+ font-size: 12px;
1236
+ line-height: 14px;
1237
+ text-align: left;
1238
+ -webkit-user-select: none;
1239
+ -moz-user-select: none;
1240
+ cursor: default;
1241
+ }
1242
+
1243
+ #thumbnailView {
1244
+ position: absolute;
1245
+ width: 120px;
1246
+ top: 0;
1247
+ bottom: 0;
1248
+ padding: 10px 40px 0;
1249
+ overflow: auto;
1250
+ -webkit-overflow-scrolling: touch;
1251
+ }
1252
+
1253
+ .thumbnail {
1254
+ float: left;
1255
+ margin-bottom: 5px;
1256
+ }
1257
+
1258
+ #thumbnailView > a:last-of-type > .thumbnail {
1259
+ margin-bottom: 10px;
1260
+ }
1261
+
1262
+ .thumbnail:not([data-loaded]) {
1263
+ border: 1px dashed rgba(255, 255, 255, 0.5);
1264
+ margin-bottom: 10px;
1265
+ }
1266
+
1267
+ .thumbnailImage {
1268
+ transition-duration: 150ms;
1269
+ border: 1px solid transparent;
1270
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
1271
+ opacity: 0.8;
1272
+ z-index: 99;
1273
+ }
1274
+
1275
+ .thumbnailSelectionRing {
1276
+ border-radius: 2px;
1277
+ padding: 7px;
1278
+ transition-duration: 150ms;
1279
+ }
1280
+
1281
+ a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
1282
+ .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
1283
+ opacity: .9;
1284
+ }
1285
+
1286
+ a:focus > .thumbnail > .thumbnailSelectionRing,
1287
+ .thumbnail:hover > .thumbnailSelectionRing {
1288
+ background-color: hsla(0,0%,100%,.15);
1289
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1290
+ background-clip: padding-box;
1291
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1292
+ 0 0 1px hsla(0,0%,100%,.2) inset,
1293
+ 0 0 1px hsla(0,0%,0%,.2);
1294
+ color: hsla(0,0%,100%,.9);
1295
+ }
1296
+
1297
+ .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
1298
+ box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
1299
+ opacity: 1;
1300
+ }
1301
+
1302
+ .thumbnail.selected > .thumbnailSelectionRing {
1303
+ background-color: hsla(0,0%,100%,.3);
1304
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1305
+ background-clip: padding-box;
1306
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1307
+ 0 0 1px hsla(0,0%,100%,.1) inset,
1308
+ 0 0 1px hsla(0,0%,0%,.2);
1309
+ color: hsla(0,0%,100%,1);
1310
+ }
1311
+
1312
+ #outlineView,
1313
+ #attachmentsView {
1314
+ position: absolute;
1315
+ width: 192px;
1316
+ top: 0;
1317
+ bottom: 0;
1318
+ overflow: auto;
1319
+ -webkit-overflow-scrolling: touch;
1320
+ -webkit-user-select: none;
1321
+ -moz-user-select: none;
1322
+ }
1323
+
1324
+ #outlineView {
1325
+ padding: 4px 4px 0;
1326
+ }
1327
+ #attachmentsView {
1328
+ padding: 3px 4px 0;
1329
+ }
1330
+
1331
+ html[dir='ltr'] .outlineItem > .outlineItems {
1332
+ margin-left: 20px;
1333
+ }
1334
+
1335
+ html[dir='rtl'] .outlineItem > .outlineItems {
1336
+ margin-right: 20px;
1337
+ }
1338
+
1339
+ .outlineItem > a,
1340
+ .attachmentsItem > button {
1341
+ text-decoration: none;
1342
+ display: inline-block;
1343
+ min-width: 95%;
1344
+ height: auto;
1345
+ margin-bottom: 1px;
1346
+ border-radius: 2px;
1347
+ color: hsla(0,0%,100%,.8);
1348
+ font-size: 13px;
1349
+ line-height: 15px;
1350
+ -moz-user-select: none;
1351
+ white-space: normal;
1352
+ }
1353
+
1354
+ .attachmentsItem > button {
1355
+ border: 0 none;
1356
+ background: none;
1357
+ cursor: pointer;
1358
+ width: 100%;
1359
+ }
1360
+
1361
+ html[dir='ltr'] .outlineItem > a {
1362
+ padding: 2px 0 5px 10px;
1363
+ }
1364
+ html[dir='ltr'] .attachmentsItem > button {
1365
+ padding: 2px 0 3px 7px;
1366
+ text-align: left;
1367
+ }
1368
+
1369
+ html[dir='rtl'] .outlineItem > a {
1370
+ padding: 2px 10px 5px 0;
1371
+ }
1372
+ html[dir='rtl'] .attachmentsItem > button {
1373
+ padding: 2px 7px 3px 0;
1374
+ text-align: right;
1375
+ }
1376
+
1377
+ .outlineItem > a:hover,
1378
+ .attachmentsItem > button:hover {
1379
+ background-color: hsla(0,0%,100%,.02);
1380
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1381
+ background-clip: padding-box;
1382
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1383
+ 0 0 1px hsla(0,0%,100%,.2) inset,
1384
+ 0 0 1px hsla(0,0%,0%,.2);
1385
+ color: hsla(0,0%,100%,.9);
1386
+ }
1387
+
1388
+ .outlineItem.selected {
1389
+ background-color: hsla(0,0%,100%,.08);
1390
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
1391
+ background-clip: padding-box;
1392
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
1393
+ 0 0 1px hsla(0,0%,100%,.1) inset,
1394
+ 0 0 1px hsla(0,0%,0%,.2);
1395
+ color: hsla(0,0%,100%,1);
1396
+ }
1397
+
1398
+ .noResults {
1399
+ font-size: 12px;
1400
+ color: hsla(0,0%,100%,.8);
1401
+ font-style: italic;
1402
+ cursor: default;
1403
+ }
1404
+
1405
+
1406
+ /* TODO: file FF bug to support ::-moz-selection:window-inactive
1407
+ so we can override the opaque grey background when the window is inactive;
1408
+ see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
1409
+ ::selection { background: rgba(0,0,255,0.3); }
1410
+ ::-moz-selection { background: rgba(0,0,255,0.3); }
1411
+
1412
+ .textLayer ::selection { background: rgb(0,0,255); }
1413
+ .textLayer ::-moz-selection { background: rgb(0,0,255); }
1414
+ .textLayer {
1415
+ opacity: 0.2;
1416
+ }
1417
+
1418
+ #errorWrapper {
1419
+ background: none repeat scroll 0 0 #FF5555;
1420
+ color: white;
1421
+ left: 0;
1422
+ position: absolute;
1423
+ right: 0;
1424
+ z-index: 1000;
1425
+ padding: 3px;
1426
+ font-size: 0.8em;
1427
+ }
1428
+ .loadingInProgress #errorWrapper {
1429
+ top: 37px;
1430
+ }
1431
+
1432
+ #errorMessageLeft {
1433
+ float: left;
1434
+ }
1435
+
1436
+ #errorMessageRight {
1437
+ float: right;
1438
+ }
1439
+
1440
+ #errorMoreInfo {
1441
+ background-color: #FFFFFF;
1442
+ color: black;
1443
+ padding: 3px;
1444
+ margin: 3px;
1445
+ width: 98%;
1446
+ }
1447
+
1448
+ .overlayButton {
1449
+ width: auto;
1450
+ margin: 3px 4px 2px 4px !important;
1451
+ padding: 2px 6px 3px 6px;
1452
+ }
1453
+
1454
+ #overlayContainer {
1455
+ display: table;
1456
+ position: absolute;
1457
+ width: 100%;
1458
+ height: 100%;
1459
+ background-color: hsla(0,0%,0%,.2);
1460
+ z-index: 40000;
1461
+ }
1462
+ #overlayContainer > * {
1463
+ overflow: auto;
1464
+ -webkit-overflow-scrolling: touch;
1465
+ }
1466
+
1467
+ #overlayContainer > .container {
1468
+ display: table-cell;
1469
+ vertical-align: middle;
1470
+ text-align: center;
1471
+ }
1472
+
1473
+ #overlayContainer > .container > .dialog {
1474
+ display: inline-block;
1475
+ padding: 15px;
1476
+ border-spacing: 4px;
1477
+ color: hsl(0,0%,85%);
1478
+ font-size: 12px;
1479
+ line-height: 14px;
1480
+ background-color: #474747; /* fallback */
1481
+ background-image: url(<%= asset_path('pdfjs/texture.png') %>)
1482
+ linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
1483
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
1484
+ inset 0 1px 1px hsla(0,0%,0%,.15),
1485
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
1486
+ 0 1px 0 hsla(0,0%,0%,.15),
1487
+ 0 1px 1px hsla(0,0%,0%,.1);
1488
+ border: 1px solid hsla(0,0%,0%,.5);
1489
+ border-radius: 4px;
1490
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
1491
+ }
1492
+
1493
+ .dialog > .row {
1494
+ display: table-row;
1495
+ }
1496
+
1497
+ .dialog > .row > * {
1498
+ display: table-cell;
1499
+ }
1500
+
1501
+ .dialog .toolbarField {
1502
+ margin: 5px 0;
1503
+ }
1504
+ .dialog .toolbarField:hover,
1505
+ .dialog .toolbarField:focus {
1506
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
1507
+ }
1508
+
1509
+ .dialog .separator {
1510
+ display: block;
1511
+ margin: 4px 0 4px 0;
1512
+ height: 1px;
1513
+ width: 100%;
1514
+ background-color: hsla(0,0%,0%,.5);
1515
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
1516
+ }
1517
+
1518
+ .dialog .buttonRow {
1519
+ text-align: center;
1520
+ vertical-align: middle;
1521
+ }
1522
+
1523
+ #passwordOverlay > .dialog {
1524
+ text-align: center;
1525
+ }
1526
+ #passwordOverlay .toolbarField {
1527
+ width: 200px;
1528
+ }
1529
+
1530
+ #documentPropertiesOverlay > .dialog {
1531
+ text-align: left;
1532
+ }
1533
+ #documentPropertiesOverlay .row > * {
1534
+ min-width: 100px;
1535
+ }
1536
+ html[dir='ltr'] #documentPropertiesOverlay .row > * {
1537
+ text-align: left;
1538
+ }
1539
+ html[dir='rtl'] #documentPropertiesOverlay .row > * {
1540
+ text-align: right;
1541
+ }
1542
+ #documentPropertiesOverlay .row > span {
1543
+ width: 125px;
1544
+ word-wrap: break-word;
1545
+ }
1546
+ #documentPropertiesOverlay .row > p {
1547
+ max-width: 225px;
1548
+ word-wrap: break-word;
1549
+ }
1550
+ #documentPropertiesOverlay .buttonRow {
1551
+ margin-top: 10px;
1552
+ }
1553
+
1554
+ .clearBoth {
1555
+ clear: both;
1556
+ }
1557
+
1558
+ .fileInput {
1559
+ background: white;
1560
+ color: black;
1561
+ margin-top: 5px;
1562
+ visibility: hidden;
1563
+ position: fixed;
1564
+ right: 0;
1565
+ top: 0;
1566
+ }
1567
+
1568
+ #PDFBug {
1569
+ background: none repeat scroll 0 0 white;
1570
+ border: 1px solid #666666;
1571
+ position: fixed;
1572
+ top: 32px;
1573
+ right: 0;
1574
+ bottom: 0;
1575
+ font-size: 10px;
1576
+ padding: 0;
1577
+ width: 300px;
1578
+ }
1579
+ #PDFBug .controls {
1580
+ background:#EEEEEE;
1581
+ border-bottom: 1px solid #666666;
1582
+ padding: 3px;
1583
+ }
1584
+ #PDFBug .panels {
1585
+ bottom: 0;
1586
+ left: 0;
1587
+ overflow: auto;
1588
+ -webkit-overflow-scrolling: touch;
1589
+ position: absolute;
1590
+ right: 0;
1591
+ top: 27px;
1592
+ }
1593
+ #PDFBug button.active {
1594
+ font-weight: bold;
1595
+ }
1596
+ .debuggerShowText {
1597
+ background: none repeat scroll 0 0 yellow;
1598
+ color: blue;
1599
+ }
1600
+ .debuggerHideText:hover {
1601
+ background: none repeat scroll 0 0 yellow;
1602
+ }
1603
+ #PDFBug .stats {
1604
+ font-family: courier;
1605
+ font-size: 10px;
1606
+ white-space: pre;
1607
+ }
1608
+ #PDFBug .stats .title {
1609
+ font-weight: bold;
1610
+ }
1611
+ #PDFBug table {
1612
+ font-size: 10px;
1613
+ }
1614
+
1615
+ #viewer.textLayer-visible .textLayer > div,
1616
+ #viewer.textLayer-hover .textLayer > div:hover {
1617
+ background-color: white;
1618
+ color: black;
1619
+ }
1620
+
1621
+ #viewer.textLayer-shadow .textLayer > div {
1622
+ background-color: rgba(255,255,255, .6);
1623
+ color: black;
1624
+ }
1625
+
1626
+ .grab-to-pan-grab {
1627
+ cursor: url(<%= asset_path('pdfjs/grab.cur') %>);
1628
+ cursor: -webkit-grab !important;
1629
+ cursor: -moz-grab !important;
1630
+ cursor: grab !important;
1631
+ }
1632
+ .grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
1633
+ cursor: inherit !important;
1634
+ }
1635
+ .grab-to-pan-grab:active,
1636
+ .grab-to-pan-grabbing {
1637
+ cursor: url(<%= asset_path('pdfjs/grabbing.cur') %>);
1638
+ cursor: -webkit-grabbing !important;
1639
+ cursor: -moz-grabbing !important;
1640
+ cursor: grabbing !important;
1641
+
1642
+ position: fixed;
1643
+ background: transparent;
1644
+ display: block;
1645
+ top: 0;
1646
+ left: 0;
1647
+ right: 0;
1648
+ bottom: 0;
1649
+ overflow: hidden;
1650
+ z-index: 50000; /* should be higher than anything else in PDF.js! */
1651
+ }
1652
+
1653
+ @page {
1654
+ margin: 0;
1655
+ }
1656
+
1657
+ #printContainer {
1658
+ display: none;
1659
+ }
1660
+
1661
+ @media screen and (min-resolution: 2dppx) {
1662
+ /* Rules for Retina screens */
1663
+ .toolbarButton::before {
1664
+ -webkit-transform: scale(0.5);
1665
+ transform: scale(0.5);
1666
+ top: -5px;
1667
+ }
1668
+
1669
+ .secondaryToolbarButton::before {
1670
+ -webkit-transform: scale(0.5);
1671
+ transform: scale(0.5);
1672
+ top: -4px;
1673
+ }
1674
+
1675
+ html[dir='ltr'] .toolbarButton::before,
1676
+ html[dir='rtl'] .toolbarButton::before {
1677
+ left: -1px;
1678
+ }
1679
+
1680
+ html[dir='ltr'] .secondaryToolbarButton::before {
1681
+ left: -2px;
1682
+ }
1683
+ html[dir='rtl'] .secondaryToolbarButton::before {
1684
+ left: 186px;
1685
+ }
1686
+
1687
+ .toolbarField.pageNumber.visiblePageIsLoading,
1688
+ #findInput[data-status="pending"] {
1689
+ background-image: url(<%= asset_path('pdfjs/loading-small@2x.png') %>);
1690
+ background-size: 16px 17px;
1691
+ }
1692
+
1693
+ .dropdownToolbarButton {
1694
+ background: url(<%= asset_path('pdfjs/toolbarButton-menuArrows@2x.png') %>);
1695
+ background-size: 7px 16px;
1696
+ }
1697
+
1698
+ html[dir='ltr'] .toolbarButton#sidebarToggle::before {
1699
+ content: url(<%= asset_path('pdfjs/toolbarButton-sidebarToggle@2x.png') %>);
1700
+ }
1701
+ html[dir='rtl'] .toolbarButton#sidebarToggle::before {
1702
+ content: url(<%= asset_path('pdfjs/toolbarButton-sidebarToggle-rtl@2x.png') %>);
1703
+ }
1704
+
1705
+ html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
1706
+ content: url(<%= asset_path('pdfjs/toolbarButton-secondaryToolbarToggle@2x.png') %>);
1707
+ }
1708
+ html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
1709
+ content: url(<%= asset_path('pdfjs/toolbarButton-secondaryToolbarToggle-rtl@2x.png') %>);
1710
+ }
1711
+
1712
+ html[dir='ltr'] .toolbarButton.findPrevious::before {
1713
+ content: url(<%= asset_path('pdfjs/findbarButton-previous@2x.png') %>);
1714
+ }
1715
+ html[dir='rtl'] .toolbarButton.findPrevious::before {
1716
+ content: url(<%= asset_path('pdfjs/findbarButton-previous-rtl@2x.png') %>);
1717
+ }
1718
+
1719
+ html[dir='ltr'] .toolbarButton.findNext::before {
1720
+ content: url(<%= asset_path('pdfjs/findbarButton-next@2x.png') %>);
1721
+ }
1722
+ html[dir='rtl'] .toolbarButton.findNext::before {
1723
+ content: url(<%= asset_path('pdfjs/findbarButton-next-rtl@2x.png') %>);
1724
+ }
1725
+
1726
+ html[dir='ltr'] .toolbarButton.pageUp::before {
1727
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageUp@2x.png') %>);
1728
+ }
1729
+ html[dir='rtl'] .toolbarButton.pageUp::before {
1730
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageUp-rtl@2x.png') %>);
1731
+ }
1732
+
1733
+ html[dir='ltr'] .toolbarButton.pageDown::before {
1734
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageDown@2x.png') %>);
1735
+ }
1736
+ html[dir='rtl'] .toolbarButton.pageDown::before {
1737
+ content: url(<%= asset_path('pdfjs/toolbarButton-pageDown-rtl@2x.png') %>);
1738
+ }
1739
+
1740
+ .toolbarButton.zoomIn::before {
1741
+ content: url(<%= asset_path('pdfjs/toolbarButton-zoomIn@2x.png') %>);
1742
+ }
1743
+
1744
+ .toolbarButton.zoomOut::before {
1745
+ content: url(<%= asset_path('pdfjs/toolbarButton-zoomOut@2x.png') %>);
1746
+ }
1747
+
1748
+ .toolbarButton.presentationMode::before,
1749
+ .secondaryToolbarButton.presentationMode::before {
1750
+ content: url(<%= asset_path('pdfjs/toolbarButton-presentationMode@2x.png') %>);
1751
+ }
1752
+
1753
+ .toolbarButton.print::before,
1754
+ .secondaryToolbarButton.print::before {
1755
+ content: url(<%= asset_path('pdfjs/toolbarButton-print@2x.png') %>);
1756
+ }
1757
+
1758
+ .toolbarButton.openFile::before,
1759
+ .secondaryToolbarButton.openFile::before {
1760
+ content: url(<%= asset_path('pdfjs/toolbarButton-openFile@2x.png') %>);
1761
+ }
1762
+
1763
+ .toolbarButton.download::before,
1764
+ .secondaryToolbarButton.download::before {
1765
+ content: url(<%= asset_path('pdfjs/toolbarButton-download@2x.png') %>);
1766
+ }
1767
+
1768
+ .toolbarButton.bookmark::before,
1769
+ .secondaryToolbarButton.bookmark::before {
1770
+ content: url(<%= asset_path('pdfjs/toolbarButton-bookmark@2x.png') %>);
1771
+ }
1772
+
1773
+ #viewThumbnail.toolbarButton::before {
1774
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewThumbnail@2x.png') %>);
1775
+ }
1776
+
1777
+ html[dir="ltr"] #viewOutline.toolbarButton::before {
1778
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewOutline@2x.png') %>);
1779
+ }
1780
+ html[dir="rtl"] #viewOutline.toolbarButton::before {
1781
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewOutline-rtl@2x.png') %>);
1782
+ }
1783
+
1784
+ #viewAttachments.toolbarButton::before {
1785
+ content: url(<%= asset_path('pdfjs/toolbarButton-viewAttachments@2x.png') %>);
1786
+ }
1787
+
1788
+ #viewFind.toolbarButton::before {
1789
+ content: url(<%= asset_path('pdfjs/toolbarButton-search@2x.png') %>);
1790
+ }
1791
+
1792
+ .secondaryToolbarButton.firstPage::before {
1793
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-firstPage@2x.png') %>);
1794
+ }
1795
+
1796
+ .secondaryToolbarButton.lastPage::before {
1797
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-lastPage@2x.png') %>);
1798
+ }
1799
+
1800
+ .secondaryToolbarButton.rotateCcw::before {
1801
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-rotateCcw@2x.png') %>);
1802
+ }
1803
+
1804
+ .secondaryToolbarButton.rotateCw::before {
1805
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-rotateCw@2x.png') %>);
1806
+ }
1807
+
1808
+ .secondaryToolbarButton.handTool::before {
1809
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-handTool@2x.png') %>);
1810
+ }
1811
+
1812
+ .secondaryToolbarButton.documentProperties::before {
1813
+ content: url(<%= asset_path('pdfjs/secondaryToolbarButton-documentProperties@2x.png') %>);
1814
+ }
1815
+ }
1816
+
1817
+ @media print {
1818
+ /* General rules for printing. */
1819
+ body {
1820
+ background: transparent none;
1821
+ }
1822
+
1823
+ /* Rules for browsers that don't support mozPrintCallback. */
1824
+ #sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
1825
+ display: none;
1826
+ }
1827
+ #viewerContainer {
1828
+ overflow: visible;
1829
+ }
1830
+
1831
+ #mainContainer, #viewerContainer, .page, .page canvas {
1832
+ position: static;
1833
+ padding: 0;
1834
+ margin: 0;
1835
+ }
1836
+
1837
+ .page {
1838
+ float: left;
1839
+ display: none;
1840
+ border: none;
1841
+ box-shadow: none;
1842
+ background-clip: content-box;
1843
+ background-color: white;
1844
+ }
1845
+
1846
+ .page[data-loaded] {
1847
+ display: block;
1848
+ }
1849
+
1850
+ .fileInput {
1851
+ display: none;
1852
+ }
1853
+
1854
+ /* Rules for browsers that support mozPrintCallback */
1855
+ body[data-mozPrintCallback] #outerContainer {
1856
+ display: none;
1857
+ }
1858
+ body[data-mozPrintCallback] #printContainer {
1859
+ display: block;
1860
+ }
1861
+ #printContainer canvas {
1862
+ position: relative;
1863
+ top: 0;
1864
+ left: 0;
1865
+ display: block;
1866
+ }
1867
+ }
1868
+
1869
+ .visibleLargeView,
1870
+ .visibleMediumView,
1871
+ .visibleSmallView {
1872
+ display: none;
1873
+ }
1874
+
1875
+ @media all and (max-width: 960px) {
1876
+ html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
1877
+ html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter {
1878
+ float: left;
1879
+ left: 205px;
1880
+ }
1881
+ html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
1882
+ html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter {
1883
+ float: right;
1884
+ right: 205px;
1885
+ }
1886
+ }
1887
+
1888
+ @media all and (max-width: 900px) {
1889
+ .sidebarOpen .hiddenLargeView {
1890
+ display: none;
1891
+ }
1892
+ .sidebarOpen .visibleLargeView {
1893
+ display: inherit;
1894
+ }
1895
+ }
1896
+
1897
+ @media all and (max-width: 860px) {
1898
+ .sidebarOpen .hiddenMediumView {
1899
+ display: none;
1900
+ }
1901
+ .sidebarOpen .visibleMediumView {
1902
+ display: inherit;
1903
+ }
1904
+ }
1905
+
1906
+ @media all and (max-width: 770px) {
1907
+ #sidebarContainer {
1908
+ top: 32px;
1909
+ z-index: 100;
1910
+ }
1911
+ .loadingInProgress #sidebarContainer {
1912
+ top: 37px;
1913
+ }
1914
+ #sidebarContent {
1915
+ top: 32px;
1916
+ background-color: hsla(0,0%,0%,.7);
1917
+ }
1918
+
1919
+ html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
1920
+ left: 0px;
1921
+ }
1922
+ html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
1923
+ right: 0px;
1924
+ }
1925
+
1926
+ html[dir='ltr'] .outerCenter {
1927
+ float: left;
1928
+ left: 205px;
1929
+ }
1930
+ html[dir='rtl'] .outerCenter {
1931
+ float: right;
1932
+ right: 205px;
1933
+ }
1934
+
1935
+ #outerContainer .hiddenLargeView,
1936
+ #outerContainer .hiddenMediumView {
1937
+ display: inherit;
1938
+ }
1939
+ #outerContainer .visibleLargeView,
1940
+ #outerContainer .visibleMediumView {
1941
+ display: none;
1942
+ }
1943
+ }
1944
+
1945
+ @media all and (max-width: 700px) {
1946
+ #outerContainer .hiddenLargeView {
1947
+ display: none;
1948
+ }
1949
+ #outerContainer .visibleLargeView {
1950
+ display: inherit;
1951
+ }
1952
+ }
1953
+
1954
+ @media all and (max-width: 660px) {
1955
+ #outerContainer .hiddenMediumView {
1956
+ display: none;
1957
+ }
1958
+ #outerContainer .visibleMediumView {
1959
+ display: inherit;
1960
+ }
1961
+ }
1962
+
1963
+ @media all and (max-width: 600px) {
1964
+ .hiddenSmallView {
1965
+ display: none;
1966
+ }
1967
+ .visibleSmallView {
1968
+ display: inherit;
1969
+ }
1970
+ html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
1971
+ html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter,
1972
+ html[dir='ltr'] .outerCenter {
1973
+ left: 156px;
1974
+ }
1975
+ html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
1976
+ html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter,
1977
+ html[dir='rtl'] .outerCenter {
1978
+ right: 156px;
1979
+ }
1980
+ .toolbarButtonSpacer {
1981
+ width: 0;
1982
+ }
1983
+ }
1984
+
1985
+ @media all and (max-width: 510px) {
1986
+ #scaleSelectContainer, #pageNumberLabel {
1987
+ display: none;
1988
+ }
1989
+ }