global.less 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. .all_table {
  120. .ant-table.ant-table-small .ant-table-title,
  121. .ant-table.ant-table-middle .ant-table-title,
  122. .ant-table.ant-table-small .ant-table-footer,
  123. .ant-table.ant-table-middle .ant-table-footer,
  124. .ant-table.ant-table-small .ant-table-thead>tr>th,
  125. .ant-table.ant-table-middle .ant-table-thead>tr>th,
  126. .ant-table.ant-table-small .ant-table-tbody>tr>td,
  127. .ant-table.ant-table-middle .ant-table-tbody>tr>td,
  128. .ant-table.ant-table-small tfoot>tr>th,
  129. .ant-table.ant-table-middle tfoot>tr>th,
  130. .ant-table.ant-table-small tfoot>tr>td .ant-table.ant-table-middle tfoot>tr>td {
  131. padding: 5px;
  132. }
  133. .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {
  134. padding: 0;
  135. }
  136. }
  137. // .ant-table.ant-table-small .ant-table-tbody > tr > td.ant-table-cell {
  138. // padding-top: 8px;
  139. // }
  140. }
  141. .ant-table-thead>tr>th {
  142. font-weight: 600 !important;
  143. }
  144. .total_table {
  145. .ant-table-thead>tr>th,
  146. .ant-table-tbody>tr>td {
  147. border-bottom: 1px solid #e0e0e0;
  148. }
  149. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,
  150. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,
  151. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,
  152. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,
  153. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,
  154. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,
  155. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
  156. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
  157. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
  158. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
  159. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
  160. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td {
  161. border-right: 1px solid #e0e0e0;
  162. }
  163. .ant-table.ant-table-bordered>.ant-table-container {
  164. border: 1px solid #e0e0e0;
  165. }
  166. .ant-table-header {
  167. .ant-table-thead {
  168. tr {
  169. th {
  170. background-color: #fbdedb;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. .all_table {
  177. .ant-table-thead>tr>th,
  178. .ant-table-tbody>tr>td {
  179. border-bottom: 1px solid #e0e0e0;
  180. }
  181. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,
  182. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,
  183. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,
  184. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,
  185. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,
  186. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,
  187. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
  188. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
  189. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
  190. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
  191. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
  192. .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td {
  193. border-right: 1px solid #e0e0e0;
  194. }
  195. .ant-table.ant-table-bordered>.ant-table-container {
  196. border: 1px solid #e0e0e0;
  197. }
  198. .ant-table-header {
  199. .ant-table-thead {
  200. tr {
  201. th {
  202. background-color: #f5f5f5;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. .table_row_red {
  210. background-color: #e91e1e80;
  211. &:hover {
  212. >td {
  213. background-color: #e91e1e80 !important;
  214. }
  215. }
  216. }
  217. .table_row_yellow {
  218. background-color: #ffeb3b6b;
  219. &:hover {
  220. >td {
  221. background-color: #ffeb3b6b !important;
  222. }
  223. }
  224. }
  225. // .ant-table,.ant-card{
  226. // background-color: #fff !important;
  227. // td{
  228. // background-color: #fff !important;
  229. // }
  230. // }
  231. .ellipsisOne {
  232. width: 100%;
  233. overflow: hidden;
  234. text-overflow: ellipsis;
  235. white-space: nowrap;
  236. }
  237. .ant-btn,
  238. .ant-select:not(.ant-select-customize-input) .ant-select-selector,
  239. .ant-picker,
  240. .ant-input-affix-wrapper,
  241. .ant-input,
  242. .ant-modal-content,
  243. .ant-tag,
  244. .ant-pagination-item,
  245. .ant-picker-panel-container,
  246. .ant-input-number-input,
  247. .ant-input-number,
  248. .ant-input-number-group-addon,
  249. .ant-select-dropdown {
  250. border-radius: 6px !important;
  251. }
  252. .ant-radio-button-wrapper:first-child {
  253. border-radius: 6px 0 0 6px !important;
  254. }
  255. .ant-radio-button-wrapper:last-child {
  256. border-radius: 0 6px 6px 0 !important;
  257. }
  258. .all_table .ant-table-cell {
  259. padding: 2px 5px !important;
  260. }
  261. .progress {
  262. padding: 0 !important;
  263. .ant-progress {
  264. height: 100%;
  265. .ant-progress-outer {
  266. height: 100%;
  267. .ant-progress-inner {
  268. height: 100%;
  269. border-radius: 0;
  270. .ant-progress-bg {
  271. height: 100% !important;
  272. border-radius: 0;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. .header_table_body td {
  279. font-weight: 600;
  280. }
  281. .ant-table-tbody>tr.ant-table-row:hover>td {
  282. background-color: #e9e9e9 !important;
  283. }
  284. .minHeight .ant-form-item-control-input {
  285. min-height: auto;
  286. }
  287. .orangeColorClass {
  288. background-color: #fff2e8;
  289. &.ant-table-cell-fix-left,
  290. &.ant-table-cell-fix-right {
  291. background-color: #fff2e8;
  292. }
  293. }
  294. .volcanoColorClass {
  295. background-color: #fff2e8;
  296. &.ant-table-cell-fix-left,
  297. &.ant-table-cell-fix-right {
  298. background-color: #fff2e8;
  299. }
  300. }
  301. .redColorClass {
  302. background-color: #fff7e6;
  303. &.ant-table-cell-fix-left,
  304. &.ant-table-cell-fix-right {
  305. background-color: #fff7e6;
  306. }
  307. }
  308. .green2ColorClass {
  309. background-color: #f6ffed;
  310. &.ant-table-cell-fix-left,
  311. &.ant-table-cell-fix-right {
  312. background-color: #f6ffed;
  313. }
  314. }
  315. .purple1ColorClass {
  316. background-color: #f9f0ff;
  317. &.ant-table-cell-fix-left,
  318. &.ant-table-cell-fix-right {
  319. background-color: #f9f0ff;
  320. }
  321. }
  322. .padding_0.ant-table-cell {
  323. padding: 0 !important;
  324. .ant-progress-line,
  325. .ant-progress-outer {
  326. height: 100%;
  327. }
  328. .ant-progress-inner {
  329. border-radius: 0 !important;
  330. height: 100%;
  331. background-color: transparent;
  332. }
  333. .ant-progress-bg {
  334. border-radius: 0 !important;
  335. height: 100% !important;
  336. }
  337. }