global.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import '~antd/lib/style/themes/default.less';
  2. @font-face {
  3. font-family: 'dataMeter';
  4. src: url('@/assets/Fonts/dataMeter.ttf');
  5. font-weight: normal;
  6. font-style: normal;
  7. }
  8. html,
  9. body,
  10. #root {
  11. height: 100%;
  12. }
  13. .colorWeak {
  14. filter: invert(80%);
  15. }
  16. .ant-layout {
  17. min-height: 100vh;
  18. }
  19. canvas {
  20. display: block;
  21. }
  22. body {
  23. text-rendering: optimizeLegibility;
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. }
  27. .globalSpin {
  28. width: 100%;
  29. margin: 40px 0 !important;
  30. }
  31. ul,
  32. ol {
  33. list-style: none;
  34. }
  35. @media (max-width: @screen-xs) {
  36. // .ant-table {
  37. // width: 100%;
  38. // overflow-x: auto;
  39. // &-thead > tr,
  40. // &-tbody > tr {
  41. // > th,
  42. // > td {
  43. // white-space: pre;
  44. // > span {
  45. // display: block;
  46. // }
  47. // }
  48. // }
  49. // }
  50. }
  51. //.ant-table-wrapper {
  52. // table {
  53. // text-align: center !important;
  54. // .ant-table-thead > tr > th {
  55. // border: none;
  56. // padding: 0 !important;
  57. // background: #bfbfbf;
  58. // height: 32px !important;
  59. // line-height: 32px;
  60. // margin-bottom: 5px;
  61. // text-align: center;
  62. // color:rgba(41,71,98,1);
  63. // font-size: 14px;
  64. // }
  65. //
  66. // .ant-table-tbody {
  67. // margin-top: 10px !important;
  68. // padding-top: 10px !important;
  69. // }
  70. //
  71. // .ant-table-tbody > tr > td{
  72. // margin-bottom: 10px !important;
  73. // background: white;
  74. // }
  75. // }
  76. //}
  77. .ant-input[disabled] {
  78. //
  79. // background-color: white !important;
  80. cursor: not-allowed;
  81. opacity: 1;
  82. & + .ant-calendar-picker-icon {
  83. display: none !important;
  84. }
  85. }
  86. .ant-select-disabled, .ant-input-number-disabled {
  87. // color: rgba(0, 0, 0, 0.9) !important;
  88. // background-color: white !important;
  89. }
  90. .ant-select-disabled .ant-select-selection {
  91. // background: white !important;
  92. i {
  93. display: none;
  94. }
  95. }
  96. // .ant-table {
  97. // table {
  98. // border: 1px solid #e8e8e8;
  99. // border-right: 0;
  100. // border-bottom: 0;
  101. // .ant-table-bordered .ant-table-thead > tr > th, .ant-table-bordered .ant-table-tbody > tr > td {
  102. // border-right: 1px solid #e8e8e8;
  103. // }
  104. // .ant-table-thead > tr > th {
  105. // color: rgba(0, 0, 0, 0.85);
  106. // font-weight: 500;
  107. // text-align: left;
  108. // background: #fafafa;
  109. // border-bottom: 1px solid #e8e8e8;
  110. // transition: background 0.3s ease;
  111. // border-right: 1px solid #e8e8e8;
  112. // }
  113. // .ant-table-tbody > tr > td {
  114. // border-bottom: 1px solid #e8e8e8;
  115. // border-right: 1px solid #e8e8e8;
  116. // background: white;
  117. // }
  118. // .ant-table-thead > tr:first-child > th:first-child {
  119. // border-top-left-radius: 4px;
  120. // }
  121. // }
  122. // }
  123. /*滚动条整体样式*/
  124. ::-webkit-scrollbar {
  125. width: 10px;
  126. height: 8px;
  127. background: #eee;
  128. }
  129. /*滚动条滑块*/
  130. ::-webkit-scrollbar-thumb {
  131. height: 8px;
  132. border-radius: 10px;
  133. background: #C8C8C8;
  134. }
  135. ///*滚动条轨道*/
  136. //::-webkit-scrollbar-track {
  137. // border-radius: 10px;
  138. // background: #C8C8C8;
  139. //}
  140. .unity-fun-btn {
  141. width: 10vw;
  142. }
  143. .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {
  144. background: #D8D8D8!important;
  145. }
  146. .ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) {
  147. background: #D8D8D8!important;
  148. }