global.less 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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), (-ms-high-contrast: none) {
  68. body .ant-design-pro > .ant-layout {
  69. min-height: 100vh;
  70. }
  71. }
  72. ::-webkit-scrollbar {
  73. // display: none; /* Chrome Safari */
  74. width: 6px;
  75. height: 8px;
  76. }
  77. ::-webkit-scrollbar-thumb {
  78. border-radius: 4px;
  79. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  80. background-color: #ddd;
  81. background: rgba(0, 0, 0, 0);
  82. }
  83. :hover::-webkit-scrollbar-thumb {
  84. background: rgba(82, 82, 82, 0.3);
  85. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  86. }
  87. #notificationPop {
  88. width: 100vw;
  89. height: 100vh;
  90. background: rgba(0, 0, 0, 0.6);
  91. z-index: 10001;
  92. position: fixed;
  93. top: 0;
  94. > div {
  95. position: relative;
  96. > div {
  97. position: absolute !important;
  98. right: 50% !important;
  99. transform: translateX(50%);
  100. }
  101. }
  102. }
  103. #logo {
  104. a {
  105. display: flex;
  106. align-items: center;
  107. }
  108. }
  109. .ant-statistic {
  110. .ant-statistic-content {
  111. color: #000;
  112. font-size: 13px;
  113. word-break: break-word;
  114. }
  115. }
  116. body {
  117. #root {
  118. .ant-table.ant-table-small .ant-table-title,
  119. .ant-table.ant-table-middle .ant-table-title,
  120. .ant-table.ant-table-small .ant-table-footer,
  121. .ant-table.ant-table-middle .ant-table-footer,
  122. .ant-table.ant-table-small .ant-table-thead > tr > th,
  123. .ant-table.ant-table-middle .ant-table-thead > tr > th,
  124. .ant-table.ant-table-small .ant-table-tbody > tr > td,
  125. .ant-table.ant-table-middle .ant-table-tbody > tr > td,
  126. .ant-table.ant-table-small tfoot > tr > th,
  127. .ant-table.ant-table-middle tfoot > tr > th,
  128. .ant-table.ant-table-small tfoot > tr > td .ant-table.ant-table-middle tfoot > tr > td {
  129. padding: 5px;
  130. }
  131. .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {
  132. padding: 0;
  133. }
  134. // .ant-table.ant-table-small .ant-table-tbody > tr > td.ant-table-cell {
  135. // padding-top: 8px;
  136. // }
  137. }
  138. .ant-table-thead > tr > th {
  139. font-weight: 600 !important;
  140. }
  141. .total_table {
  142. .ant-table-thead > tr > th,
  143. .ant-table-tbody > tr > td {
  144. border-bottom: 1px solid #e0e0e0;
  145. }
  146. .ant-table.ant-table-bordered
  147. > .ant-table-container
  148. > .ant-table-content
  149. > table
  150. > thead
  151. > tr
  152. > th,
  153. .ant-table.ant-table-bordered
  154. > .ant-table-container
  155. > .ant-table-header
  156. > table
  157. > thead
  158. > tr
  159. > th,
  160. .ant-table.ant-table-bordered
  161. > .ant-table-container
  162. > .ant-table-body
  163. > table
  164. > thead
  165. > tr
  166. > th,
  167. .ant-table.ant-table-bordered
  168. > .ant-table-container
  169. > .ant-table-content
  170. > table
  171. > tbody
  172. > tr
  173. > td,
  174. .ant-table.ant-table-bordered
  175. > .ant-table-container
  176. > .ant-table-header
  177. > table
  178. > tbody
  179. > tr
  180. > td,
  181. .ant-table.ant-table-bordered
  182. > .ant-table-container
  183. > .ant-table-body
  184. > table
  185. > tbody
  186. > tr
  187. > td,
  188. .ant-table.ant-table-bordered
  189. > .ant-table-container
  190. > .ant-table-content
  191. > table
  192. > tfoot
  193. > tr
  194. > th,
  195. .ant-table.ant-table-bordered
  196. > .ant-table-container
  197. > .ant-table-header
  198. > table
  199. > tfoot
  200. > tr
  201. > th,
  202. .ant-table.ant-table-bordered
  203. > .ant-table-container
  204. > .ant-table-body
  205. > table
  206. > tfoot
  207. > tr
  208. > th,
  209. .ant-table.ant-table-bordered
  210. > .ant-table-container
  211. > .ant-table-content
  212. > table
  213. > tfoot
  214. > tr
  215. > td,
  216. .ant-table.ant-table-bordered
  217. > .ant-table-container
  218. > .ant-table-header
  219. > table
  220. > tfoot
  221. > tr
  222. > td,
  223. .ant-table.ant-table-bordered
  224. > .ant-table-container
  225. > .ant-table-body
  226. > table
  227. > tfoot
  228. > tr
  229. > td {
  230. border-right: 1px solid #e0e0e0;
  231. }
  232. .ant-table.ant-table-bordered > .ant-table-container {
  233. border: 1px solid #e0e0e0;
  234. }
  235. .ant-table-header {
  236. .ant-table-thead {
  237. tr {
  238. th {
  239. background-color: #fbdedb;
  240. }
  241. }
  242. }
  243. }
  244. }
  245. .all_table {
  246. .ant-table-thead > tr > th,
  247. .ant-table-tbody > tr > td {
  248. border-bottom: 1px solid #e0e0e0;
  249. }
  250. .ant-table.ant-table-bordered
  251. > .ant-table-container
  252. > .ant-table-content
  253. > table
  254. > thead
  255. > tr
  256. > th,
  257. .ant-table.ant-table-bordered
  258. > .ant-table-container
  259. > .ant-table-header
  260. > table
  261. > thead
  262. > tr
  263. > th,
  264. .ant-table.ant-table-bordered
  265. > .ant-table-container
  266. > .ant-table-body
  267. > table
  268. > thead
  269. > tr
  270. > th,
  271. .ant-table.ant-table-bordered
  272. > .ant-table-container
  273. > .ant-table-content
  274. > table
  275. > tbody
  276. > tr
  277. > td,
  278. .ant-table.ant-table-bordered
  279. > .ant-table-container
  280. > .ant-table-header
  281. > table
  282. > tbody
  283. > tr
  284. > td,
  285. .ant-table.ant-table-bordered
  286. > .ant-table-container
  287. > .ant-table-body
  288. > table
  289. > tbody
  290. > tr
  291. > td,
  292. .ant-table.ant-table-bordered
  293. > .ant-table-container
  294. > .ant-table-content
  295. > table
  296. > tfoot
  297. > tr
  298. > th,
  299. .ant-table.ant-table-bordered
  300. > .ant-table-container
  301. > .ant-table-header
  302. > table
  303. > tfoot
  304. > tr
  305. > th,
  306. .ant-table.ant-table-bordered
  307. > .ant-table-container
  308. > .ant-table-body
  309. > table
  310. > tfoot
  311. > tr
  312. > th,
  313. .ant-table.ant-table-bordered
  314. > .ant-table-container
  315. > .ant-table-content
  316. > table
  317. > tfoot
  318. > tr
  319. > td,
  320. .ant-table.ant-table-bordered
  321. > .ant-table-container
  322. > .ant-table-header
  323. > table
  324. > tfoot
  325. > tr
  326. > td,
  327. .ant-table.ant-table-bordered
  328. > .ant-table-container
  329. > .ant-table-body
  330. > table
  331. > tfoot
  332. > tr
  333. > td {
  334. border-right: 1px solid #e0e0e0;
  335. }
  336. .ant-table.ant-table-bordered > .ant-table-container {
  337. border: 1px solid #e0e0e0;
  338. }
  339. .ant-table-header {
  340. .ant-table-thead {
  341. tr {
  342. th {
  343. background-color: #f5f5f5;
  344. }
  345. }
  346. }
  347. }
  348. }
  349. }
  350. .table_row_red {
  351. background-color: #e91e1e80;
  352. &:hover {
  353. > td {
  354. background-color:#e91e1e80!important;
  355. }
  356. }
  357. }
  358. .table_row_yellow {
  359. background-color: #ffeb3b6b;
  360. &:hover {
  361. > td {
  362. background-color: #ffeb3b6b !important;
  363. }
  364. }
  365. }
  366. // .ant-table,.ant-card{
  367. // background-color: #fff !important;
  368. // td{
  369. // background-color: #fff !important;
  370. // }
  371. // }