2
0

pdf_viewer.css 3.3 KB

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