pdf_viewer.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. .annotationLayer .annotLink > a:hover {
  56. opacity: 0.2;
  57. background: #ff0;
  58. box-shadow: 0px 2px 10px #ff0;
  59. }
  60. .annotationLayer .annotText > img {
  61. position: absolute;
  62. cursor: pointer;
  63. }
  64. .annotationLayer .annotTextContentWrapper {
  65. position: absolute;
  66. width: 20em;
  67. }
  68. .annotationLayer .annotTextContent {
  69. z-index: 200;
  70. float: left;
  71. max-width: 20em;
  72. background-color: #FFFF99;
  73. box-shadow: 0px 2px 5px #333;
  74. border-radius: 2px;
  75. padding: 0.6em;
  76. cursor: pointer;
  77. }
  78. .annotationLayer .annotTextContent > h1 {
  79. font-size: 1em;
  80. border-bottom: 1px solid #000000;
  81. padding-bottom: 0.2em;
  82. }
  83. .annotationLayer .annotTextContent > p {
  84. padding-top: 0.2em;
  85. }
  86. .annotationLayer .annotLink > a {
  87. position: absolute;
  88. font-size: 1em;
  89. top: 0;
  90. left: 0;
  91. width: 100%;
  92. height: 100%;
  93. }
  94. .annotationLayer .annotLink > a /* -ms-a */ {
  95. background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  96. }
  97. .pdfViewer .canvasWrapper {
  98. overflow: hidden;
  99. }
  100. .pdfViewer .page {
  101. direction: ltr;
  102. width: 816px;
  103. height: 1056px;
  104. margin: 1px auto -8px auto;
  105. position: relative;
  106. overflow: visible;
  107. border: 9px solid transparent;
  108. background-clip: content-box;
  109. border-image: url(images/shadow.png) 9 9 repeat;
  110. background-color: white;
  111. }
  112. .pdfViewer.removePageBorders .page {
  113. margin: 0px auto 10px auto;
  114. border: none;
  115. }
  116. .pdfViewer .page canvas {
  117. margin: 0;
  118. display: block;
  119. }
  120. .pdfViewer .page .loadingIcon {
  121. position: absolute;
  122. display: block;
  123. left: 0;
  124. top: 0;
  125. right: 0;
  126. bottom: 0;
  127. background: url('images/loading-icon.gif') center no-repeat;
  128. }
  129. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  130. margin-bottom: 100%;
  131. border: 0;
  132. }
  133. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  134. margin-bottom: 100%;
  135. border: 0;
  136. }
  137. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  138. margin-bottom: 100% !important;
  139. border: 0;
  140. }
  141. .pdfPresentationMode:fullscreen .pdfViewer .page {
  142. margin-bottom: 100%;
  143. border: 0;
  144. }