editor.less 8.5 KB

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