index.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. * {
  2. box-sizing: border-box;
  3. }
  4. html,
  5. body,
  6. #app {
  7. height: 100%;
  8. margin: 0;
  9. }
  10. body {
  11. font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  12. background: #14161a;
  13. color: #d6dbe2;
  14. overflow: hidden;
  15. font-size: 13px;
  16. }
  17. .app {
  18. display: flex;
  19. flex-direction: column;
  20. height: 100vh;
  21. }
  22. /* 悬浮卡片(黑底 70% 透明、圆角 10px) */
  23. .glass {
  24. background: rgba(0, 0, 0, 0.7);
  25. border: 1px solid #333a45;
  26. border-radius: 10px;
  27. backdrop-filter: blur(6px);
  28. -webkit-backdrop-filter: blur(6px);
  29. }
  30. /* 右侧扩展区域 */
  31. .ext-panel {
  32. position: absolute;
  33. right: 20px;
  34. top: 20px;
  35. bottom: 20px;
  36. width: 300px;
  37. display: flex;
  38. flex-direction: column;
  39. gap: 12px;
  40. overflow-y: auto;
  41. pointer-events: none;
  42. z-index: 8;
  43. }
  44. .ext-panel > * {
  45. pointer-events: auto;
  46. flex: 0 0 auto;
  47. }
  48. /* 底部居中:场景位置卡片(由顶部勾选控制显示) */
  49. .scene-overlay {
  50. position: absolute;
  51. left: 50%;
  52. transform: translateX(-50%);
  53. bottom: 20px;
  54. width: 300px;
  55. z-index: 9;
  56. pointer-events: auto;
  57. }
  58. /* 让 antd 组件使用与页面一致的字体(含中文 PingFang SC),避免中文回退字形偏大 */
  59. .ant-select,
  60. .ant-select *,
  61. .ant-select-dropdown,
  62. .ant-select-dropdown *,
  63. .ant-btn,
  64. .ant-tag,
  65. .ant-modal,
  66. .ant-table {
  67. font-family: inherit;
  68. }
  69. /* 顶部下拉:与其它元素统一 12px */
  70. .topbar .ant-select,
  71. .topbar .ant-select .ant-select-selector,
  72. .topbar .ant-select .ant-select-selection-item,
  73. .topbar .ant-select .ant-select-selection-placeholder,
  74. .topbar .ant-select .ant-select-selection-search-input {
  75. font-size: 12px !important;
  76. }
  77. .ant-select-dropdown {
  78. font-size: 12px;
  79. }
  80. .data-panel .ant-select,
  81. .data-panel .ant-select * {
  82. font-size: 12px !important;
  83. }
  84. /* 文本型(链接)按钮:亮蓝色,暗底上更清晰 */
  85. .ant-btn-link {
  86. color: #69c0ff;
  87. }
  88. .ant-btn-link:hover {
  89. color: #91d5ff;
  90. }
  91. /* 查询部件弹窗:白底黑字 */
  92. .part-query-modal .ant-modal-content {
  93. background: #fff;
  94. color: #1a1a1a;
  95. }
  96. .part-query-modal .ant-modal-header {
  97. background: #fff;
  98. border-bottom: none;
  99. margin-bottom: 12px;
  100. }
  101. .part-query-modal .ant-modal-title {
  102. color: #111;
  103. font-weight: 600;
  104. }
  105. .part-query-modal .ant-modal-close {
  106. color: #888;
  107. }
  108. .part-query-modal .ant-modal-close:hover {
  109. color: #222;
  110. }
  111. .part-query-modal .ant-modal-body {
  112. color: #1a1a1a;
  113. }
  114. /* 故障详细内容弹窗:白底黑字,固定高度 */
  115. .fault-detail-modal .ant-modal-content {
  116. background: #fff;
  117. color: #1a1a1a;
  118. }
  119. .fault-detail-modal .ant-modal-header {
  120. background: #fff;
  121. border-bottom: none;
  122. margin-bottom: 8px;
  123. }
  124. .fault-detail-modal .ant-modal-title {
  125. color: #111;
  126. font-weight: 600;
  127. }
  128. .fault-detail-modal .ant-modal-close {
  129. color: #888;
  130. }
  131. .fault-detail-modal .ant-modal-close:hover {
  132. color: #222;
  133. }
  134. .fault-detail-modal .ant-modal-body {
  135. color: #1a1a1a;
  136. height: 620px;
  137. overflow-y: auto;
  138. }