pdf_viewer.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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///yH5BAEAAAAA\
  96. LAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  97. }
  98. .pdfViewer .canvasWrapper {
  99. overflow: hidden;
  100. }
  101. .pdfViewer .page {
  102. direction: ltr;
  103. width: 816px;
  104. height: 1056px;
  105. margin: 1px auto -8px auto;
  106. position: relative;
  107. overflow: visible;
  108. border: 9px solid transparent;
  109. background-clip: content-box;
  110. border-image: url(images/shadow.png) 9 9 repeat;
  111. background-color: white;
  112. }
  113. .pdfViewer.removePageBorders .page {
  114. margin: 0px auto 10px auto;
  115. border: none;
  116. }
  117. .pdfViewer .page canvas {
  118. margin: 0;
  119. display: block;
  120. }
  121. .pdfViewer .page .loadingIcon {
  122. position: absolute;
  123. display: block;
  124. left: 0;
  125. top: 0;
  126. right: 0;
  127. bottom: 0;
  128. background: url('images/loading-icon.gif') center no-repeat;
  129. }
  130. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  131. margin-bottom: 100%;
  132. border: 0;
  133. }
  134. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  135. margin-bottom: 100%;
  136. border: 0;
  137. }
  138. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  139. margin-bottom: 100% !important;
  140. border: 0;
  141. }
  142. .pdfPresentationMode:fullscreen .pdfViewer .page {
  143. margin-bottom: 100%;
  144. border: 0;
  145. }