2
0

pdf_viewer.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. .textLayer {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. overflow: hidden;
  22. opacity: 0.2;
  23. line-height: 1.0;
  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. .textLayer .highlight {
  37. margin: -1px;
  38. padding: 1px;
  39. background-color: rgb(180, 0, 170);
  40. border-radius: 4px;
  41. }
  42. .textLayer .highlight.begin {
  43. border-radius: 4px 0px 0px 4px;
  44. }
  45. .textLayer .highlight.end {
  46. border-radius: 0px 4px 4px 0px;
  47. }
  48. .textLayer .highlight.middle {
  49. border-radius: 0px;
  50. }
  51. .textLayer .highlight.selected {
  52. background-color: rgb(0, 100, 0);
  53. }
  54. .textLayer ::selection { background: rgb(0,0,255); }
  55. .textLayer ::-moz-selection { background: rgb(0,0,255); }
  56. .textLayer .endOfContent {
  57. display: block;
  58. position: absolute;
  59. left: 0px;
  60. top: 100%;
  61. right: 0px;
  62. bottom: 0px;
  63. z-index: -1;
  64. cursor: default;
  65. -webkit-user-select: none;
  66. -ms-user-select: none;
  67. -moz-user-select: none;
  68. }
  69. .textLayer .endOfContent.active {
  70. top: 0px;
  71. }
  72. .annotationLayer section {
  73. position: absolute;
  74. }
  75. .annotationLayer .linkAnnotation > a {
  76. position: absolute;
  77. font-size: 1em;
  78. top: 0;
  79. left: 0;
  80. width: 100%;
  81. height: 100%;
  82. }
  83. .annotationLayer .linkAnnotation > a /* -ms-a */ {
  84. background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  85. }
  86. .annotationLayer .linkAnnotation > a:hover {
  87. opacity: 0.2;
  88. background: #ff0;
  89. box-shadow: 0px 2px 10px #ff0;
  90. }
  91. .annotationLayer .textAnnotation img {
  92. position: absolute;
  93. cursor: pointer;
  94. }
  95. .annotationLayer .popupWrapper {
  96. position: absolute;
  97. width: 20em;
  98. }
  99. .annotationLayer .popup {
  100. position: absolute;
  101. z-index: 200;
  102. max-width: 20em;
  103. background-color: #FFFF99;
  104. box-shadow: 0px 2px 5px #333;
  105. border-radius: 2px;
  106. padding: 0.6em;
  107. margin-left: 5px;
  108. cursor: pointer;
  109. word-wrap: break-word;
  110. }
  111. .annotationLayer .popup h1 {
  112. font-size: 1em;
  113. border-bottom: 1px solid #000000;
  114. padding-bottom: 0.2em;
  115. }
  116. .annotationLayer .popup p {
  117. padding-top: 0.2em;
  118. }
  119. .annotationLayer .highlightAnnotation,
  120. .annotationLayer .underlineAnnotation,
  121. .annotationLayer .squigglyAnnotation,
  122. .annotationLayer .strikeoutAnnotation,
  123. .annotationLayer .fileAttachmentAnnotation {
  124. cursor: pointer;
  125. }
  126. .pdfViewer .canvasWrapper {
  127. overflow: hidden;
  128. }
  129. .pdfViewer .page {
  130. direction: ltr;
  131. width: 816px;
  132. height: 1056px;
  133. margin: 1px auto -8px auto;
  134. position: relative;
  135. overflow: visible;
  136. border: 9px solid transparent;
  137. background-clip: content-box;
  138. border-image: url(images/shadow.png) 9 9 repeat;
  139. background-color: white;
  140. }
  141. .pdfViewer.removePageBorders .page {
  142. margin: 0px auto 10px auto;
  143. border: none;
  144. }
  145. .pdfViewer.singlePageView {
  146. display: inline-block;
  147. }
  148. .pdfViewer.singlePageView .page {
  149. margin: 0;
  150. border: none;
  151. }
  152. .pdfViewer .page canvas {
  153. margin: 0;
  154. display: block;
  155. }
  156. .pdfViewer .page .loadingIcon {
  157. position: absolute;
  158. display: block;
  159. left: 0;
  160. top: 0;
  161. right: 0;
  162. bottom: 0;
  163. background: url('images/loading-icon.gif') center no-repeat;
  164. }
  165. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  166. margin-bottom: 100%;
  167. border: 0;
  168. }
  169. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  170. margin-bottom: 100%;
  171. border: 0;
  172. }
  173. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  174. margin-bottom: 100% !important;
  175. border: 0;
  176. }
  177. .pdfPresentationMode:fullscreen .pdfViewer .page {
  178. margin-bottom: 100%;
  179. border: 0;
  180. }