pdf.less 2.8 KB

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