editor.less 3.6 KB

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