MainContent.module.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .main {
  2. flex: 1;
  3. display: flex;
  4. flex-direction: column;
  5. overflow: hidden;
  6. background: var(--bg-app);
  7. }
  8. .header {
  9. height: var(--topbar-height);
  10. padding: 0 var(--space-lg);
  11. border-bottom: 1px solid var(--border-light);
  12. display: flex;
  13. align-items: center;
  14. justify-content: space-between;
  15. background: var(--bg-surface);
  16. flex-shrink: 0;
  17. box-shadow: var(--shadow-sm);
  18. z-index: 5;
  19. }
  20. .title {
  21. font-size: 14px;
  22. font-weight: 500;
  23. color: var(--text-secondary);
  24. }
  25. .status {
  26. display: flex;
  27. align-items: center;
  28. gap: var(--space-xs);
  29. font-size: 13px;
  30. font-weight: 500;
  31. transition: all 200ms ease-in-out;
  32. }
  33. .statusDot {
  34. width: 6px;
  35. height: 6px;
  36. border-radius: var(--radius-full);
  37. transition: background-color 200ms ease-in-out;
  38. }
  39. .status.connected {
  40. color: var(--color-success);
  41. }
  42. .status.connected .statusDot {
  43. background-color: var(--color-success);
  44. box-shadow: 0 0 8px var(--color-success);
  45. }
  46. .status.disconnected {
  47. color: var(--text-tertiary);
  48. }
  49. .status.disconnected .statusDot {
  50. background-color: var(--border-medium);
  51. }
  52. .headerRight {
  53. display: flex;
  54. align-items: center;
  55. gap: var(--space-md);
  56. }
  57. .btn {
  58. display: inline-flex;
  59. align-items: center;
  60. justify-content: center;
  61. height: 32px;
  62. padding: 0 var(--space-md);
  63. border-radius: var(--radius-md);
  64. font-size: 13px;
  65. font-weight: 500;
  66. cursor: pointer;
  67. transition: all var(--transition-fast);
  68. border: 1px solid var(--border-medium);
  69. background: var(--bg-surface);
  70. color: var(--text-secondary);
  71. outline: none;
  72. }
  73. .btn:hover {
  74. background: var(--bg-surface-hover);
  75. color: var(--text-primary);
  76. border-color: var(--border-medium);
  77. }
  78. .btn:active {
  79. background: var(--border-light);
  80. }
  81. .content {
  82. flex: 1;
  83. overflow: hidden;
  84. position: relative;
  85. background: var(--bg-app);
  86. }
  87. .loading {
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. height: 100%;
  92. color: var(--text-tertiary);
  93. font-size: 14px;
  94. }
  95. .empty {
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. height: 100%;
  100. color: var(--text-tertiary);
  101. font-size: 14px;
  102. }