editor.less 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. @import "./editor/file-tree.less";
  2. @import "./editor/history.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. @import "./editor/review-panel.less";
  15. @import "./editor/feature-onboarding.less";
  16. .full-size {
  17. position: absolute;
  18. top: 0;
  19. bottom: 0;
  20. left: 0;
  21. right: 0;
  22. }
  23. .global-alerts {
  24. position: absolute;
  25. z-index: 20;
  26. top: 2px;
  27. width: 400px;
  28. left: 50%;
  29. margin-left: -200px;
  30. .alert {
  31. padding: (@line-height-computed / 4);
  32. font-size: 14px;
  33. margin-bottom: (@line-height-computed / 4);
  34. }
  35. }
  36. #ide-body {
  37. .full-size;
  38. top: 40px;
  39. }
  40. #editor {
  41. .full-size;
  42. }
  43. .loading-screen {
  44. h3 {
  45. padding-top: 136px;
  46. background-image: url(/img/lion-128.png);
  47. background-repeat: no-repeat;
  48. background-position: top center;
  49. }
  50. .full-size;
  51. background-color: #fafafa;
  52. .container {
  53. text-align: center;
  54. position: absolute;
  55. top: 50%;
  56. left: 50%;
  57. width: 400px;
  58. margin-left: -200px;
  59. margin-top: -200px;
  60. }
  61. }
  62. .loading-panel {
  63. .full-size;
  64. padding-top: 10rem;
  65. font-family: @font-family-serif;
  66. text-align: center;
  67. background-color: #fafafa;
  68. }
  69. .error-panel {
  70. .full-size;
  71. padding: @line-height-computed;
  72. background-color: #fafafa;
  73. .alert {
  74. max-width: 400px;
  75. margin: auto;
  76. }
  77. }
  78. .project-name {
  79. .name {
  80. display: inline-block;
  81. max-width: 250px;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. vertical-align: top;
  85. padding: 6px;
  86. color: @gray;
  87. font-weight: 700;
  88. white-space: nowrap;
  89. }
  90. input {
  91. height: 30px;
  92. margin-top: 4px;
  93. text-align: center;
  94. padding: 6px;
  95. font-weight: 700;
  96. }
  97. a.rename {
  98. visibility: hidden;
  99. display: inline-block;
  100. color: @gray-light;
  101. padding: 5px;
  102. border-radius: @border-radius-small;
  103. &:hover {
  104. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  105. color: @gray-dark;
  106. text-decoration: none;
  107. }
  108. }
  109. &:hover {
  110. a.rename {
  111. visibility: visible;
  112. }
  113. }
  114. }
  115. // The internal components of the aceEditor directive
  116. .ace-editor-wrapper {
  117. .full-size;
  118. .undo-conflict-warning {
  119. position: absolute;
  120. top: 0;
  121. right: 0;
  122. left: 0;
  123. z-index: 10;
  124. }
  125. .ace-editor-body {
  126. width: 100%;
  127. height: 100%;
  128. }
  129. .spelling-highlight {
  130. position: absolute;
  131. background-image: url(/img/spellcheck-underline.png);
  132. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  133. background-image: url(/img/spellcheck-underline@2x.png);
  134. background-size: 5px 4px;
  135. }
  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. // vertically centre the "connection down" modal so it does not hide
  238. // the reconnecting indicator
  239. .modal.lock-editor-modal {
  240. display: flex !important;
  241. .modal-dialog {
  242. margin: auto;
  243. }
  244. }
  245. .sl_references_search_hint-varDefault {
  246. position: absolute;
  247. bottom: -22px;
  248. left: -1px;
  249. right: 0px;
  250. text-align: center;
  251. padding: 2px;
  252. background: rgb(202, 214, 250);
  253. border: 1px solid lightgray;
  254. box-shadow: 3px 3px 5px rgba(0,0,0,.2);
  255. span {
  256. color: black;
  257. }
  258. }
  259. .sl_references_search_hint-varButton {
  260. position: absolute;
  261. bottom: -65px;
  262. left: -1px;
  263. right: 0px;
  264. padding: 0 6px 6px;
  265. text-align: center;
  266. background: #fbfbfb;
  267. color: #FFF;
  268. box-shadow: 3px 3px 5px rgba(0,0,0,.2);
  269. border-left: 1px solid lightgray;
  270. font-family: @font-family-sans-serif;
  271. font-size: 13px;
  272. font-weight: 600;
  273. hr {
  274. margin: 6px -6px;
  275. }
  276. button {
  277. width: 100%;
  278. font-size: inherit;
  279. line-height: 1.4;
  280. }
  281. span {
  282. padding-left: 10px;
  283. }
  284. kbd {
  285. display: block;
  286. font-family: inherit;
  287. font-size: 12px;
  288. font-weight: normal;
  289. }
  290. }
  291. // -- References Search Modal --
  292. .references-search-modal-backdrop {
  293. // don't grey out the editor when the
  294. // modal is active
  295. background-color: transparent;
  296. }
  297. .references-search-modal {
  298. // upgrade prompt
  299. .references-search-upgrade-prompt {
  300. padding: 24px;
  301. padding-bottom: 48px;
  302. .upgrade-prompt {
  303. text-align: center;
  304. width: 400px;
  305. padding-top: 14px;
  306. padding-bottom: 14px;
  307. padding-left: 38px;
  308. padding-right: 38px;
  309. margin: auto;
  310. background: white;
  311. opacity: 0.95;
  312. border-radius: 8px;
  313. .message {
  314. margin-top: 15px;
  315. &.call-to-action {
  316. font-weight: bold;
  317. }
  318. ul.list-unstyled {
  319. text-align: left;
  320. }
  321. }
  322. a.btn {
  323. opacity: 1.0;
  324. }
  325. }
  326. }
  327. .search-form {
  328. // position the spinner inside the input element
  329. i.fa-spinner {
  330. margin-top: -30px;
  331. }
  332. }
  333. .alert-danger {
  334. margin-top: 12px;
  335. margin-bottom: 0px;
  336. }
  337. // search result items list
  338. .search-results {
  339. font-size: 12px;
  340. .no-results-message {
  341. font-size: 16px;
  342. }
  343. .search-result-hit {
  344. &:hover {
  345. cursor: pointer;
  346. }
  347. border-bottom: 1px solid #ddd;
  348. padding: 8px;
  349. &:last-child {
  350. border-bottom: 1px solid transparent;
  351. }
  352. border-left: 4px solid transparent;
  353. &.selected-search-result-hit {
  354. background-color: @red;
  355. color: white;
  356. .hit-year.small {
  357. color: white;
  358. }
  359. .hit-journal.small {
  360. color: white;
  361. }
  362. }
  363. .hit-title {
  364. font-size: 1.3em;
  365. font-style: italic;
  366. }
  367. }
  368. }
  369. }
  370. .referencesImportModal {
  371. .referencesImportPreview {
  372. margin-top: 15px;
  373. .referencesImportPreviewScroller {
  374. font-family: monospace;
  375. font-size: 0.8em;
  376. max-height: 360px;
  377. overflow: scroll;
  378. white-space: pre;
  379. padding: 8px 12px;
  380. margin-bottom: 15px;
  381. border: 1px solid @gray-lighter;
  382. background-color: @gray-lightest;
  383. }
  384. }
  385. }
  386. .teaser-title,
  387. .dropbox-teaser-title {
  388. margin-top: 0;
  389. text-align: center;
  390. }
  391. .teaser-img,
  392. .dropbox-teaser-img {
  393. .img-responsive;
  394. margin-bottom: 5px;
  395. }
  396. .teaser-video-container,
  397. .dropbox-teaser-video-container {
  398. margin-top: -@modal-inner-padding;
  399. margin-left: -@modal-inner-padding;
  400. margin-right: -@modal-inner-padding;
  401. margin-bottom: 5px;
  402. overflow: hidden;
  403. }
  404. .teaser-video,
  405. .dropbox-teaser-video {
  406. width: 100%;
  407. height: auto;
  408. border-bottom: 1px solid @modal-header-border-color;
  409. }