page2.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /* 页面整体布局 */
  2. .page-network {
  3. display: flex;
  4. flex-direction: column;
  5. gap: 15px;
  6. height: 100%;
  7. overflow: hidden;
  8. }
  9. /* 顶部的状态栏 */
  10. .status-bar {
  11. display: flex;
  12. gap: 24px;
  13. padding: 12px 16px;
  14. background: transparent;
  15. border: none;
  16. border-radius: 0;
  17. flex-shrink: 0;
  18. }
  19. .status-item {
  20. display: flex;
  21. flex-direction: column;
  22. gap: 4px;
  23. }
  24. .status-item .label {
  25. font-size: 11px;
  26. color: #94a3b8;
  27. }
  28. .status-item .value {
  29. font-size: 13px;
  30. color: #e5e7eb;
  31. font-family: ui-monospace, monospace;
  32. }
  33. /* 左右拆分的栏 */
  34. .panes {
  35. display: flex;
  36. gap: 15px;
  37. flex: 1;
  38. min-height: 0;
  39. overflow: hidden;
  40. }
  41. /* 展示网络信息 */
  42. .left-pane {
  43. flex: 1;
  44. display: flex;
  45. flex-direction: column;
  46. gap: 15px;
  47. overflow: hidden;
  48. min-width: 0;
  49. }
  50. .left-pane .card {
  51. flex: 1;
  52. display: flex;
  53. flex-direction: column;
  54. min-height: 0;
  55. overflow: hidden;
  56. }
  57. .left-pane .output {
  58. flex: 1;
  59. overflow: auto;
  60. max-height: none;
  61. }
  62. /* 展示服务日志 */
  63. .right-pane {
  64. flex: 1;
  65. display: flex;
  66. flex-direction: column;
  67. min-width: 0;
  68. overflow: hidden;
  69. }
  70. .log-card {
  71. height: 100%;
  72. display: flex;
  73. flex-direction: column;
  74. }
  75. .log-card .output {
  76. flex: 1;
  77. display: flex;
  78. flex-direction: column;
  79. height: auto;
  80. }
  81. .log-actions {
  82. display: flex;
  83. align-items: center;
  84. gap: 8px;
  85. }
  86. .log-level-select {
  87. background: #0f172a;
  88. border: 1px solid rgba(148, 163, 184, 0.25);
  89. border-radius: 6px;
  90. color: #e5e7eb;
  91. font-size: 12px;
  92. padding: 6px 8px;
  93. height: 30px;
  94. min-width: 80px;
  95. cursor: pointer;
  96. outline: none;
  97. -webkit-appearance: none;
  98. appearance: none;
  99. }
  100. .log-level-select:hover {
  101. border-color: rgba(148, 163, 184, 0.45);
  102. }
  103. .log-level-select:focus {
  104. border-color: #3b82f6;
  105. }
  106. /* 卡片基础样式 */
  107. .card {
  108. background: #0f172a;
  109. border: 1px solid #1f2937;
  110. border-radius: 8px;
  111. padding: 15px;
  112. }
  113. .card-header {
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. margin-bottom: 12px;
  118. }
  119. .card-header h2 {
  120. font-size: 14px;
  121. font-weight: 500;
  122. color: #e2e8f0;
  123. margin: 0;
  124. }
  125. /* 输出日志区域 */
  126. .output {
  127. background: #020617;
  128. border: 1px solid #1f2937;
  129. border-radius: 6px;
  130. padding: 10px;
  131. font-size: 12px;
  132. font-family: ui-monospace, monospace;
  133. color: #cbd5e1;
  134. max-height: 200px;
  135. overflow: auto;
  136. white-space: pre-wrap;
  137. line-height: 1.6;
  138. }
  139. /* 取消高度限制 */
  140. .right-pane .log-output {
  141. max-height: none;
  142. }