ide-react.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #ide-root {
  2. height: 100vh;
  3. .global-alerts {
  4. position: absolute;
  5. top: 0;
  6. left: 0;
  7. right: 0;
  8. }
  9. }
  10. .ide-react-main {
  11. height: 100%;
  12. display: flex;
  13. flex-direction: column;
  14. .toolbar.toolbar-header {
  15. position: static;
  16. flex-grow: 0;
  17. color: var(--neutral-20);
  18. }
  19. }
  20. .ide-react-body {
  21. flex-grow: 1;
  22. }
  23. .horizontal-resize-handle {
  24. width: @ui-resizer-size !important;
  25. height: 100%;
  26. // Enable ::before and ::after pseudo-elements to position themselves correctly
  27. position: relative;
  28. background-color: @editor-resizer-bg-color;
  29. .custom-toggler {
  30. padding: 0;
  31. border-width: 0;
  32. }
  33. &::before,
  34. &::after {
  35. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  36. // we'd have to change this SVG too
  37. 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");
  38. display: block;
  39. position: absolute;
  40. text-align: center;
  41. left: 0;
  42. width: 7px;
  43. height: 18px;
  44. }
  45. &::before {
  46. top: 25%;
  47. }
  48. &::after {
  49. top: 75%;
  50. }
  51. }
  52. .vertical-resize-handle {
  53. height: 6px;
  54. background-color: @vertical-resizable-resizer-bg;
  55. &:hover {
  56. background-color: @vertical-resizable-resizer-hover-bg;
  57. }
  58. &::after {
  59. // This SVG has the colour hard-coded to the current value of @ol-blue-gray-2, so if we changed @ol-blue-gray-2,
  60. // we'd have to change this SVG too
  61. 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");
  62. display: block;
  63. text-align: center;
  64. line-height: 0;
  65. }
  66. }
  67. // Styles for placeholder elements that will eventually be replaced
  68. .ide-react-placeholder-chat {
  69. background-color: var(--editor-toolbar-bg);
  70. color: var(--neutral-20);
  71. height: 100%;
  72. }
  73. .ide-react-placeholder-editor-sidebar {
  74. height: 100%;
  75. background-color: @file-tree-bg;
  76. color: var(--neutral-20);
  77. }
  78. .ide-react-placeholder-symbol-palette {
  79. height: 100%;
  80. background-color: @symbol-palette-bg;
  81. color: var(--neutral-20);
  82. }
  83. .ide-react-file-tree-panel {
  84. display: flex;
  85. }