preview.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. :root {
  2. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  3. color: #1f2329;
  4. background: #f5f7fa;
  5. }
  6. * {
  7. box-sizing: border-box;
  8. }
  9. html,
  10. body,
  11. #app {
  12. margin: 0;
  13. min-height: 100%;
  14. height: 100%;
  15. }
  16. .tag-page {
  17. display: flex;
  18. height: 100vh;
  19. overflow: hidden;
  20. background: #f5f7fa;
  21. }
  22. .tag-page.chart-only {
  23. display: block;
  24. background: #ffffff;
  25. }
  26. .tag-page.chart-only .tag-chart {
  27. width: 100vw;
  28. height: 100vh;
  29. }
  30. .sidebar {
  31. width: 320px;
  32. min-width: 320px;
  33. height: 100%;
  34. display: flex;
  35. flex-direction: column;
  36. border-right: 1px solid #e3e8ef;
  37. background: #ffffff;
  38. }
  39. .sidebar-head {
  40. padding: 18px 18px 10px;
  41. }
  42. .sidebar-head h1 {
  43. margin: 0;
  44. font-size: 17px;
  45. font-weight: 600;
  46. }
  47. .sidebar-head p {
  48. margin: 6px 0 0;
  49. font-size: 12px;
  50. color: #7a8494;
  51. }
  52. .summary {
  53. display: flex;
  54. flex-wrap: wrap;
  55. gap: 6px;
  56. padding: 0 18px 12px;
  57. }
  58. .summary span {
  59. padding: 3px 8px;
  60. border-radius: 999px;
  61. background: #eef3fb;
  62. color: #35507a;
  63. font-size: 11px;
  64. }
  65. .filters {
  66. display: grid;
  67. grid-template-columns: 1fr 1fr;
  68. gap: 8px;
  69. padding: 0 18px 12px;
  70. border-bottom: 1px solid #eef1f5;
  71. }
  72. .filters label {
  73. display: flex;
  74. flex-direction: column;
  75. gap: 4px;
  76. font-size: 11px;
  77. color: #7a8494;
  78. }
  79. .filters label:first-child {
  80. grid-column: 1 / -1;
  81. }
  82. .filters select {
  83. height: 30px;
  84. padding: 0 8px;
  85. border: 1px solid #dde3ea;
  86. border-radius: 6px;
  87. background: #ffffff;
  88. color: #303744;
  89. font-size: 12px;
  90. outline: none;
  91. }
  92. .filters select:focus {
  93. border-color: #6b9cf5;
  94. }
  95. .label-list {
  96. flex: 1;
  97. overflow-y: auto;
  98. padding: 8px;
  99. }
  100. .label-item {
  101. display: flex;
  102. flex-direction: column;
  103. gap: 5px;
  104. width: 100%;
  105. padding: 9px 10px;
  106. border: 1px solid transparent;
  107. border-radius: 8px;
  108. background: transparent;
  109. text-align: left;
  110. cursor: pointer;
  111. }
  112. .label-item:hover {
  113. background: #f3f6fb;
  114. }
  115. .label-item.active {
  116. border-color: #bcd2fb;
  117. background: #eef4ff;
  118. }
  119. .label-title {
  120. font-size: 12px;
  121. color: #303744;
  122. line-height: 1.35;
  123. }
  124. .label-meta {
  125. display: flex;
  126. align-items: center;
  127. gap: 8px;
  128. font-size: 10px;
  129. color: #8a94a6;
  130. }
  131. .label-meta em {
  132. font-style: normal;
  133. padding: 1px 6px;
  134. border-radius: 999px;
  135. background: #eef1f5;
  136. color: #5b6472;
  137. }
  138. .label-meta em.stage-异常 {
  139. background: #fff1e6;
  140. color: #c26a00;
  141. }
  142. .label-meta em.stage-严重异常 {
  143. background: #ffe9e9;
  144. color: #c62828;
  145. }
  146. .chart-pane {
  147. position: relative;
  148. flex: 1;
  149. min-width: 0;
  150. height: 100%;
  151. background: #ffffff;
  152. }
  153. .tag-chart {
  154. width: 100%;
  155. height: 100%;
  156. }
  157. .chart-overlay {
  158. position: absolute;
  159. top: 50%;
  160. left: 50%;
  161. transform: translate(-50%, -50%);
  162. padding: 8px 14px;
  163. border-radius: 8px;
  164. background: rgba(255, 255, 255, 0.94);
  165. color: #6b7280;
  166. font-size: 12px;
  167. box-shadow: 0 4px 16px rgba(20, 34, 56, 0.08);
  168. }
  169. .empty-state,
  170. .empty-list {
  171. display: flex;
  172. align-items: center;
  173. justify-content: center;
  174. height: 100%;
  175. min-height: 120px;
  176. color: #8a94a6;
  177. font-size: 12px;
  178. }