global.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. @import '~antd/es/style/themes/default.less';
  2. html,
  3. body,
  4. #root {
  5. height: 100%;
  6. }
  7. body #root .ranking .ant-table.ant-table-small .ant-table-tbody>tr>td.ant-table-cell {
  8. padding: 0px !important;
  9. }
  10. body #root .ranking .ant-table.ant-table-small .ant-table-tbody>tr>td.ant-table-cell>div div {
  11. height: 100%;
  12. }
  13. body #root .ranking .ant-table.ant-table-small .ant-table-tbody>tr>td.ant-table-cell .ant-progress-inner {
  14. border-radius: 0 !important;
  15. height: 100%;
  16. background-color: #fff;
  17. }
  18. body #root .ranking .ant-table.ant-table-small .ant-table-tbody>tr>td.ant-table-cell .ant-progress-inner .ant-progress-bg {
  19. border-radius: 0 !important;
  20. height: 100% !important;
  21. }
  22. .colorWeak {
  23. filter: invert(80%);
  24. }
  25. .ant-layout {
  26. min-height: 100vh;
  27. }
  28. canvas {
  29. display: block;
  30. }
  31. body {
  32. text-rendering: optimizeLegibility;
  33. -webkit-font-smoothing: antialiased;
  34. -moz-osx-font-smoothing: grayscale;
  35. }
  36. ul,
  37. ol {
  38. list-style: none;
  39. }
  40. input:-webkit-autofill,
  41. textarea:-webkit-autofill,
  42. select:-webkit-autofill {
  43. background-color: transparent !important;
  44. background-image: none !important;
  45. -webkit-box-shadow: 0 0 0 1000px white inset !important;
  46. -moz-box-shadow: 0 0 0 1000px white inset !important;
  47. -o-box-shadow: 0 0 0 1000px white inset !important;
  48. -ms-box-shadow: 0 0 0 1000px white inset !important;
  49. }
  50. @media (max-width: @screen-xs) {
  51. .ant-table {
  52. width: 100%;
  53. overflow-x: auto;
  54. &-thead>tr,
  55. &-tbody>tr {
  56. >th,
  57. >td {
  58. white-space: pre;
  59. >span {
  60. display: block;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. // 兼容IE11
  67. @media screen and(-ms-high-contrast: active),
  68. (-ms-high-contrast: none) {
  69. body .ant-design-pro>.ant-layout {
  70. min-height: 100vh;
  71. }
  72. }
  73. ::-webkit-scrollbar {
  74. // display: none; /* Chrome Safari */
  75. width: 6px;
  76. height: 6px;
  77. }
  78. ::-webkit-scrollbar-thumb {
  79. border-radius: 4px;
  80. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  81. background-color: #ddd;
  82. background: rgba(0, 0, 0, 0);
  83. }
  84. :hover::-webkit-scrollbar-thumb {
  85. background: rgba(82, 82, 82, 0.3);
  86. -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
  87. }
  88. #notificationPop {
  89. width: 100vw;
  90. height: 100vh;
  91. background: rgba(0, 0, 0, 0.6);
  92. z-index: 10001;
  93. position: fixed;
  94. top: 0;
  95. >div {
  96. position: relative;
  97. >div {
  98. position: absolute !important;
  99. right: 50% !important;
  100. transform: translateX(50%);
  101. }
  102. }
  103. }
  104. #logo {
  105. a {
  106. display: flex;
  107. align-items: center;
  108. }
  109. }
  110. .ant-statistic {
  111. .ant-statistic-content {
  112. color: #000;
  113. font-size: 13px;
  114. word-break: break-word;
  115. }
  116. }
  117. body {
  118. #root {
  119. .ant-table.ant-table-small .ant-table-title,
  120. .ant-table.ant-table-middle .ant-table-title,
  121. .ant-table.ant-table-small .ant-table-footer,
  122. .ant-table.ant-table-middle .ant-table-footer,
  123. .ant-table.ant-table-small .ant-table-thead>tr>th,
  124. .ant-table.ant-table-middle .ant-table-thead>tr>th,
  125. .ant-table.ant-table-small .ant-table-tbody>tr>td,
  126. .ant-table.ant-table-middle .ant-table-tbody>tr>td,
  127. .ant-table.ant-table-small tfoot>tr>th,
  128. .ant-table.ant-table-middle tfoot>tr>th,
  129. .ant-table.ant-table-small tfoot>tr>td .ant-table.ant-table-middle tfoot>tr>td {
  130. padding: 5px;
  131. }
  132. .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {
  133. padding: 0;
  134. }
  135. // .ant-table.ant-table-small .ant-table-tbody > tr > td.ant-table-cell {
  136. // padding-top: 8px;
  137. // }
  138. }
  139. .ant-table-thead>tr>th {
  140. font-weight: 600 !important;
  141. }
  142. .total_table {
  143. .ant-table-thead>tr>th,
  144. .ant-table-tbody>tr>td {
  145. border-bottom: 1px solid #e0e0e0;
  146. }
  147. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,
  148. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,
  149. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,
  150. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,
  151. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,
  152. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,
  153. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
  154. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
  155. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
  156. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
  157. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
  158. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td {
  159. border-right: 1px solid #e0e0e0;
  160. }
  161. .ant-table.ant-table-bordered>.ant-table-container {
  162. border: 1px solid #e0e0e0;
  163. }
  164. .ant-table-header {
  165. .ant-table-thead {
  166. tr {
  167. th {
  168. background-color: #fbdedb;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. .all_table {
  175. .ant-table-thead>tr>th,
  176. .ant-table-tbody>tr>td {
  177. border-bottom: 1px solid #e0e0e0;
  178. }
  179. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,
  180. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,
  181. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,
  182. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,
  183. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,
  184. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,
  185. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
  186. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
  187. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
  188. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
  189. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
  190. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td {
  191. border-right: 1px solid #e0e0e0;
  192. }
  193. .ant-table.ant-table-bordered>.ant-table-container {
  194. border: 1px solid #e0e0e0;
  195. }
  196. .ant-table-header {
  197. .ant-table-thead {
  198. tr {
  199. th {
  200. background-color: #f5f5f5;
  201. }
  202. }
  203. }
  204. }
  205. }
  206. }
  207. .table_row_red {
  208. background-color: #e91e1e80;
  209. &:hover {
  210. >td {
  211. background-color: #e91e1e80 !important;
  212. }
  213. }
  214. }
  215. .table_row_yellow {
  216. background-color: #ffeb3b6b;
  217. &:hover {
  218. >td {
  219. background-color: #ffeb3b6b !important;
  220. }
  221. }
  222. }
  223. // .ant-table,.ant-card{
  224. // background-color: #fff !important;
  225. // td{
  226. // background-color: #fff !important;
  227. // }
  228. // }
  229. .ellipsisOne {
  230. width: 100%;
  231. overflow: hidden;
  232. text-overflow: ellipsis;
  233. white-space: nowrap;
  234. }
  235. .ant-btn,
  236. .ant-select:not(.ant-select-customize-input) .ant-select-selector,
  237. .ant-picker,
  238. .ant-input-affix-wrapper,
  239. .ant-input,
  240. .ant-modal-content,
  241. .ant-tag,
  242. .ant-pagination-item,
  243. .ant-picker-panel-container,
  244. .ant-input-number-input,
  245. .ant-input-number,
  246. .ant-input-number-group-addon,
  247. .ant-select-dropdown {
  248. border-radius: 6px !important;
  249. }
  250. .ant-radio-button-wrapper:first-child {
  251. border-radius: 6px 0 0 6px !important;
  252. }
  253. .ant-radio-button-wrapper:last-child {
  254. border-radius: 0 6px 6px 0 !important;
  255. }
  256. .ant-table-cell {
  257. padding: 2px 5px !important;
  258. }
  259. .progress {
  260. padding: 0 !important;
  261. .ant-progress {
  262. height: 100%;
  263. .ant-progress-outer {
  264. height: 100%;
  265. .ant-progress-inner {
  266. height: 100%;
  267. border-radius: 0;
  268. .ant-progress-bg {
  269. height: 100% !important;
  270. border-radius: 0;
  271. }
  272. }
  273. }
  274. }
  275. }
  276. .header_table_body td {
  277. font-weight: 600;
  278. }
  279. .ant-table-tbody > tr.ant-table-row:hover > td {
  280. background-color: #e9e9e9 !important;
  281. }
  282. .minHeight .ant-form-item-control-input {
  283. min-height: auto;
  284. }
  285. .orangeColorClass {
  286. background-color: #fff2e8;
  287. }
  288. .volcanoColorClass {
  289. background-color: #ffe7ba;
  290. }
  291. .redColorClass {
  292. background-color: #fff7e6;
  293. }
  294. .green2ColorClass {
  295. background-color: #f6ffed;
  296. }