pdf_viewer.css 3.2 KB

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