pdf_viewer.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. }
  24. .textLayer > div {
  25. color: transparent;
  26. position: absolute;
  27. white-space: pre;
  28. cursor: text;
  29. -webkit-transform-origin: 0% 0%;
  30. -moz-transform-origin: 0% 0%;
  31. -o-transform-origin: 0% 0%;
  32. -ms-transform-origin: 0% 0%;
  33. transform-origin: 0% 0%;
  34. }
  35. .textLayer .highlight {
  36. margin: -1px;
  37. padding: 1px;
  38. background-color: rgb(180, 0, 170);
  39. border-radius: 4px;
  40. }
  41. .textLayer .highlight.begin {
  42. border-radius: 4px 0px 0px 4px;
  43. }
  44. .textLayer .highlight.end {
  45. border-radius: 0px 4px 4px 0px;
  46. }
  47. .textLayer .highlight.middle {
  48. border-radius: 0px;
  49. }
  50. .textLayer .highlight.selected {
  51. background-color: rgb(0, 100, 0);
  52. }
  53. .textLayer ::selection { background: rgb(0,0,255); }
  54. .textLayer ::-moz-selection { background: rgb(0,0,255); }
  55. .textLayer .endOfContent {
  56. display: block;
  57. position: absolute;
  58. left: 0px;
  59. top: 100%;
  60. right: 0px;
  61. bottom: 0px;
  62. z-index: -1;
  63. cursor: default;
  64. -webkit-user-select: none;
  65. -ms-user-select: none;
  66. -moz-user-select: none;
  67. }
  68. .textLayer .endOfContent.active {
  69. top: 0px;
  70. }
  71. .annotationLayer .annotLink > a:hover {
  72. opacity: 0.2;
  73. background: #ff0;
  74. box-shadow: 0px 2px 10px #ff0;
  75. }
  76. .annotationLayer .annotText > img {
  77. position: absolute;
  78. cursor: pointer;
  79. }
  80. .annotationLayer .annotTextContentWrapper {
  81. position: absolute;
  82. width: 20em;
  83. }
  84. .annotationLayer .annotTextContent {
  85. z-index: 200;
  86. float: left;
  87. max-width: 20em;
  88. background-color: #FFFF99;
  89. box-shadow: 0px 2px 5px #333;
  90. border-radius: 2px;
  91. padding: 0.6em;
  92. cursor: pointer;
  93. }
  94. .annotationLayer .annotTextContent > h1 {
  95. font-size: 1em;
  96. border-bottom: 1px solid #000000;
  97. padding-bottom: 0.2em;
  98. }
  99. .annotationLayer .annotTextContent > p {
  100. padding-top: 0.2em;
  101. }
  102. .annotationLayer .annotLink > a {
  103. position: absolute;
  104. font-size: 1em;
  105. top: 0;
  106. left: 0;
  107. width: 100%;
  108. height: 100%;
  109. }
  110. .annotationLayer .annotLink > a /* -ms-a */ {
  111. background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  112. }
  113. .pdfViewer .canvasWrapper {
  114. overflow: hidden;
  115. }
  116. .pdfViewer .page {
  117. direction: ltr;
  118. width: 816px;
  119. height: 1056px;
  120. margin: 1px auto -8px auto;
  121. position: relative;
  122. overflow: visible;
  123. border: 9px solid transparent;
  124. background-clip: content-box;
  125. border-image: url(images/shadow.png) 9 9 repeat;
  126. background-color: white;
  127. }
  128. .pdfViewer.removePageBorders .page {
  129. margin: 0px auto 10px auto;
  130. border: none;
  131. }
  132. .pdfViewer .page canvas {
  133. margin: 0;
  134. display: block;
  135. }
  136. .pdfViewer .page .loadingIcon {
  137. position: absolute;
  138. display: block;
  139. left: 0;
  140. top: 0;
  141. right: 0;
  142. bottom: 0;
  143. background: url('images/loading-icon.gif') center no-repeat;
  144. }
  145. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  146. margin-bottom: 100%;
  147. border: 0;
  148. }
  149. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  150. margin-bottom: 100%;
  151. border: 0;
  152. }
  153. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  154. margin-bottom: 100% !important;
  155. border: 0;
  156. }
  157. .pdfPresentationMode:fullscreen .pdfViewer .page {
  158. margin-bottom: 100%;
  159. border: 0;
  160. }