editor.less 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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. right: @review-off-width;
  43. }
  44. .loading-screen {
  45. h3 {
  46. padding-top: 136px;
  47. background-image: url(/img/lion-128.png);
  48. background-repeat: no-repeat;
  49. background-position: top center;
  50. }
  51. .full-size;
  52. background-color: #fafafa;
  53. .container {
  54. text-align: center;
  55. position: absolute;
  56. top: 50%;
  57. left: 50%;
  58. width: 400px;
  59. margin-left: -200px;
  60. margin-top: -200px;
  61. }
  62. }
  63. .loading-panel {
  64. .full-size;
  65. padding-top: 10rem;
  66. font-family: @font-family-serif;
  67. text-align: center;
  68. background-color: #fafafa;
  69. }
  70. .error-panel {
  71. .full-size;
  72. padding: @line-height-computed;
  73. background-color: #fafafa;
  74. .alert {
  75. max-width: 400px;
  76. margin: auto;
  77. }
  78. }
  79. .project-name {
  80. .name {
  81. display: inline-block;
  82. max-width: 250px;
  83. overflow: hidden;
  84. text-overflow: ellipsis;
  85. vertical-align: top;
  86. padding: 6px;
  87. color: @gray;
  88. font-weight: 700;
  89. white-space: nowrap;
  90. }
  91. input {
  92. height: 30px;
  93. margin-top: 4px;
  94. text-align: center;
  95. padding: 6px;
  96. font-weight: 700;
  97. }
  98. a.rename {
  99. visibility: hidden;
  100. display: inline-block;
  101. color: @gray-light;
  102. padding: 5px;
  103. border-radius: @border-radius-small;
  104. &:hover {
  105. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  106. color: @gray-dark;
  107. text-decoration: none;
  108. }
  109. }
  110. &:hover {
  111. a.rename {
  112. visibility: visible;
  113. }
  114. }
  115. }
  116. // The internal components of the aceEditor directive
  117. .ace-editor-wrapper {
  118. .full-size;
  119. .undo-conflict-warning {
  120. position: absolute;
  121. top: 0;
  122. right: 0;
  123. left: 0;
  124. z-index: 10;
  125. }
  126. .ace-editor-body {
  127. width: 100%;
  128. height: 100%;
  129. }
  130. .spelling-highlight {
  131. position: absolute;
  132. background-image: url(/img/spellcheck-underline.png);
  133. background-repeat: repeat-x;
  134. background-position: bottom left;
  135. }
  136. .track-changes-added-marker {
  137. border-radius: 0;
  138. position: absolute;
  139. background-color: hsl(100, 70%, 85%);
  140. }
  141. .track-changes-added-marker-callout {
  142. border-radius: 0;
  143. position: absolute;
  144. border-bottom: 1px dashed green;
  145. }
  146. .track-changes-comment-marker {
  147. border-radius: 0;
  148. position: absolute;
  149. background-color: #fde5b7;
  150. }
  151. .track-changes-comment-marker-callout {
  152. border-radius: 0;
  153. position: absolute;
  154. border-bottom: 1px dashed orange;
  155. }
  156. .track-changes-deleted-marker {
  157. border-radius: 0;
  158. position: absolute;
  159. border-left: 2px dotted red;
  160. margin-left: -1px;
  161. }
  162. .track-changes-deleted-marker-callout {
  163. border-radius: 0;
  164. position: absolute;
  165. border-bottom: 1px dashed red;
  166. }
  167. .remote-cursor {
  168. position: absolute;
  169. border-left: 2px solid transparent;
  170. .nubbin {
  171. height: 5px;
  172. width: 5px;
  173. position: absolute;
  174. left: -2px;
  175. }
  176. }
  177. .annotation-label {
  178. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  179. font-size: 0.8rem;
  180. z-index: 100;
  181. font-family: @font-family-sans-serif;
  182. color: white;
  183. font-weight: 700;
  184. white-space: nowrap;
  185. }
  186. .annotation {
  187. position: absolute;
  188. z-index: 2;
  189. }
  190. .highlights-before-label, .highlights-after-label {
  191. position: absolute;
  192. right: @line-height-computed;
  193. z-index: 1;
  194. }
  195. .highlights-before-label {
  196. top: @line-height-computed / 2;
  197. }
  198. .highlights-after-label {
  199. bottom: @line-height-computed / 2;
  200. }
  201. }
  202. .ui-layout-resizer {
  203. width: 6px;
  204. background-color: #f4f4f4;
  205. border-left: 1px solid @toolbar-border-color;
  206. border-right: 1px solid @toolbar-border-color;
  207. .ui-layout-toggler {
  208. color: #999;
  209. font-family: FontAwesome;
  210. font-style: normal;
  211. font-weight: normal;
  212. line-height: 1;
  213. -webkit-font-smoothing: antialiased;
  214. -moz-osx-font-smoothing: grayscale;
  215. font-size: 16px !important;
  216. line-height: 50px;
  217. &:hover {
  218. background-color: #ddd;
  219. color: #333;
  220. }
  221. }
  222. }
  223. .ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
  224. .ui-layout-toggler {
  225. &:before {
  226. content: "\f104"
  227. }
  228. }
  229. }
  230. .ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
  231. .ui-layout-toggler {
  232. &:before {
  233. content: "\f105"
  234. }
  235. }
  236. }
  237. .ui-layout-resizer-dragging {
  238. background-color: #ddd;
  239. }
  240. .context-menu {
  241. position: fixed;
  242. z-index: 100;
  243. }
  244. .editor-dark {
  245. color: @gray-lighter;
  246. background-color: @editor-dark-background-color;
  247. .ui-layout-resizer {
  248. background-color: darken(@editor-dark-background-color, 10%);
  249. border: none;
  250. }
  251. .btn-default {
  252. color: white;
  253. background-color: @gray;
  254. border-color: darken(@gray-dark, 10%);
  255. &:hover {
  256. background-color: darken(@gray, 5%);
  257. border-color: darken(@gray-dark, 20%);
  258. }
  259. }
  260. }
  261. .modal-alert {
  262. margin-top:10px;
  263. margin-bottom:0px;
  264. }
  265. // vertically centre the "connection down" modal so it does not hide
  266. // the reconnecting indicator
  267. .modal.lock-editor-modal {
  268. display: flex !important;
  269. .modal-dialog {
  270. margin: auto;
  271. }
  272. }
  273. .sl_references_search_hint-varDefault {
  274. position: absolute;
  275. bottom: -22px;
  276. left: -1px;
  277. right: 0px;
  278. text-align: center;
  279. padding: 2px;
  280. background: rgb(202, 214, 250);
  281. border: 1px solid lightgray;
  282. box-shadow: 3px 3px 5px rgba(0,0,0,.2);
  283. span {
  284. color: black;
  285. }
  286. }
  287. .sl_references_search_hint-varButton {
  288. position: absolute;
  289. bottom: -65px;
  290. left: -1px;
  291. right: 0px;
  292. padding: 0 6px 6px;
  293. text-align: center;
  294. background: #fbfbfb;
  295. color: #FFF;
  296. box-shadow: 3px 3px 5px rgba(0,0,0,.2);
  297. border-left: 1px solid lightgray;
  298. font-family: @font-family-sans-serif;
  299. font-size: 13px;
  300. font-weight: 600;
  301. hr {
  302. margin: 6px -6px;
  303. }
  304. button {
  305. width: 100%;
  306. font-size: inherit;
  307. line-height: 1.4;
  308. }
  309. span {
  310. padding-left: 10px;
  311. }
  312. kbd {
  313. display: block;
  314. font-family: inherit;
  315. font-size: 12px;
  316. font-weight: normal;
  317. }
  318. }
  319. // -- References Search Modal --
  320. .references-search-modal-backdrop {
  321. // don't grey out the editor when the
  322. // modal is active
  323. background-color: transparent;
  324. }
  325. .references-search-modal {
  326. // upgrade prompt
  327. .references-search-upgrade-prompt {
  328. padding: 24px;
  329. padding-bottom: 48px;
  330. .upgrade-prompt {
  331. text-align: center;
  332. width: 400px;
  333. padding-top: 14px;
  334. padding-bottom: 14px;
  335. padding-left: 38px;
  336. padding-right: 38px;
  337. margin: auto;
  338. background: white;
  339. opacity: 0.95;
  340. border-radius: 8px;
  341. .message {
  342. margin-top: 15px;
  343. &.call-to-action {
  344. font-weight: bold;
  345. }
  346. ul.list-unstyled {
  347. text-align: left;
  348. }
  349. }
  350. a.btn {
  351. opacity: 1.0;
  352. }
  353. }
  354. }
  355. .search-form {
  356. // position the spinner inside the input element
  357. i.fa-spinner {
  358. margin-top: -30px;
  359. }
  360. }
  361. .alert-danger {
  362. margin-top: 12px;
  363. margin-bottom: 0px;
  364. }
  365. // search result items list
  366. .search-results {
  367. font-size: 12px;
  368. .no-results-message {
  369. font-size: 16px;
  370. }
  371. .search-result-hit {
  372. &:hover {
  373. cursor: pointer;
  374. }
  375. border-bottom: 1px solid #ddd;
  376. padding: 8px;
  377. &:last-child {
  378. border-bottom: 1px solid transparent;
  379. }
  380. border-left: 4px solid transparent;
  381. &.selected-search-result-hit {
  382. background-color: @red;
  383. color: white;
  384. .hit-year.small {
  385. color: white;
  386. }
  387. .hit-journal.small {
  388. color: white;
  389. }
  390. }
  391. .hit-title {
  392. font-size: 1.3em;
  393. font-style: italic;
  394. }
  395. }
  396. }
  397. }
  398. .referencesImportModal {
  399. .referencesImportPreview {
  400. margin-top: 15px;
  401. .referencesImportPreviewScroller {
  402. font-family: monospace;
  403. font-size: 0.8em;
  404. max-height: 360px;
  405. overflow: scroll;
  406. white-space: pre;
  407. padding: 8px 12px;
  408. margin-bottom: 15px;
  409. border: 1px solid @gray-lighter;
  410. background-color: @gray-lightest;
  411. }
  412. }
  413. }
  414. .teaser-title,
  415. .dropbox-teaser-title {
  416. margin-top: 0;
  417. text-align: center;
  418. }
  419. .teaser-img,
  420. .dropbox-teaser-img {
  421. .img-responsive;
  422. margin-bottom: 5px;
  423. }
  424. .teaser-video-container,
  425. .dropbox-teaser-video-container {
  426. margin-top: -@modal-inner-padding;
  427. margin-left: -@modal-inner-padding;
  428. margin-right: -@modal-inner-padding;
  429. margin-bottom: 5px;
  430. overflow: hidden;
  431. }
  432. .teaser-video,
  433. .dropbox-teaser-video {
  434. width: 100%;
  435. height: auto;
  436. border-bottom: 1px solid @modal-header-border-color;
  437. }