ide-react.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. }
  34. .horizontal-resize-handle {
  35. width: @ui-resizer-size !important;
  36. height: 100%;
  37. // Enable ::before and ::after pseudo-elements to position themselves correctly
  38. position: relative;
  39. background-color: @editor-resizer-bg-color;
  40. .custom-toggler {
  41. padding: 0;
  42. border-width: 0;
  43. }
  44. &::before,
  45. &::after {
  46. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  47. // we'd have to change this SVG too
  48. 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");
  49. display: block;
  50. position: absolute;
  51. text-align: center;
  52. left: 0;
  53. width: 7px;
  54. height: 18px;
  55. }
  56. &::before {
  57. top: 25%;
  58. }
  59. &::after {
  60. top: 75%;
  61. }
  62. }
  63. .vertical-resize-handle {
  64. height: 6px;
  65. background-color: @vertical-resizable-resizer-bg;
  66. &:hover {
  67. background-color: @vertical-resizable-resizer-hover-bg;
  68. }
  69. &::after {
  70. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  71. // we'd have to change this SVG too
  72. 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");
  73. display: block;
  74. text-align: center;
  75. line-height: 0;
  76. }
  77. }
  78. // Styles for placeholder elements that will eventually be replaced
  79. .ide-react-placeholder-chat {
  80. background-color: var(--editor-toolbar-bg);
  81. color: var(--neutral-20);
  82. height: 100%;
  83. }
  84. .ide-react-placeholder-editor-sidebar {
  85. height: 100%;
  86. background-color: @file-tree-bg;
  87. color: var(--neutral-20);
  88. }
  89. .ide-react-placeholder-symbol-palette {
  90. height: 100%;
  91. background-color: @symbol-palette-bg;
  92. color: var(--neutral-20);
  93. }
  94. .ide-react-file-tree-panel {
  95. display: flex;
  96. }