ide.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. #ide-root {
  2. height: 100vh; /* for backwards compatibility */
  3. height: 100dvh; /* needed for mobile devices */
  4. .global-alerts {
  5. position: absolute;
  6. top: 0;
  7. left: 0;
  8. right: 0;
  9. display: flex;
  10. flex-direction: column;
  11. align-items: center;
  12. }
  13. .chat {
  14. position: relative;
  15. height: 100%;
  16. }
  17. .review-panel-wrapper {
  18. &.rp-state-overview {
  19. position: sticky;
  20. top: 0;
  21. height: 100%;
  22. }
  23. }
  24. }
  25. .ide-react-editor-sidebar {
  26. background-color: var(--file-tree-bg);
  27. height: 100%;
  28. color: var(--content-secondary-dark);
  29. }
  30. .ide-react-body {
  31. flex-grow: 1;
  32. background-color: var(--bg-light-secondary);
  33. overflow-y: hidden;
  34. z-index: 0;
  35. }
  36. .ide-react-main {
  37. height: 100%;
  38. display: flex;
  39. flex-direction: column;
  40. .toolbar.toolbar-header {
  41. position: static;
  42. flex-grow: 0;
  43. color: var(--neutral-20);
  44. }
  45. }
  46. .ide-react-symbol-palette {
  47. height: 100%;
  48. background-color: var(--bg-dark-tertiary);
  49. color: var(--neutral-20);
  50. }
  51. .ide-react-file-tree-panel {
  52. display: flex;
  53. flex-direction: column;
  54. // Prevent the file tree expanding beyond the boundary of the panel
  55. .file-tree {
  56. width: 100%;
  57. }
  58. }
  59. .ide-react-editor-panel {
  60. display: flex;
  61. flex-direction: column;
  62. }
  63. // Ensure an element with class "full-size", such as the binary file view, stays within the bounds of the panel
  64. .ide-react-panel {
  65. position: relative;
  66. container-type: size;
  67. }
  68. .ide-panel-group-resizing {
  69. background-color: var(--white);
  70. // Hide panel contents while resizing
  71. .ide-react-editor-content,
  72. .pdf {
  73. display: none !important;
  74. }
  75. }
  76. .horizontal-resize-handle {
  77. width: 7px !important;
  78. height: 100%;
  79. // Enable ::before and ::after pseudo-elements to position themselves correctly
  80. position: relative;
  81. background-color: var(--bg-dark-secondary);
  82. .custom-toggler {
  83. padding: 0;
  84. border-width: 0;
  85. }
  86. &.horizontal-resize-handle-enabled {
  87. &::before,
  88. &::after {
  89. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  90. // we'd have to change this SVG too
  91. content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='18' viewBox='0 0 7 18'%3E%3Cpath d='M2 0h3v3H2zM2 5h3v3H2zM2 10h3v3H2zM2 15h3v3H2z' style='fill:%239da7b7'/%3E%3C/svg%3E");
  92. display: block;
  93. position: absolute;
  94. text-align: center;
  95. left: 0;
  96. width: 7px;
  97. height: 18px;
  98. }
  99. &::before {
  100. top: 25%;
  101. }
  102. &::after {
  103. top: 75%;
  104. }
  105. }
  106. &:not(.horizontal-resize-handle-enabled) {
  107. cursor: default;
  108. }
  109. .synctex-controls {
  110. left: -8px;
  111. margin: 0;
  112. // Ensure that SyncTex controls appear in front of PDF viewer controls and logs pane
  113. z-index: 12;
  114. }
  115. }
  116. .vertical-resize-handle {
  117. height: 6px;
  118. background-color: var(--bg-dark-secondary);
  119. &.vertical-resize-handle-enabled {
  120. &:hover {
  121. background-color: var(--bg-dark-primary);
  122. }
  123. }
  124. &:not(.vertical-resize-handle-enabled) {
  125. opacity: 0.5;
  126. cursor: default;
  127. }
  128. &::after {
  129. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  130. // we'd have to change this SVG too
  131. content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='6' viewBox='0 0 18 6'%3E%3Cpath d='M0 1.5h3v3H0zM5 1.5h3v3H5zM10 1.5h3v3h-3zM15 1.5h3v3h-3z' style='fill:%239da7b7'/%3E%3C/svg%3E");
  132. display: block;
  133. text-align: center;
  134. line-height: 0;
  135. }
  136. }
  137. .vertical-resizable-resizer {
  138. background-color: var(--bg-dark-secondary);
  139. &:hover {
  140. background-color: var(--bg-dark-primary);
  141. }
  142. &::after {
  143. @include heading-sm;
  144. content: '\00b7\00b7\00b7\00b7';
  145. display: block;
  146. color: var(--content-disabled);
  147. text-align: center;
  148. pointer-events: none;
  149. }
  150. }
  151. .vertical-resizable-resizer-disabled {
  152. pointer-events: none;
  153. opacity: 0.5;
  154. &::after {
  155. opacity: 0.5;
  156. }
  157. }
  158. .full-size {
  159. position: absolute;
  160. inset: 0;
  161. }