index.less 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @import "~antd/lib/style/themes/default.less";
  2. html,
  3. body,
  4. :global(#root) {
  5. height: 100%;
  6. }
  7. :global(.ant-layout) {
  8. min-height: 100%;
  9. }
  10. canvas {
  11. display: block;
  12. }
  13. body {
  14. text-rendering: optimizeLegibility;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. :global(.a-link) {
  19. color: #262626;
  20. &:hover {
  21. color: #f5222d !important;
  22. }
  23. }
  24. .globalSpin {
  25. width: 100%;
  26. margin: 40px 0 !important;
  27. }
  28. // temp fix for https://github.com/ant-design/ant-design/commit/a1fafb5b727b62cb0be29ce6e9eca8f579d4f8b7
  29. :global {
  30. .ant-spin-container {
  31. overflow: visible !important;
  32. }
  33. .ant-card-body {
  34. padding: 16px !important;
  35. }
  36. .ant-card-head {
  37. padding-left: 16px !important;
  38. }
  39. /*
  40. .ant-message {
  41. width: unset !important;
  42. top: 50px !important;
  43. right: 10px;
  44. left: unset !important;
  45. }
  46. .ant-message-notice {
  47. text-align: right !important;
  48. }
  49. */
  50. .ant-table-tbody > tr.ant-table-row-selected td {
  51. background: #ffffb8 !important;
  52. }
  53. .ant-tag {
  54. width: 137px;
  55. text-align: center;
  56. margin-top: 8px !important;
  57. height: 25px;
  58. line-height: 25px;
  59. }
  60. .ant-radio-button-wrapper-checked {
  61. background-color: @primary-color !important;
  62. color: #fff !important;
  63. }
  64. }
  65. // 自定义全局样式
  66. :global(.editBtn) {
  67. background: @primary-color !important;
  68. color: #fff !important;
  69. }
  70. :global(.delBtn) {
  71. margin-left: 10px;
  72. background: #f5222d !important;
  73. color: #fff !important;
  74. }
  75. :global(.recBtn) {
  76. margin-left: 10px;
  77. background: #13c2c2 !important;
  78. color: #fff !important;
  79. }
  80. :global(.depositBtn) {
  81. margin-left: 10px;
  82. background: #a0d911 !important;
  83. color: #fff !important;
  84. }
  85. :global(.playBtn) {
  86. margin-left: 10px;
  87. background: #36cfc9 !important;
  88. color: #fff !important;
  89. }