editor.less 7.8 KB

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