editor.less 2.5 KB

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