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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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-table-row-selected {
  68. .ant-table-cell {
  69. color: @primary-color;
  70. }
  71. }
  72. .ant-pro-page-container {
  73. overflow-y: auto;
  74. }
  75. // Modal
  76. .ant-modal {
  77. .ant-modal-close {
  78. top: 27px;
  79. right: 27px;
  80. width: 26px;
  81. height: 26px;
  82. color: @text-color-secondary;
  83. border: 2px solid @text-color-secondary;
  84. border-radius: 50%;
  85. &:hover,
  86. &:active {
  87. color: #272536;
  88. background-color: transparent;
  89. border: 2px solid #272536;
  90. }
  91. }
  92. .ant-form-item .ant-form-item-label > label {
  93. font-size: @font-size;
  94. }
  95. // 输入框高度为46px
  96. .ant-input-affix-wrapper {
  97. padding-top: 2px;
  98. padding-bottom: 2px;
  99. .ant-input {
  100. height: 40px;
  101. }
  102. }
  103. .ant-input.ant-input-disabled {
  104. height: 46px;
  105. }
  106. // 选择框高度为46px
  107. .ant-select-single {
  108. height: 46px;
  109. }
  110. .ant-input-number {
  111. .ant-input-number-input {
  112. height: 44px;
  113. }
  114. }
  115. }
  116. // Confirm Modal
  117. .ant-modal-confirm {
  118. .ant-modal-content {
  119. padding: 40px 67px;
  120. background-image: url(@/assets/img/modal-back.png);
  121. background-repeat: no-repeat;
  122. background-position: top center;
  123. background-size: 100%;
  124. border-radius: 20px;
  125. }
  126. .ant-modal-confirm-body {
  127. .anticon {
  128. display: none;
  129. }
  130. }
  131. .ant-modal-confirm-paragraph {
  132. max-width: 100%;
  133. margin-top: 27px;
  134. text-align: center;
  135. }
  136. .ant-modal-confirm-btns {
  137. margin-top: 40px;
  138. text-align: center;
  139. .ant-btn {
  140. height: 40px;
  141. padding: 0 30px;
  142. font-size: @font-size-content;
  143. border-radius: 6px;
  144. }
  145. .ant-btn-default {
  146. border-color: transparent;
  147. }
  148. .ant-btn + .ant-btn {
  149. margin-left: 20px;
  150. }
  151. }
  152. }
  153. // 表单类型为large时,font-size为15px
  154. .ant-form-large {
  155. .ant-form-item-label {
  156. label {
  157. font-size: @font-size;
  158. }
  159. }
  160. }
  161. // 取消 hover 颜色变化
  162. .ant-menu .ant-menu-title-content {
  163. transition: color 0s;
  164. a {
  165. transition: color 0s;
  166. }
  167. }
  168. .ant-pro-sider-collapsed-button {
  169. inset-block-start: 65px !important;
  170. }
  171. .ant-pro-layout .ant-pro-sider-logo > a > h1 {
  172. margin-inline-start: 12px;
  173. }
  174. .ant-pro-layout .ant-pro-sider-logo-collapsed {
  175. padding: 16px 12px;
  176. }
  177. .ant-pro-base-menu-inline .ant-pro-base-menu-inline-menu-item {
  178. transition: padding 0.1s !important;
  179. }
  180. // PageContainer 里的 ProTable 只滑动内容区域
  181. .system-menu.ant-pro-page-container {
  182. height: 100%;
  183. overflow: hidden;
  184. .ant-pro-grid-content {
  185. height: 100%;
  186. .ant-pro-grid-content-children {
  187. height: 100%;
  188. .ant-pro-layout-watermark-wrapper {
  189. height: 100%;
  190. .ant-pro-page-container-children-container {
  191. height: 100%;
  192. padding: 0;
  193. .ant-pro-table {
  194. display: flex;
  195. flex-direction: column;
  196. height: 100%;
  197. .ant-pro-card.ant-pro-table-search {
  198. flex: none;
  199. height: auto;
  200. }
  201. .ant-pro-card {
  202. flex: 1;
  203. min-height: 0;
  204. .ant-pro-card-body {
  205. height: 100%;
  206. .ant-table-wrapper {
  207. height: calc(100% - 64px);
  208. .ant-spin-nested-loading {
  209. height: 100%;
  210. .ant-spin-container {
  211. height: 100%;
  212. .ant-table-fixed-header {
  213. height: 100%;
  214. .ant-table-container {
  215. height: 100%;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }
  228. }