index.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. @import '~ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件
  2. // @import "~ant-design-vue/lib/style/index";
  3. @import './newThem.less'; // 用于覆盖上面定义的变量
  4. // The prefix to use on all css classes from ant-pro.
  5. @ant-pro-prefix : ant-pro;
  6. @ant-global-sider-zindex : 106;
  7. @ant-global-header-zindex : 105;
  8. .text-overflow{
  9. overflow: hidden;
  10. text-overflow:ellipsis;
  11. white-space: nowrap;
  12. }
  13. .text-overflows{
  14. display: -webkit-box;
  15. -webkit-box-orient: vertical;
  16. -webkit-line-clamp: 3;
  17. overflow: hidden;
  18. }
  19. /* 扩展ant design pro按钮组件颜色 */
  20. .ant-btn-primary.button-primary,.ant-btn-primary.button-info,.ant-btn-primary.button-warning,.ant-btn-primary.button-geekblue,.ant-btn-primary.button-purple {
  21. background-color: #39f;
  22. border-color: #39f;
  23. margin: 0 5px;
  24. font-size: 12px;
  25. &:hover, &:focus {
  26. background-color: #52a6fb;
  27. border-color: #52a6fb;
  28. }
  29. &:active, &.active {
  30. background-color: #3d80bf;
  31. border-color: #3d80bf;
  32. }
  33. }
  34. .ant-btn-primary.button-primary[disabled],.ant-btn-primary.button-info[disabled],.ant-btn-primary.button-warning[disabled],.ant-btn-primary.button-geekblue[disabled],.ant-btn-primary.button-purple[disabled]{
  35. color: rgba(255, 255, 255, 0.5);
  36. }
  37. .ant-btn-primary.button-success {
  38. background-color: #11b116;
  39. border-color: #00af54;
  40. margin: 0 5px;
  41. font-size: 12px;
  42. &:hover, &:focus {
  43. background-color: #01dc8c;
  44. border-color: #01dc8c;
  45. }
  46. &:active, &.active {
  47. background-color: #00af57;
  48. border-color: #00af57;
  49. }
  50. }
  51. .ant-btn-primary.button-error {
  52. background-color: #f30;
  53. border-color: #f30;
  54. margin: 0 5px;
  55. font-size: 12px;
  56. &:hover, &:focus {
  57. background-color: #ff6666;
  58. border-color: #ff6666;
  59. }
  60. &:active, &.active {
  61. background-color: #d62a00;
  62. border-color: #d62a00;
  63. }
  64. }
  65. .ant-btn-primary.button-grey {
  66. background-color: #82848a;
  67. border-color: #82848a;
  68. margin: 0 5px;
  69. font-size: 12px;
  70. &:hover, &:focus {
  71. background-color: #909399;
  72. border-color: #909399;
  73. }
  74. &:active, &.active {
  75. background-color: #c8c9cc;
  76. border-color: #c8c9cc;
  77. }
  78. }
  79. // btn-link
  80. .ant-btn-link.button-primary,.ant-btn-link.button-info,.ant-btn-link.button-warning,.ant-btn-link.button-purple,.ant-btn-link.button-geekblue {
  81. color: #39f;
  82. &:hover, &:focus {
  83. color: #48b7fb;
  84. }
  85. &:active, &.active {
  86. color: #3d80bf;
  87. }
  88. }
  89. .ant-btn-link.button-success {
  90. color: #0c6;
  91. &:hover, &:focus {
  92. color: #01dc8c;
  93. }
  94. &:active, &.active {
  95. color: #00af57;
  96. }
  97. }
  98. .ant-btn-link.button-error {
  99. color: #f30;
  100. &:hover, &:focus {
  101. color: #ff6666;
  102. }
  103. &:active, &.active {
  104. color: #d62a00;
  105. }
  106. }
  107. .ant-btn-link.button-default {
  108. color: #1b1b1b;
  109. &:hover, &:focus {
  110. color: #66696d;
  111. }
  112. &:active, &.active {
  113. color: #8e8f91;
  114. }
  115. }
  116. .ant-btn-link.button-grey {
  117. color: #82848a;
  118. &:hover, &:focus {
  119. color: #909399;
  120. }
  121. &:active, &.active {
  122. color: #c8c9cc;
  123. }
  124. }
  125. .link-bule{
  126. color: #39f;
  127. cursor: pointer;
  128. &:hover, &:focus {
  129. color: #4bc3fb;
  130. text-decoration: underline;
  131. }
  132. &:active, &.active {
  133. color: #3d80bf;
  134. }
  135. }
  136. // 查询条件样式
  137. .table-page-search-wrapper {
  138. .ant-form.ant-form-inline{
  139. .ant-form-item {
  140. margin-bottom: 10px!important;
  141. .ant-input,.ant-select-selection{
  142. border-radius: 2px;
  143. padding: 0px 11px;
  144. font-size: 12px;
  145. }
  146. .ant-form-item-label{
  147. line-height: 32px!important;
  148. padding-right: 8px!important;
  149. }
  150. .ant-form-item-control{
  151. line-height: 31px!important;
  152. }
  153. .ant-form-item-control-wrapper{
  154. .ant-select-selection__rendered{
  155. margin: 0!important;
  156. }
  157. }
  158. }
  159. }
  160. .form-model-con.ant-form.ant-form-inline{ // a-form-model 有必选条件(因校验提示信息原因,因此边距需高于无必选条件边距)
  161. .ant-form-item {
  162. margin-bottom: 16px!important;
  163. .ant-form-explain{
  164. font-size: 12px;
  165. }
  166. }
  167. }
  168. .table-page-search-submitButtons {
  169. margin-bottom: 9px;
  170. }
  171. }
  172. // 菜单样式
  173. .sider {
  174. .logo {
  175. h1 {
  176. font-size: 12px!important;
  177. }
  178. }
  179. .ant-menu{
  180. .ant-menu-submenu{
  181. .ant-menu-item{ // 二级菜单左侧缩进
  182. padding-left: 30px!important;
  183. }
  184. }
  185. }
  186. }
  187. .top-nav-header-index{
  188. .ant-menu{
  189. .ant-menu-item, .ant-menu-submenu-title{
  190. padding: 0 10px;
  191. }
  192. }
  193. }
  194. .ant-menu-submenu{
  195. .ant-menu{
  196. li{
  197. height: 30px;
  198. line-height: 30px;
  199. margin: 5px 0 3px;
  200. }
  201. }
  202. }
  203. // 内容盒子样式
  204. .content {
  205. .table-operator {
  206. padding: 0 0 8px;
  207. button {
  208. margin-right: 8px;
  209. margin-left: 0;
  210. }
  211. }
  212. .table-operator-nobor{
  213. padding: 0 0 10px 0;
  214. button {
  215. margin-right: 5px;
  216. }
  217. }
  218. .affix-cont{
  219. z-index: 99;
  220. position: absolute;
  221. bottom: 0;
  222. left: 0;
  223. width: 100%;
  224. text-align: center;
  225. background-color: #fff;
  226. padding: 7px 0 4px;
  227. box-shadow: 0 0 20px #dcdee2;
  228. }
  229. }
  230. .ant-descriptions-item > span{
  231. word-break: break-all!important;
  232. }
  233. // 页签样式
  234. .multi-tab-con{
  235. .ant-tabs-nav-container{
  236. height: 31px!important;
  237. .ant-tabs-tab{
  238. padding: 0 8px!important;
  239. height: 30px!important;
  240. line-height: 30px!important;
  241. }
  242. }
  243. }
  244. // a-alert样式
  245. .ant-alert,.ant-alert-info{
  246. .ant-alert-icon{
  247. top: 6.5px!important;
  248. left: 5px!important;
  249. }
  250. padding: 3px 10px!important;
  251. border-radius: 2px!important;
  252. }
  253. .ant-page-header{
  254. padding: 5px 10px!important;
  255. }
  256. // 表格 样式
  257. .sTable{
  258. .ant-table{
  259. .ant-table-content{
  260. .ant-table-header tr th, .ant-table-thead tr th{
  261. background: #fafafa!important;
  262. font-weight: bold;
  263. color: #000!important;
  264. padding: 5px!important;
  265. text-align: center!important;
  266. }
  267. }
  268. }
  269. .ant-pagination.ant-table-pagination{
  270. margin: 10px 0 0;
  271. }
  272. .ant-table-small > .ant-table-content .ant-table-body{
  273. margin: 0;
  274. .ant-btn{
  275. user-select: auto !important;
  276. }
  277. }
  278. input:disabled{
  279. opacity: 1!important;
  280. color: #fff!important;
  281. -webkit-text-fill-color: #fff!important;
  282. }
  283. .ant-table-row{
  284. td{
  285. > div:empty::after{
  286. content: '--';
  287. }
  288. .ant-select-search__field__mirror{
  289. white-space: pre-wrap;
  290. }
  291. }
  292. }
  293. .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right{
  294. margin: 0;
  295. tr:hover{
  296. td{
  297. > div:empty::after{
  298. content: '--';
  299. }
  300. }
  301. }
  302. }
  303. }
  304. .sTable.fixPagination{
  305. >.ant-table-wrapper{
  306. height: 100%;
  307. >.ant-spin-nested-loading{
  308. height: 100%;
  309. >.ant-spin-container{
  310. height: 100%;
  311. position: relative;
  312. .ant-pagination.ant-table-pagination{
  313. position: absolute;
  314. right: 0;
  315. bottom: 0;
  316. }
  317. }
  318. }
  319. }
  320. }
  321. .ant-collapse{
  322. .ant-collapse-header{
  323. padding: 3px 0 5px 38px!important;
  324. }
  325. .ant-collapse-content-box{
  326. padding: 10px 10px 5px!important;
  327. .ant-descriptions-item{
  328. padding-bottom: 8px!important;
  329. }
  330. }
  331. }
  332. .ant-form-item-label{
  333. label{
  334. color: #000000!important;
  335. }
  336. }
  337. .ant-alert-message, .ant-card-head{
  338. color: #000000!important;
  339. }
  340. .ant-select-disabled .ant-select-selection,.ant-cascader-picker-disabled{
  341. color: #999!important;
  342. }