editor.less 3.2 KB

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