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 4.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. // 设置 Table 可以滑动,没有分页
  28. .vertical-scroll-table-no-page {
  29. .ant-table-wrapper {
  30. height: 100%;
  31. .ant-spin-nested-loading {
  32. height: 100%;
  33. .ant-spin-container {
  34. height: 100%;
  35. .ant-table {
  36. height: 100%;
  37. .ant-table-container {
  38. height: 100%;
  39. .ant-table-body {
  40. overflow-y: auto !important;
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. // Tabs 样式
  49. // 删除底部白色横线
  50. .ant-tabs {
  51. .ant-tabs-nav::before {
  52. border: none;
  53. }
  54. // 删除下边的 margin-bottom
  55. .ant-tabs-nav {
  56. margin-bottom: 0;
  57. }
  58. }
  59. // 表格样式
  60. .ant-table-header {
  61. border: 1px solid rgba(167, 178, 194, 0.17);
  62. border-bottom: none;
  63. }
  64. .ant-table-wrapper .ant-table-thead > tr > td {
  65. background-color: #fff;
  66. }
  67. .ant-pro-page-container {
  68. overflow-y: auto;
  69. }
  70. // Modal
  71. .ant-modal {
  72. .ant-modal-close {
  73. top: 27px;
  74. right: 27px;
  75. width: 26px;
  76. height: 26px;
  77. color: @text-color-secondary;
  78. border: 2px solid @text-color-secondary;
  79. border-radius: 50%;
  80. &:hover,
  81. &:active {
  82. color: #272536;
  83. background-color: transparent;
  84. border: 2px solid #272536;
  85. }
  86. }
  87. .ant-form-item .ant-form-item-label > label {
  88. font-size: @font-size;
  89. }
  90. // 输入框高度为46px
  91. .ant-input-affix-wrapper {
  92. padding-top: 2px;
  93. padding-bottom: 2px;
  94. .ant-input {
  95. height: 40px;
  96. }
  97. }
  98. // 选择框高度为46px
  99. .ant-select-single {
  100. height: 46px;
  101. }
  102. .ant-input-number {
  103. .ant-input-number-input {
  104. height: 44px;
  105. }
  106. }
  107. }
  108. // Confirm Modal
  109. .ant-modal-confirm {
  110. .ant-modal-content {
  111. padding: 40px 67px;
  112. background-image: url(@/assets/img/modal-back.png);
  113. background-repeat: no-repeat;
  114. background-position: top center;
  115. background-size: 100%;
  116. border-radius: 20px;
  117. }
  118. .ant-modal-confirm-body {
  119. .anticon {
  120. display: none;
  121. }
  122. }
  123. .ant-modal-confirm-paragraph {
  124. max-width: 100%;
  125. margin-top: 27px;
  126. text-align: center;
  127. }
  128. .ant-modal-confirm-btns {
  129. margin-top: 40px;
  130. text-align: center;
  131. .ant-btn {
  132. height: 40px;
  133. padding: 0 30px;
  134. font-size: @font-size-content;
  135. border-radius: 10px;
  136. }
  137. .ant-btn-default {
  138. border-color: transparent;
  139. }
  140. .ant-btn + .ant-btn {
  141. margin-left: 20px;
  142. }
  143. }
  144. }
  145. // 表单类型为large时,font-size为15px
  146. .ant-form-large {
  147. .ant-form-item-label {
  148. label {
  149. font-size: @font-size;
  150. }
  151. }
  152. }
  153. // 取消 hover 颜色变化
  154. .ant-menu .ant-menu-title-content {
  155. transition: color 0s;
  156. a {
  157. transition: color 0s;
  158. }
  159. }
  160. .ant-pro-sider-collapsed-button {
  161. inset-block-start: 65px !important;
  162. }
  163. .ant-pro-layout .ant-pro-sider-logo > a > h1 {
  164. margin-inline-start: 12px;
  165. }
  166. // PageContainer 里的 ProTable 只滑动内容区域
  167. .system-menu.ant-pro-page-container {
  168. height: 100%;
  169. overflow: hidden;
  170. .ant-pro-grid-content {
  171. height: 100%;
  172. .ant-pro-grid-content-children {
  173. height: 100%;
  174. .ant-pro-layout-watermark-wrapper {
  175. height: 100%;
  176. .ant-pro-page-container-children-container {
  177. height: 100%;
  178. padding: 0;
  179. .ant-pro-table {
  180. display: flex;
  181. flex-direction: column;
  182. height: 100%;
  183. .ant-pro-card.ant-pro-table-search {
  184. flex: none;
  185. height: auto;
  186. }
  187. .ant-pro-card {
  188. flex: 1;
  189. min-height: 0;
  190. .ant-pro-card-body {
  191. height: 100%;
  192. .ant-table-wrapper {
  193. height: calc(100% - 64px);
  194. .ant-spin-nested-loading {
  195. height: 100%;
  196. .ant-spin-container {
  197. height: 100%;
  198. .ant-table-fixed-header {
  199. height: 100%;
  200. .ant-table-container {
  201. height: 100%;
  202. }
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }