editor.less 3.7 KB

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