ide-react.less 3.7 KB

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