editor.less 2.5 KB

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