editor.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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/share.less";
  7. @import "./editor/chat.less";
  8. @import "./editor/binary-file.less";
  9. @import "./editor/search.less";
  10. @import "./editor/publish-template.less";
  11. @import "./editor/online-users.less";
  12. @import "./editor/hotkeys.less";
  13. .full-size {
  14. position: absolute;
  15. top: 0;
  16. bottom: 0;
  17. left: 0;
  18. right: 0;
  19. }
  20. .global-alerts {
  21. position: absolute;
  22. z-index: 20;
  23. top: 2px;
  24. width: 400px;
  25. left: 50%;
  26. margin-left: -200px;
  27. .alert {
  28. padding: (@line-height-computed / 4);
  29. font-size: 14px;
  30. margin-bottom: (@line-height-computed / 4);
  31. }
  32. }
  33. #chat-wrapper {
  34. .full-size;
  35. > .ui-layout-resizer > .ui-layout-toggler {
  36. display: none !important;
  37. }
  38. }
  39. #ide-body {
  40. .full-size;
  41. top: 40px;
  42. }
  43. #editor {
  44. .full-size;
  45. }
  46. .loading-screen {
  47. h3 {
  48. padding-top: 136px;
  49. background-image: url(/img/lion-128.png);
  50. background-repeat: no-repeat;
  51. background-position: top center;
  52. }
  53. .full-size;
  54. background-color: #fafafa;
  55. .container {
  56. text-align: center;
  57. position: absolute;
  58. top: 50%;
  59. left: 50%;
  60. width: 400px;
  61. margin-left: -200px;
  62. margin-top: -200px;
  63. }
  64. }
  65. .loading-panel {
  66. .full-size;
  67. padding-top: 10rem;
  68. font-family: @font-family-serif;
  69. text-align: center;
  70. background-color: #fafafa;
  71. }
  72. .error-panel {
  73. .full-size;
  74. padding: @line-height-computed;
  75. background-color: #fafafa;
  76. .alert {
  77. max-width: 400px;
  78. margin: auto;
  79. }
  80. }
  81. .project-name {
  82. .name {
  83. display: inline-block;
  84. max-width: 250px;
  85. overflow: hidden;
  86. text-overflow: ellipsis;
  87. vertical-align: top;
  88. padding: 6px;
  89. color: @gray;
  90. font-weight: 700;
  91. white-space: nowrap;
  92. }
  93. input {
  94. height: 30px;
  95. margin-top: 4px;
  96. text-align: center;
  97. padding: 6px;
  98. font-weight: 700;
  99. }
  100. a.rename {
  101. visibility: hidden;
  102. }
  103. &:hover {
  104. a.rename {
  105. visibility: visible;
  106. }
  107. }
  108. }
  109. // The internal components of the aceEditor directive
  110. .ace-editor-wrapper {
  111. .full-size;
  112. .undo-conflict-warning {
  113. position: absolute;
  114. top: 0;
  115. right: 0;
  116. left: 0;
  117. z-index: 10;
  118. }
  119. .ace-editor-body {
  120. width: 100%;
  121. height: 100%;
  122. }
  123. .spelling-highlight {
  124. position: absolute;
  125. background-image: url(/img/spellcheck-underline.png);
  126. background-repeat: repeat-x;
  127. background-position: bottom left;
  128. }
  129. .remote-cursor {
  130. position: absolute;
  131. border-left: 2px solid transparent;
  132. .nubbin {
  133. height: 5px;
  134. width: 5px;
  135. position: absolute;
  136. left: -2px;
  137. }
  138. }
  139. .annotation-label {
  140. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  141. font-size: 0.8rem;
  142. z-index: 100;
  143. font-family: @font-family-sans-serif;
  144. color: white;
  145. font-weight: 700;
  146. white-space: nowrap;
  147. }
  148. .annotation {
  149. position: absolute;
  150. z-index: 2;
  151. }
  152. .highlights-before-label {
  153. position: absolute;
  154. top: @line-height-computed / 2;
  155. right: @line-height-computed;
  156. }
  157. .highlights-after-label {
  158. position: absolute;
  159. bottom: @line-height-computed / 2;
  160. right: @line-height-computed;
  161. }
  162. }
  163. .ui-layout-resizer {
  164. width: 6px;
  165. background-color: #f4f4f4;
  166. border-left: 1px solid @toolbar-border-color;
  167. border-right: 1px solid @toolbar-border-color;
  168. .ui-layout-toggler {
  169. color: #999;
  170. font-family: FontAwesome;
  171. font-style: normal;
  172. font-weight: normal;
  173. line-height: 1;
  174. -webkit-font-smoothing: antialiased;
  175. -moz-osx-font-smoothing: grayscale;
  176. font-size: 16px !important;
  177. line-height: 50px;
  178. &:hover {
  179. background-color: #ddd;
  180. color: #333;
  181. }
  182. }
  183. }
  184. .ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
  185. .ui-layout-toggler {
  186. &:before {
  187. content: "\f104"
  188. }
  189. }
  190. }
  191. .ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
  192. .ui-layout-toggler {
  193. &:before {
  194. content: "\f105"
  195. }
  196. }
  197. }
  198. .ui-layout-resizer-dragging {
  199. background-color: #ddd;
  200. }
  201. .context-menu {
  202. position: fixed;
  203. z-index: 100;
  204. }
  205. .editor-dark {
  206. color: @gray-lighter;
  207. background-color: @editor-dark-background-color;
  208. .ui-layout-resizer {
  209. background-color: darken(@editor-dark-background-color, 10%);
  210. border: none;
  211. }
  212. .btn-default {
  213. color: white;
  214. background-color: @gray;
  215. border-color: darken(@gray-dark, 10%);
  216. &:hover {
  217. background-color: darken(@gray, 5%);
  218. border-color: darken(@gray-dark, 20%);
  219. }
  220. }
  221. }