page2.css 2.6 KB

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