editor.less 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. @import "./editor/file-tree.less";
  2. @import "./editor/track-changes.less";
  3. @import "./editor/toolbar.less";
  4. @import "./editor/left-menu.less";
  5. @import "./editor/pdf.less";
  6. @import "./editor/enago.less";
  7. @import "./editor/share.less";
  8. @import "./editor/chat.less";
  9. @import "./editor/binary-file.less";
  10. @import "./editor/search.less";
  11. @import "./editor/publish-template.less";
  12. @import "./editor/online-users.less";
  13. @import "./editor/hotkeys.less";
  14. .full-size {
  15. position: absolute;
  16. top: 0;
  17. bottom: 0;
  18. left: 0;
  19. right: 0;
  20. }
  21. .global-alerts {
  22. position: absolute;
  23. z-index: 20;
  24. top: 2px;
  25. width: 400px;
  26. left: 50%;
  27. margin-left: -200px;
  28. .alert {
  29. padding: (@line-height-computed / 4);
  30. font-size: 14px;
  31. margin-bottom: (@line-height-computed / 4);
  32. }
  33. }
  34. #chat-wrapper {
  35. .full-size;
  36. > .ui-layout-resizer > .ui-layout-toggler {
  37. display: none !important;
  38. }
  39. }
  40. #ide-body {
  41. .full-size;
  42. top: 40px;
  43. }
  44. #editor {
  45. .full-size;
  46. }
  47. .loading-screen {
  48. h3 {
  49. padding-top: 136px;
  50. background-image: url(/img/lion-128.png);
  51. background-repeat: no-repeat;
  52. background-position: top center;
  53. }
  54. .full-size;
  55. background-color: #fafafa;
  56. .container {
  57. text-align: center;
  58. position: absolute;
  59. top: 50%;
  60. left: 50%;
  61. width: 400px;
  62. margin-left: -200px;
  63. margin-top: -200px;
  64. }
  65. }
  66. .loading-panel {
  67. .full-size;
  68. padding-top: 10rem;
  69. font-family: @font-family-serif;
  70. text-align: center;
  71. background-color: #fafafa;
  72. }
  73. .error-panel {
  74. .full-size;
  75. padding: @line-height-computed;
  76. background-color: #fafafa;
  77. .alert {
  78. max-width: 400px;
  79. margin: auto;
  80. }
  81. }
  82. .project-name {
  83. .name {
  84. display: inline-block;
  85. max-width: 250px;
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. vertical-align: top;
  89. padding: 6px;
  90. color: @gray;
  91. font-weight: 700;
  92. white-space: nowrap;
  93. }
  94. input {
  95. height: 30px;
  96. margin-top: 4px;
  97. text-align: center;
  98. padding: 6px;
  99. font-weight: 700;
  100. }
  101. a.rename {
  102. visibility: hidden;
  103. display: inline-block;
  104. color: @gray-light;
  105. padding: 5px;
  106. border-radius: @border-radius-small;
  107. &:hover {
  108. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  109. color: @gray-dark;
  110. text-decoration: none;
  111. }
  112. }
  113. &:hover {
  114. a.rename {
  115. visibility: visible;
  116. }
  117. }
  118. }
  119. // The internal components of the aceEditor directive
  120. .ace-editor-wrapper {
  121. .full-size;
  122. .undo-conflict-warning {
  123. position: absolute;
  124. top: 0;
  125. right: 0;
  126. left: 0;
  127. z-index: 10;
  128. }
  129. .ace-editor-body {
  130. width: 100%;
  131. height: 100%;
  132. }
  133. .spelling-highlight {
  134. position: absolute;
  135. background-image: url(/img/spellcheck-underline.png);
  136. background-repeat: repeat-x;
  137. background-position: bottom left;
  138. }
  139. .remote-cursor {
  140. position: absolute;
  141. border-left: 2px solid transparent;
  142. .nubbin {
  143. height: 5px;
  144. width: 5px;
  145. position: absolute;
  146. left: -2px;
  147. }
  148. }
  149. .annotation-label {
  150. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  151. font-size: 0.8rem;
  152. z-index: 100;
  153. font-family: @font-family-sans-serif;
  154. color: white;
  155. font-weight: 700;
  156. white-space: nowrap;
  157. }
  158. .annotation {
  159. position: absolute;
  160. z-index: 2;
  161. }
  162. .highlights-before-label, .highlights-after-label {
  163. position: absolute;
  164. right: @line-height-computed;
  165. z-index: 1;
  166. }
  167. .highlights-before-label {
  168. top: @line-height-computed / 2;
  169. }
  170. .highlights-after-label {
  171. bottom: @line-height-computed / 2;
  172. }
  173. }
  174. .ui-layout-resizer {
  175. width: 6px;
  176. background-color: #f4f4f4;
  177. border-left: 1px solid @toolbar-border-color;
  178. border-right: 1px solid @toolbar-border-color;
  179. .ui-layout-toggler {
  180. color: #999;
  181. font-family: FontAwesome;
  182. font-style: normal;
  183. font-weight: normal;
  184. line-height: 1;
  185. -webkit-font-smoothing: antialiased;
  186. -moz-osx-font-smoothing: grayscale;
  187. font-size: 16px !important;
  188. line-height: 50px;
  189. &:hover {
  190. background-color: #ddd;
  191. color: #333;
  192. }
  193. }
  194. }
  195. .ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
  196. .ui-layout-toggler {
  197. &:before {
  198. content: "\f104"
  199. }
  200. }
  201. }
  202. .ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
  203. .ui-layout-toggler {
  204. &:before {
  205. content: "\f105"
  206. }
  207. }
  208. }
  209. .ui-layout-resizer-dragging {
  210. background-color: #ddd;
  211. }
  212. .context-menu {
  213. position: fixed;
  214. z-index: 100;
  215. }
  216. .editor-dark {
  217. color: @gray-lighter;
  218. background-color: @editor-dark-background-color;
  219. .ui-layout-resizer {
  220. background-color: darken(@editor-dark-background-color, 10%);
  221. border: none;
  222. }
  223. .btn-default {
  224. color: white;
  225. background-color: @gray;
  226. border-color: darken(@gray-dark, 10%);
  227. &:hover {
  228. background-color: darken(@gray, 5%);
  229. border-color: darken(@gray-dark, 20%);
  230. }
  231. }
  232. }
  233. .modal-alert {
  234. margin-top:10px;
  235. margin-bottom:0px;
  236. }
  237. .sl_references_search_hint {
  238. position: absolute;
  239. bottom: -22px;
  240. left: -1px;
  241. right: 0px;
  242. text-align: center;
  243. padding: 2px;
  244. background: rgb(202, 214, 250);
  245. border: 1px solid lightgray;
  246. box-shadow: 3px 3px 5px rgba(0,0,0,.2);
  247. span {
  248. color: black;
  249. }
  250. }
  251. // -- References Search Modal --
  252. .references-search-modal-backdrop {
  253. // don't grey out the editor when the
  254. // modal is active
  255. background-color: transparent;
  256. }
  257. .references-search-modal {
  258. // upgrade prompt
  259. .references-search-upgrade-prompt {
  260. padding: 24px;
  261. padding-bottom: 48px;
  262. .upgrade-prompt {
  263. text-align: center;
  264. width: 400px;
  265. padding-top: 14px;
  266. padding-bottom: 14px;
  267. padding-left: 38px;
  268. padding-right: 38px;
  269. margin: auto;
  270. background: white;
  271. opacity: 0.95;
  272. border-radius: 8px;
  273. .message {
  274. margin-top: 15px;
  275. &.call-to-action {
  276. font-weight: bold;
  277. }
  278. ul.list-unstyled {
  279. text-align: left;
  280. }
  281. }
  282. a.btn {
  283. opacity: 1.0;
  284. }
  285. }
  286. }
  287. .search-form {
  288. // position the spinner inside the input element
  289. i.fa-spinner {
  290. margin-top: -30px;
  291. }
  292. }
  293. .alert-danger {
  294. margin-top: 12px;
  295. margin-bottom: 0px;
  296. }
  297. // search result items list
  298. .search-results {
  299. font-size: 12px;
  300. .no-results-message {
  301. font-size: 16px;
  302. }
  303. .search-result-hit {
  304. &:hover {
  305. cursor: pointer;
  306. }
  307. border-bottom: 1px solid #ddd;
  308. padding: 8px;
  309. &:last-child {
  310. border-bottom: 1px solid transparent;
  311. }
  312. border-left: 4px solid transparent;
  313. &.selected-search-result-hit {
  314. background-color: @red;
  315. color: white;
  316. .hit-year.small {
  317. color: white;
  318. }
  319. .hit-journal.small {
  320. color: white;
  321. }
  322. }
  323. .hit-title {
  324. font-size: 1.3em;
  325. font-style: italic;
  326. }
  327. }
  328. }
  329. }