You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

overrides.less 2.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * @Author: 赵伟
  3. * @Date: 2024-04-28 08:47:43
  4. * @Description: 覆盖 antd 样式
  5. */
  6. // 设置 Table 可以滑动
  7. .vertical-scroll-table {
  8. .ant-table-wrapper {
  9. height: 100%;
  10. .ant-spin-nested-loading {
  11. height: 100%;
  12. .ant-spin-container {
  13. height: 100%;
  14. .ant-table {
  15. height: calc(100% - 74px); // 分页控件的高度
  16. .ant-table-container {
  17. height: 100%;
  18. .ant-table-body {
  19. overflow-y: auto !important;
  20. }
  21. }
  22. }
  23. }
  24. }
  25. }
  26. }
  27. // Tabs 样式
  28. // 删除底部白色横线
  29. .ant-tabs {
  30. .ant-tabs-nav::before {
  31. border: none;
  32. }
  33. // 删除下边的 margin-bottom
  34. .ant-tabs-nav {
  35. margin-bottom: 0;
  36. }
  37. }
  38. // 表格样式
  39. .ant-table-header {
  40. border: 1px solid rgba(167, 178, 194, 0.17);
  41. border-bottom: none;
  42. }
  43. .ant-table-wrapper .ant-table-thead > tr > td {
  44. background-color: #fff;
  45. }
  46. .ant-pro-page-container {
  47. overflow-y: auto;
  48. }
  49. // Input
  50. .ant-input-textarea-affix-wrapper.ant-input-affix-wrapper {
  51. padding: 0;
  52. }
  53. // Modal
  54. .ant-modal {
  55. .ant-modal-close {
  56. top: 27px;
  57. right: 27px;
  58. width: 26px;
  59. height: 26px;
  60. color: @text-color-secondary;
  61. border: 2px solid @text-color-secondary;
  62. border-radius: 50%;
  63. &:hover,
  64. &:active {
  65. color: #272536;
  66. background-color: transparent;
  67. border: 2px solid #272536;
  68. }
  69. }
  70. .ant-input-affix-wrapper {
  71. height: 46px;
  72. padding: 1px 11px;
  73. }
  74. .ant-select-single {
  75. height: 46px;
  76. }
  77. .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  78. line-height: 46px;
  79. }
  80. }
  81. // Confirm Modal
  82. .ant-modal-confirm {
  83. .ant-modal-content {
  84. padding: 40px 67px;
  85. background-image: url(/assets/images/modal-back.png);
  86. background-repeat: no-repeat;
  87. background-position: top center;
  88. background-size: 100%;
  89. border-radius: 20px;
  90. }
  91. .ant-modal-confirm-body {
  92. .anticon {
  93. display: none;
  94. }
  95. }
  96. .ant-modal-confirm-paragraph {
  97. max-width: 100%;
  98. margin-top: 27px;
  99. text-align: center;
  100. }
  101. .ant-modal-confirm-btns {
  102. margin-top: 40px;
  103. text-align: center;
  104. .ant-btn {
  105. height: 40px;
  106. padding: 0 30px;
  107. font-size: @font-size-content;
  108. border-radius: 10px;
  109. }
  110. .ant-btn-default {
  111. color: @text-color;
  112. background: rgba(22, 100, 255, 0.06);
  113. border-color: transparent;
  114. }
  115. .ant-btn + .ant-btn {
  116. margin-left: 20px;
  117. }
  118. }
  119. }