ide-react.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. }
  36. .horizontal-resize-handle {
  37. width: @ui-resizer-size !important;
  38. height: 100%;
  39. // Enable ::before and ::after pseudo-elements to position themselves correctly
  40. position: relative;
  41. background-color: @editor-resizer-bg-color;
  42. .custom-toggler {
  43. padding: 0;
  44. border-width: 0;
  45. }
  46. &.horizontal-resize-handle-enabled {
  47. &::before,
  48. &::after {
  49. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  50. // we'd have to change this SVG too
  51. 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");
  52. display: block;
  53. position: absolute;
  54. text-align: center;
  55. left: 0;
  56. width: 7px;
  57. height: 18px;
  58. }
  59. &::before {
  60. top: 25%;
  61. }
  62. &::after {
  63. top: 75%;
  64. }
  65. }
  66. &:not(.horizontal-resize-handle-enabled) {
  67. cursor: default;
  68. }
  69. .synctex-controls {
  70. left: -8px;
  71. margin: 0;
  72. // Ensure that SyncTex controls appear in front of PDF viewer controls and logs pane
  73. z-index: 12;
  74. }
  75. }
  76. .vertical-resize-handle {
  77. height: 6px;
  78. background-color: @vertical-resizable-resizer-bg;
  79. &:hover {
  80. background-color: @vertical-resizable-resizer-hover-bg;
  81. }
  82. &::after {
  83. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  84. // we'd have to change this SVG too
  85. 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");
  86. display: block;
  87. text-align: center;
  88. line-height: 0;
  89. }
  90. }
  91. .ide-react-editor-sidebar {
  92. height: 100%;
  93. background-color: @file-tree-bg;
  94. color: var(--neutral-20);
  95. }
  96. .ide-react-symbol-palette {
  97. height: 100%;
  98. background-color: @symbol-palette-bg;
  99. color: var(--neutral-20);
  100. }
  101. .ide-react-file-tree-panel {
  102. display: flex;
  103. }
  104. // Ensure an element with class "full-size", such as the binary file view, stays within the bounds of the panel
  105. .ide-react-panel {
  106. position: relative;
  107. }
  108. // Styles for placeholder elements that will eventually be replaced
  109. .ide-react-placeholder-chat {
  110. background-color: var(--editor-toolbar-bg);
  111. color: var(--neutral-20);
  112. height: 100%;
  113. }