pdf_viewer.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 .annotLink > a:hover {
  76. opacity: 0.2;
  77. background: #ff0;
  78. box-shadow: 0px 2px 10px #ff0;
  79. }
  80. .annotationLayer .textAnnotation img {
  81. position: absolute;
  82. cursor: pointer;
  83. }
  84. .annotationLayer .popupWrapper {
  85. position: absolute;
  86. width: 20em;
  87. }
  88. .annotationLayer .popup {
  89. position: absolute;
  90. z-index: 200;
  91. max-width: 20em;
  92. background-color: #FFFF99;
  93. box-shadow: 0px 2px 5px #333;
  94. border-radius: 2px;
  95. padding: 0.6em;
  96. margin-left: 5px;
  97. cursor: pointer;
  98. word-wrap: break-word;
  99. }
  100. .annotationLayer .popup h1 {
  101. font-size: 1em;
  102. border-bottom: 1px solid #000000;
  103. padding-bottom: 0.2em;
  104. }
  105. .annotationLayer .popup p {
  106. padding-top: 0.2em;
  107. }
  108. .annotationLayer .annotLink > a {
  109. position: absolute;
  110. font-size: 1em;
  111. top: 0;
  112. left: 0;
  113. width: 100%;
  114. height: 100%;
  115. }
  116. .annotationLayer .annotLink > a /* -ms-a */ {
  117. background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  118. }
  119. .pdfViewer .canvasWrapper {
  120. overflow: hidden;
  121. }
  122. .pdfViewer .page {
  123. direction: ltr;
  124. width: 816px;
  125. height: 1056px;
  126. margin: 1px auto -8px auto;
  127. position: relative;
  128. overflow: visible;
  129. border: 9px solid transparent;
  130. background-clip: content-box;
  131. border-image: url(images/shadow.png) 9 9 repeat;
  132. background-color: white;
  133. }
  134. .pdfViewer.removePageBorders .page {
  135. margin: 0px auto 10px auto;
  136. border: none;
  137. }
  138. .pdfViewer .page canvas {
  139. margin: 0;
  140. display: block;
  141. }
  142. .pdfViewer .page .loadingIcon {
  143. position: absolute;
  144. display: block;
  145. left: 0;
  146. top: 0;
  147. right: 0;
  148. bottom: 0;
  149. background: url('images/loading-icon.gif') center no-repeat;
  150. }
  151. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  152. margin-bottom: 100%;
  153. border: 0;
  154. }
  155. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  156. margin-bottom: 100%;
  157. border: 0;
  158. }
  159. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  160. margin-bottom: 100% !important;
  161. border: 0;
  162. }
  163. .pdfPresentationMode:fullscreen .pdfViewer .page {
  164. margin-bottom: 100%;
  165. border: 0;
  166. }