editor.less 3.7 KB

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