editor.less 8.5 KB

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