custom.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. // 自定义样式文件 覆盖框架样式
  2. body{
  3. font-size: 12px!important;
  4. span,td,label,.ant-btn-sm{
  5. font-size: 12px!important;
  6. }
  7. .ant-form-item-label > label{
  8. color: #000!important;
  9. }
  10. }
  11. // 查询条件样式
  12. .table-page-search-wrapper {
  13. .ant-form.ant-form-inline{
  14. .ant-form-item {
  15. margin-bottom: 10px!important;
  16. .ant-input,.ant-select-selection{
  17. border-radius: 2px;
  18. padding: 0px 11px;
  19. font-size: 12px;
  20. }
  21. .ant-form-item-label{
  22. line-height: 32px!important;
  23. padding-right: 8px!important;
  24. }
  25. .ant-form-item-control{
  26. line-height: 31px!important;
  27. }
  28. .ant-form-item-control-wrapper{
  29. .ant-select-selection__rendered{
  30. margin: 0!important;
  31. }
  32. }
  33. }
  34. }
  35. .form-model-con.ant-form.ant-form-inline{ // a-form-model 有必选条件(因校验提示信息原因,因此边距需高于无必选条件边距)
  36. // .ant-form-item {
  37. // margin-bottom: 16px!important;
  38. // .ant-form-explain{
  39. // font-size: 12px;
  40. // }
  41. // }
  42. .ant-form-item {
  43. margin-bottom: 16px!important;
  44. .ant-form-explain{
  45. font-size: 12px;
  46. }
  47. }
  48. }
  49. .table-page-search-submitButtons {
  50. margin-bottom: 9px;
  51. }
  52. }
  53. // 菜单样式
  54. .sider {
  55. .logo {
  56. h1 {
  57. font-size: 12px!important;
  58. }
  59. }
  60. .ant-menu{
  61. .ant-menu-item{
  62. // padding-left: 10px!important; // 只有一级菜单时的左侧缩进(例:首页)
  63. }
  64. .ant-menu-submenu{
  65. .ant-menu-submenu-title{
  66. // padding-left: 10px!important; // 多级菜单的一级菜单左侧缩进
  67. }
  68. .ant-menu-item{ // 二级菜单左侧缩进
  69. padding-left: 30px!important;
  70. }
  71. }
  72. }
  73. }
  74. // 内容盒子样式
  75. .content {
  76. .table-operator {
  77. // padding: 8px 0;
  78. padding: 0 0 8px;
  79. }
  80. .table-operator-nobor{
  81. padding: 0 0 10px 0;
  82. button {
  83. margin-right: 5px;
  84. }
  85. }
  86. .affix-cont{
  87. z-index: 99;
  88. position: absolute;
  89. bottom: 0;
  90. left: 0;
  91. width: 100%;
  92. text-align: center;
  93. background-color: #fff;
  94. padding: 7px 0 4px;
  95. box-shadow: 0 0 20px #dcdee2;
  96. }
  97. }
  98. // 页签样式
  99. .multi-tab-con{
  100. .ant-tabs-nav-container{
  101. height: 31px!important;
  102. .ant-tabs-tab{
  103. padding: 0 8px!important;
  104. height: 30px!important;
  105. line-height: 30px!important;
  106. }
  107. }
  108. }
  109. // a-alert样式
  110. .ant-alert,.ant-alert-info{
  111. .ant-alert-icon{
  112. top: 6.5px!important;
  113. left: 5px!important;
  114. }
  115. padding: 3px 10px!important;
  116. border-radius: 2px!important;
  117. }
  118. .ant-page-header{
  119. padding: 5px 10px!important;
  120. }
  121. // 折叠面板 样式
  122. .ant-collapse{
  123. .ant-collapse-header{
  124. padding-top: 8px!important;
  125. padding-bottom: 8px!important;
  126. }
  127. .ant-collapse-content-box{
  128. padding: 10px 12px 5px!important;
  129. .ant-descriptions-item{
  130. padding-bottom: 10px!important;
  131. }
  132. }
  133. }
  134. // 表格 样式
  135. .sTable{
  136. .ant-table{
  137. .ant-table-content{
  138. .ant-table-header tr th, .ant-table-thead tr th{
  139. background: #fafafa!important;
  140. font-weight: bold;
  141. color: #000!important;
  142. padding: 5px 5px 2px!important;
  143. }
  144. }
  145. }
  146. .ant-table-row{
  147. .ant-table-row-cell-break-word, td{
  148. padding: 2px 4px!important;
  149. color: #000!important;
  150. }
  151. &:hover{
  152. td{
  153. background: #fff2f0!important;
  154. }
  155. }
  156. }
  157. .ant-pagination.ant-table-pagination{
  158. margin: 10px 0 0;
  159. }
  160. .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right,.ant-table-fixed-left{
  161. margin: 0;
  162. tr:hover{
  163. td{
  164. background: #fff2f0!important;
  165. }
  166. }
  167. }
  168. }
  169. .sTable.fixPagination{
  170. >.ant-table-wrapper{
  171. height: 100%;
  172. >.ant-spin-nested-loading{
  173. height: 100%;
  174. >.ant-spin-container{
  175. height: 100%;
  176. position: relative;
  177. .ant-pagination.ant-table-pagination{
  178. position: absolute;
  179. right: 0;
  180. bottom: 0;
  181. }
  182. }
  183. }
  184. }
  185. }