editor.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. }
  104. &:hover {
  105. a.rename {
  106. visibility: visible;
  107. }
  108. }
  109. }
  110. // The internal components of the aceEditor directive
  111. .ace-editor-wrapper {
  112. .full-size;
  113. .undo-conflict-warning {
  114. position: absolute;
  115. top: 0;
  116. right: 0;
  117. left: 0;
  118. z-index: 10;
  119. }
  120. .ace-editor-body {
  121. width: 100%;
  122. height: 100%;
  123. }
  124. .spelling-highlight {
  125. position: absolute;
  126. background-image: url(/img/spellcheck-underline.png);
  127. background-repeat: repeat-x;
  128. background-position: bottom left;
  129. }
  130. .remote-cursor {
  131. position: absolute;
  132. border-left: 2px solid transparent;
  133. .nubbin {
  134. height: 5px;
  135. width: 5px;
  136. position: absolute;
  137. left: -2px;
  138. }
  139. }
  140. .annotation-label {
  141. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  142. font-size: 0.8rem;
  143. z-index: 100;
  144. font-family: @font-family-sans-serif;
  145. color: white;
  146. font-weight: 700;
  147. white-space: nowrap;
  148. }
  149. .annotation {
  150. position: absolute;
  151. z-index: 2;
  152. }
  153. .highlights-before-label, .highlights-after-label {
  154. position: absolute;
  155. right: @line-height-computed;
  156. z-index: 1;
  157. }
  158. .highlights-before-label {
  159. top: @line-height-computed / 2;
  160. }
  161. .highlights-after-label {
  162. bottom: @line-height-computed / 2;
  163. }
  164. }
  165. .ui-layout-resizer {
  166. width: 6px;
  167. background-color: #f4f4f4;
  168. border-left: 1px solid @toolbar-border-color;
  169. border-right: 1px solid @toolbar-border-color;
  170. .ui-layout-toggler {
  171. color: #999;
  172. font-family: FontAwesome;
  173. font-style: normal;
  174. font-weight: normal;
  175. line-height: 1;
  176. -webkit-font-smoothing: antialiased;
  177. -moz-osx-font-smoothing: grayscale;
  178. font-size: 16px !important;
  179. line-height: 50px;
  180. &:hover {
  181. background-color: #ddd;
  182. color: #333;
  183. }
  184. }
  185. }
  186. .ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
  187. .ui-layout-toggler {
  188. &:before {
  189. content: "\f104"
  190. }
  191. }
  192. }
  193. .ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
  194. .ui-layout-toggler {
  195. &:before {
  196. content: "\f105"
  197. }
  198. }
  199. }
  200. .ui-layout-resizer-dragging {
  201. background-color: #ddd;
  202. }
  203. .context-menu {
  204. position: fixed;
  205. z-index: 100;
  206. }
  207. .editor-dark {
  208. color: @gray-lighter;
  209. background-color: @editor-dark-background-color;
  210. .ui-layout-resizer {
  211. background-color: darken(@editor-dark-background-color, 10%);
  212. border: none;
  213. }
  214. .btn-default {
  215. color: white;
  216. background-color: @gray;
  217. border-color: darken(@gray-dark, 10%);
  218. &:hover {
  219. background-color: darken(@gray, 5%);
  220. border-color: darken(@gray-dark, 20%);
  221. }
  222. }
  223. }
  224. .modal-alert {
  225. margin-top:10px;
  226. margin-bottom:0px;
  227. }