page2.css 2.6 KB

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