editor.less 9.2 KB

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