ide-react.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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-main {
  26. height: 100%;
  27. display: flex;
  28. flex-direction: column;
  29. .toolbar.toolbar-header {
  30. position: static;
  31. flex-grow: 0;
  32. color: var(--neutral-20);
  33. }
  34. }
  35. .ide-react-body {
  36. flex-grow: 1;
  37. background-color: @pdf-bg;
  38. overflow-y: hidden;
  39. z-index: 0;
  40. }
  41. .horizontal-resize-handle {
  42. width: @ui-resizer-size !important;
  43. height: 100%;
  44. // Enable ::before and ::after pseudo-elements to position themselves correctly
  45. position: relative;
  46. background-color: @editor-resizer-bg-color;
  47. .custom-toggler {
  48. padding: 0;
  49. border-width: 0;
  50. }
  51. &.horizontal-resize-handle-enabled {
  52. &::before,
  53. &::after {
  54. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  55. // we'd have to change this SVG too
  56. 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");
  57. display: block;
  58. position: absolute;
  59. text-align: center;
  60. left: 0;
  61. width: 7px;
  62. height: 18px;
  63. }
  64. &::before {
  65. top: 25%;
  66. }
  67. &::after {
  68. top: 75%;
  69. }
  70. }
  71. &:not(.horizontal-resize-handle-enabled) {
  72. cursor: default;
  73. }
  74. .synctex-controls {
  75. left: -8px;
  76. margin: 0;
  77. // Ensure that SyncTex controls appear in front of PDF viewer controls and logs pane
  78. z-index: 12;
  79. }
  80. }
  81. .vertical-resize-handle {
  82. height: 6px;
  83. background-color: @vertical-resizable-resizer-bg;
  84. &.vertical-resize-handle-enabled {
  85. &:hover {
  86. background-color: @vertical-resizable-resizer-hover-bg;
  87. }
  88. }
  89. &:not(.vertical-resize-handle-enabled) {
  90. opacity: 0.5;
  91. cursor: default;
  92. }
  93. &::after {
  94. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  95. // we'd have to change this SVG too
  96. 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");
  97. display: block;
  98. text-align: center;
  99. line-height: 0;
  100. }
  101. }
  102. .ide-react-editor-sidebar {
  103. height: 100%;
  104. background-color: @file-tree-bg;
  105. color: var(--neutral-20);
  106. }
  107. .ide-react-symbol-palette {
  108. height: 100%;
  109. background-color: @symbol-palette-bg;
  110. color: var(--neutral-20);
  111. }
  112. .ide-react-file-tree-panel {
  113. display: flex;
  114. flex-direction: column;
  115. // Prevent the file tree expanding beyond the boundary of the panel
  116. .file-tree {
  117. width: 100%;
  118. }
  119. }
  120. .ide-react-editor-panel {
  121. display: flex;
  122. flex-direction: column;
  123. }
  124. // Ensure an element with class "full-size", such as the binary file view, stays within the bounds of the panel
  125. .ide-react-panel {
  126. position: relative;
  127. container-type: size;
  128. }
  129. // Styles for placeholder elements that will eventually be replaced
  130. .ide-react-placeholder-chat {
  131. background-color: var(--editor-toolbar-bg);
  132. color: var(--neutral-20);
  133. height: 100%;
  134. }
  135. .ide-panel-group-resizing {
  136. background-color: white;
  137. // Hide panel contents while resizing
  138. .ide-react-editor-content,
  139. .pdf {
  140. display: none !important;
  141. }
  142. }