page7.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .page-health-check {
  2. display: flex;
  3. flex-direction: column;
  4. gap: 12px;
  5. overflow: hidden;
  6. }
  7. .page-health-check .check-actions {
  8. display: flex;
  9. gap: 8px;
  10. flex-shrink: 0;
  11. }
  12. .page-health-check .check-table {
  13. flex: 1;
  14. min-height: 0;
  15. display: flex;
  16. flex-direction: column;
  17. overflow: auto;
  18. border: 1px solid rgba(148, 163, 184, 0.15);
  19. border-radius: 6px;
  20. }
  21. .page-health-check .check-row {
  22. display: grid;
  23. grid-template-columns: 1fr 1fr 1fr 2fr;
  24. min-height: 42px;
  25. border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  26. flex-shrink: 0;
  27. }
  28. .page-health-check .check-row:last-child {
  29. border-bottom: none;
  30. }
  31. /* 行悬停高亮, 便于横向读表 */
  32. .page-health-check .check-row:hover {
  33. background: rgba(59, 130, 246, 0.06);
  34. }
  35. .page-health-check .check-row > div {
  36. display: flex;
  37. align-items: center;
  38. padding: 8px 12px;
  39. min-width: 0;
  40. border-right: 1px solid rgba(148, 163, 184, 0.12);
  41. font-size: 14px;
  42. }
  43. .page-health-check .check-row > div:last-child {
  44. border-right: none;
  45. }
  46. .page-health-check .check-header {
  47. min-height: 40px;
  48. background: linear-gradient(180deg, #0f172a, #0b1220);
  49. font-weight: 500;
  50. flex-shrink: 0;
  51. }
  52. .page-health-check .check-group-divider {
  53. height: 32px;
  54. display: flex;
  55. align-items: center;
  56. padding: 0 12px;
  57. background: rgba(148, 163, 184, 0.06);
  58. border-top: 1px solid rgba(148, 163, 184, 0.1);
  59. border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  60. color: #94a3b8;
  61. font-size: 14px;
  62. font-weight: 500;
  63. }
  64. .page-health-check .check-success {
  65. color: #22c55e;
  66. }
  67. .page-health-check .check-fail {
  68. color: #ef4444;
  69. }
  70. /* ================= 移动端适配 (≤768px) ================= */
  71. @media (max-width: 768px) {
  72. /* 4 列改 2x2: 第一行 项目|状态, 第二行 结果|说明, 表头同样对齐, 无需横向滚动 */
  73. .page-health-check .check-table {
  74. overflow: visible;
  75. }
  76. /* 开始/停止自检: 等分铺满整行, 与全站按钮组同一规格 */
  77. .page-health-check .check-actions .btn {
  78. flex: 1 1 0;
  79. min-width: 0;
  80. display: block;
  81. height: auto;
  82. padding: 6px 4px;
  83. line-height: 18px;
  84. text-align: center;
  85. white-space: nowrap;
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. }
  89. .page-health-check .check-row {
  90. min-width: 0;
  91. grid-template-columns: 1.1fr 1fr;
  92. }
  93. .page-health-check .check-row > div {
  94. padding: 6px 8px;
  95. font-size: 12px;
  96. }
  97. }