global.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @import '../icons/fonts/iconfont.css';
  2. :root {
  3. --hvac-layout-bg: #f5f7fa;
  4. }
  5. .use-guide-title {
  6. font-size: 20px;
  7. font-weight: 500;
  8. line-height: 28px;
  9. color: var(--antd-color-text);
  10. }
  11. .use-guide-description {
  12. width: 430px;
  13. margin: 10px 0;
  14. font-size: 14px;
  15. line-height: 22px;
  16. color: var(--antd-color-text-secondary);
  17. }
  18. .hvac-layout-main-title {
  19. height: 32px;
  20. font-size: 20px;
  21. font-weight: 500;
  22. line-height: 32px;
  23. color: var(--antd-color-text);
  24. }
  25. // 默认按钮颜色
  26. .default-button {
  27. color: var(--antd-color-primary-hover);
  28. border-color: var(--antd-color-primary-hover);
  29. }
  30. .ant-btn {
  31. border-radius: 4px;
  32. }
  33. .main-container {
  34. overflow: auto; // 超出设定高度,出现滚动条
  35. /* 定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸 */
  36. // 滚动条整体部分
  37. &::-webkit-scrollbar {
  38. width: 6px;
  39. height: 8px;
  40. }
  41. // 滚动条的轨道的两端按钮,允许通过点击微调小方块的位置。
  42. &::-webkit-scrollbar-button {
  43. display: none;
  44. }
  45. // 滚动条里面的小方块,能向上向下移动(或往左往右移动,取决于是垂直滚动条还是水平滚动条)
  46. &::-webkit-scrollbar-thumb {
  47. cursor: pointer;
  48. background: rgb(144 147 153 / 30%);
  49. border-radius: 4px;
  50. }
  51. // 边角,即两个滚动条的交汇处
  52. &::-webkit-scrollbar-corner {
  53. display: none;
  54. }
  55. // 两个滚动条的交汇处上用于通过拖动调整元素大小的小控件
  56. &::-webkit-resizer {
  57. display: none;
  58. }
  59. }
  60. .ellipsis-text {
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. white-space: nowrap;
  64. }
  65. .icon-button {
  66. font-size: 16px;
  67. i {
  68. vertical-align: -0.15em;
  69. }
  70. span {
  71. margin-left: 8px;
  72. }
  73. }
  74. .hide-tabs-border > div.ant-tabs-nav::before {
  75. border: none;
  76. }
  77. .button-tabs-card {
  78. font-size: 14px;
  79. font-weight: 500;
  80. line-height: 22px;
  81. color: var(--antd-color-primary);
  82. &.ant-tabs-card > div.ant-tabs-nav {
  83. .ant-tabs-tab {
  84. padding: 5px 12px;
  85. background: var(--antd-color-primary-opacity-15);
  86. border: none;
  87. border-radius: 4px;
  88. transition: background 0.3s;
  89. + .ant-tabs-tab {
  90. margin-left: 8px;
  91. }
  92. &:hover {
  93. color: #fff !important;
  94. background: var(--antd-color-primary);
  95. }
  96. &:active {
  97. background: var(--antd-color-primary-active);
  98. }
  99. }
  100. .ant-tabs-tab-active {
  101. background: var(--antd-color-primary);
  102. .ant-tabs-tab-btn {
  103. color: #fff;
  104. text-shadow: none;
  105. }
  106. }
  107. .ant-tabs-tab-btn:active {
  108. color: #fff;
  109. }
  110. &::before {
  111. border: none;
  112. }
  113. }
  114. }
  115. .button-tabs-compact {
  116. line-height: 22px;
  117. &.ant-tabs-card > div.ant-tabs-nav {
  118. .ant-tabs-tab {
  119. padding: 8px 16px;
  120. font-size: 16px;
  121. font-weight: 500;
  122. color: var(--antd-color-primary);
  123. background: rgb(255 255 255 / 15%);
  124. border-color: var(--antd-color-primary);
  125. border-right: none;
  126. border-radius: 0;
  127. transition: background 0.3s;
  128. + .ant-tabs-tab {
  129. margin-left: 0;
  130. }
  131. &:first-child {
  132. border-top-left-radius: 8px;
  133. border-bottom-left-radius: 8px;
  134. }
  135. }
  136. .ant-tabs-nav-list :nth-last-child(2) {
  137. border-right: 1px solid var(--antd-color-primary);
  138. border-top-right-radius: 8px;
  139. border-bottom-right-radius: 8px;
  140. }
  141. .ant-tabs-tab-active {
  142. background: var(--antd-color-primary);
  143. .ant-tabs-tab-btn {
  144. color: #fff;
  145. text-shadow: none;
  146. }
  147. }
  148. &::before {
  149. border: none;
  150. }
  151. }
  152. }
  153. .status-dot {
  154. // 定义控制变量 (可外部覆盖)
  155. --status-dot-rgb: 103, 194, 58; // RGB 颜色分量 (绿色)
  156. position: relative;
  157. display: inline-block;
  158. width: 16px;
  159. aspect-ratio: 1; // 保持 1:1 宽高比
  160. background-color: rgba(var(--status-dot-rgb), 0.3);
  161. border-radius: 50%;
  162. // 同心圆通用样式
  163. &::before,
  164. &::after {
  165. position: absolute;
  166. top: 50%;
  167. left: 50%;
  168. display: block;
  169. aspect-ratio: 1;
  170. content: '';
  171. border-radius: 50%;
  172. transform: translate(-50%, -50%);
  173. }
  174. // 中间层
  175. &::before {
  176. width: 50%;
  177. background-color: rgba(var(--status-dot-rgb), 0.6);
  178. }
  179. // 核心层
  180. &::after {
  181. width: 25%;
  182. background-color: rgba(var(--status-dot-rgb), 1);
  183. }
  184. }
  185. .center-loading {
  186. position: absolute;
  187. inset: 0;
  188. display: flex;
  189. align-items: center;
  190. justify-content: center;
  191. }
  192. .echarts-tooltip-electricity {
  193. width: 100%;
  194. font-weight: bold;
  195. border-collapse: collapse;
  196. th,
  197. td {
  198. padding-inline: 3px;
  199. text-align: left;
  200. }
  201. }