editor.less 7.2 KB

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