ide-react.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-wrapper {
  14. &.rp-state-overview {
  15. position: sticky;
  16. top: 0;
  17. height: 100%;
  18. }
  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. &.vertical-resize-handle-enabled {
  81. &:hover {
  82. background-color: @vertical-resizable-resizer-hover-bg;
  83. }
  84. }
  85. &:not(.vertical-resize-handle-enabled) {
  86. opacity: 0.5;
  87. cursor: default;
  88. }
  89. &::after {
  90. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  91. // we'd have to change this SVG too
  92. 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");
  93. display: block;
  94. text-align: center;
  95. line-height: 0;
  96. }
  97. }
  98. .ide-react-editor-sidebar {
  99. height: 100%;
  100. background-color: @file-tree-bg;
  101. color: var(--neutral-20);
  102. }
  103. .ide-react-symbol-palette {
  104. height: 100%;
  105. background-color: @symbol-palette-bg;
  106. color: var(--neutral-20);
  107. }
  108. .ide-react-file-tree-panel {
  109. display: flex;
  110. flex-direction: column;
  111. // Prevent the file tree expanding beyond the boundary of the panel
  112. .file-tree {
  113. width: 100%;
  114. }
  115. }
  116. .ide-react-editor-panel {
  117. display: flex;
  118. flex-direction: column;
  119. }
  120. // Ensure an element with class "full-size", such as the binary file view, stays within the bounds of the panel
  121. .ide-react-panel {
  122. position: relative;
  123. }
  124. // Styles for placeholder elements that will eventually be replaced
  125. .ide-react-placeholder-chat {
  126. background-color: var(--editor-toolbar-bg);
  127. color: var(--neutral-20);
  128. height: 100%;
  129. }
  130. .ide-panel-group-resizing {
  131. background-color: white;
  132. // Hide panel contents while resizing
  133. .ide-react-editor-content,
  134. .pdf {
  135. display: none !important;
  136. }
  137. }