pdf.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .pdf-viewer, .pdf-logs, .pdf-errors, .pdf-uncompiled {
  2. .full-size;
  3. top: 58px;
  4. }
  5. .pdf-logs, .pdf-errors, .pdf-uncompiled {
  6. padding: @line-height-computed / 2;
  7. }
  8. .pdf-uncompiled {
  9. .fa {
  10. color: @blue;
  11. }
  12. }
  13. .pdf-viewer {
  14. iframe {
  15. width: 100%;
  16. height: 100%;
  17. border: none;
  18. }
  19. .pdfjs-viewer {
  20. .full-size;
  21. background-color: @gray-lighter;
  22. overflow: scroll;
  23. canvas, div.pdf-canvas {
  24. background: white;
  25. box-shadow: black 0px 0px 10px;
  26. }
  27. div.pdf-canvas.pdfng-empty {
  28. background-color: white;
  29. }
  30. div.pdf-canvas.pdfng-loading {
  31. background-color: white;
  32. }
  33. .page-container {
  34. margin: 10px auto;
  35. padding: 0 10px;
  36. box-sizing: content-box;
  37. }
  38. }
  39. .progress-thin {
  40. position: absolute;
  41. top: -2px;
  42. height: 3px;
  43. left: 0;
  44. right: 0;
  45. .progress-bar {
  46. height: 100%;
  47. background-color: @link-color;
  48. }
  49. }
  50. .pdfjs-controls {
  51. position: absolute;
  52. padding: @line-height-computed / 2;
  53. top: 0;
  54. left: 0;
  55. display: inline-block;
  56. .btn-group {
  57. transition: opacity 0.5s ease, visibility 0 linear 0.5s;
  58. visibility: hidden;
  59. opacity: 0;
  60. }
  61. &:hover, &.flash {
  62. .btn-group {
  63. transition: none;
  64. visibility: visible;
  65. opacity: 1;
  66. }
  67. }
  68. i.fa-arrows-h {
  69. border-right: 2px solid white;
  70. border-left: 2px solid white;
  71. }
  72. i.fa-arrows-v {
  73. border-top: 2px solid white;
  74. border-bottom: 2px solid white;
  75. }
  76. }
  77. }
  78. .pdf .toolbar {
  79. .toolbar-right {
  80. margin-right: @line-height-computed / 2;
  81. a {
  82. &:hover {
  83. i {
  84. box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
  85. border-color: @gray-dark;
  86. }
  87. }
  88. i {
  89. display: inline-block;
  90. width: 16px;
  91. height: 16px;
  92. border: 1px solid @gray-light;
  93. margin-top: 5px;
  94. }
  95. i.full-screen {
  96. border-top-width: 3px;
  97. border-radius: 2px;
  98. }
  99. i.split-screen {
  100. width: 7px;
  101. border-top-width: 3px;
  102. border-radius: 2px;
  103. margin-left: 2px;
  104. }
  105. }
  106. }
  107. }
  108. .pdf-logs {
  109. overflow: auto;
  110. .alert {
  111. font-size: 0.9rem;
  112. margin-bottom: @line-height-computed / 2;
  113. cursor: pointer;
  114. .line-no {
  115. float: right;
  116. color: @gray;
  117. font-weight: 700;
  118. }
  119. .entry-message {
  120. font-weight: 700;
  121. //font-family: @font-family-monospace;
  122. }
  123. .entry-content {
  124. white-space: pre-wrap;
  125. font-size: 0.8rem;
  126. //font-family: @font-family-monospace;
  127. }
  128. }
  129. pre {
  130. font-size: 12px;
  131. }
  132. .dropdown {
  133. position: relative;
  134. }
  135. }
  136. .synctex-controls {
  137. top: 68px;
  138. padding: 0px 2px;
  139. .btn-xs {
  140. line-height: 1.3;
  141. padding: 0 2px 0;
  142. }
  143. }
  144. .editor-dark {
  145. .pdf-logs {
  146. background-color: lighten(@editor-dark-background-color, 10%);
  147. }
  148. .pdfjs-viewer {
  149. background-color: lighten(@editor-dark-background-color, 10%);
  150. }
  151. .pdf .toolbar {
  152. .toolbar-right a {
  153. i {
  154. border-color: @gray;
  155. }
  156. &:hover {
  157. i {
  158. border-color: @gray-light;
  159. }
  160. }
  161. }
  162. }
  163. }