global.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @import "tailwindcss";
  2. @import "./variables.css";
  3. @import "semi-ui.css";
  4. * {
  5. box-sizing: border-box;
  6. }
  7. html,
  8. body {
  9. margin: 0;
  10. padding: 0;
  11. height: 100%;
  12. font-family:
  13. -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
  14. "Helvetica Neue", sans-serif;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. #root {
  19. height: 100%;
  20. }
  21. .app {
  22. height: 100%;
  23. display: flex;
  24. flex-direction: column;
  25. background-color: var(--bg-app);
  26. }
  27. .app-top {
  28. flex: 0 0 auto;
  29. z-index: 20;
  30. }
  31. .app-body {
  32. flex: 1;
  33. display: flex;
  34. overflow: hidden;
  35. position: relative;
  36. }
  37. .app-main {
  38. flex: 1;
  39. min-width: 0;
  40. display: flex;
  41. flex-direction: column;
  42. position: relative;
  43. }
  44. .app-right {
  45. flex: 0 0 auto;
  46. min-width: 0;
  47. display: flex;
  48. flex-direction: column;
  49. background: var(--bg-panel);
  50. z-index: 10;
  51. }
  52. .app-splitter {
  53. width: 1px;
  54. cursor: col-resize;
  55. background-color: var(--border-light);
  56. transition: background-color 0.2s;
  57. position: relative;
  58. z-index: 20;
  59. }
  60. .app-splitter:hover,
  61. .app-splitter:active {
  62. background-color: var(--color-primary);
  63. width: 4px; /* Make it easier to grab visually */
  64. margin-left: -1.5px; /* Center alignment adjustment */
  65. margin-right: -1.5px;
  66. }
  67. .app-splitter {
  68. width: 6px;
  69. cursor: col-resize;
  70. background: linear-gradient(to right, transparent, #d0d7de, transparent);
  71. flex-shrink: 0;
  72. }
  73. .app-terminal-float {
  74. position: fixed;
  75. bottom: 20px;
  76. left: 20px;
  77. right: 20px;
  78. height: 300px;
  79. z-index: 1000;
  80. border-radius: 8px;
  81. overflow: hidden;
  82. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  83. resize: vertical;
  84. min-height: 150px;
  85. max-height: 80vh;
  86. }
  87. .app-terminal-toggle {
  88. position: fixed;
  89. bottom: 20px;
  90. right: 20px;
  91. padding: 10px 16px;
  92. background: #2d2d2d;
  93. color: #4ec9b0;
  94. border: 1px solid #3e3e3e;
  95. border-radius: 6px;
  96. cursor: pointer;
  97. font-size: 13px;
  98. font-weight: 600;
  99. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  100. transition: all 0.2s;
  101. z-index: 100;
  102. font-family: "Consolas", "Monaco", "Courier New", monospace;
  103. }
  104. .app-terminal-toggle:hover {
  105. background: #3e3e3e;
  106. transform: translateY(-2px);
  107. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  108. }