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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. .ant-input.ant-input-disabled {
  99. height: 46px;
  100. }
  101. // 选择框高度为46px
  102. .ant-select-single {
  103. height: 46px;
  104. }
  105. .ant-input-number {
  106. .ant-input-number-input {
  107. height: 44px;
  108. }
  109. }
  110. }
  111. // Confirm Modal
  112. .ant-modal-confirm {
  113. .ant-modal-content {
  114. padding: 40px 67px;
  115. background-image: url(@/assets/img/modal-back.png);
  116. background-repeat: no-repeat;
  117. background-position: top center;
  118. background-size: 100%;
  119. border-radius: 20px;
  120. }
  121. .ant-modal-confirm-body {
  122. .anticon {
  123. display: none;
  124. }
  125. }
  126. .ant-modal-confirm-paragraph {
  127. max-width: 100%;
  128. margin-top: 27px;
  129. text-align: center;
  130. }
  131. .ant-modal-confirm-btns {
  132. margin-top: 40px;
  133. text-align: center;
  134. .ant-btn {
  135. height: 40px;
  136. padding: 0 30px;
  137. font-size: @font-size-content;
  138. border-radius: 10px;
  139. }
  140. .ant-btn-default {
  141. border-color: transparent;
  142. }
  143. .ant-btn + .ant-btn {
  144. margin-left: 20px;
  145. }
  146. }
  147. }
  148. // 表单类型为large时,font-size为15px
  149. .ant-form-large {
  150. .ant-form-item-label {
  151. label {
  152. font-size: @font-size;
  153. }
  154. }
  155. }
  156. // 取消 hover 颜色变化
  157. .ant-menu .ant-menu-title-content {
  158. transition: color 0s;
  159. a {
  160. transition: color 0s;
  161. }
  162. }
  163. .ant-pro-sider-collapsed-button {
  164. inset-block-start: 65px !important;
  165. }
  166. .ant-pro-layout .ant-pro-sider-logo > a > h1 {
  167. margin-inline-start: 12px;
  168. }
  169. // PageContainer 里的 ProTable 只滑动内容区域
  170. .system-menu.ant-pro-page-container {
  171. height: 100%;
  172. overflow: hidden;
  173. .ant-pro-grid-content {
  174. height: 100%;
  175. .ant-pro-grid-content-children {
  176. height: 100%;
  177. .ant-pro-layout-watermark-wrapper {
  178. height: 100%;
  179. .ant-pro-page-container-children-container {
  180. height: 100%;
  181. padding: 0;
  182. .ant-pro-table {
  183. display: flex;
  184. flex-direction: column;
  185. height: 100%;
  186. .ant-pro-card.ant-pro-table-search {
  187. flex: none;
  188. height: auto;
  189. }
  190. .ant-pro-card {
  191. flex: 1;
  192. min-height: 0;
  193. .ant-pro-card-body {
  194. height: 100%;
  195. .ant-table-wrapper {
  196. height: calc(100% - 64px);
  197. .ant-spin-nested-loading {
  198. height: 100%;
  199. .ant-spin-container {
  200. height: 100%;
  201. .ant-table-fixed-header {
  202. height: 100%;
  203. .ant-table-container {
  204. height: 100%;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }
  217. }