ide-react.less 3.3 KB

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