ide-react.less 2.2 KB

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