editor.less 7.9 KB

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