index.less 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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-input-number-handler-wrap{
  20. display: none;
  21. }
  22. /* 扩展ant design pro按钮组件颜色 */
  23. .ant-btn-primary.button-primary {
  24. background-color: #39f;
  25. border-color: #39f;
  26. margin: 0 5px;
  27. font-size: 12px;
  28. &:hover, &:focus {
  29. background-color: #52a6fb;
  30. border-color: #52a6fb;
  31. }
  32. &:active, &.active {
  33. background-color: #3d80bf;
  34. border-color: #3d80bf;
  35. }
  36. }
  37. .ant-btn-primary.button-info {
  38. background-color: #2db7f5;
  39. border-color: #2db7f5;
  40. margin: 0 5px;
  41. font-size: 12px;
  42. &:hover, &:focus {
  43. background-color: #32c8f5;
  44. border-color: #32c8f5;
  45. }
  46. &:active, &.active {
  47. background-color: #27a3d8;
  48. border-color: #27a3d8;
  49. }
  50. }
  51. .ant-btn-primary.button-success {
  52. background-color: #0c6;
  53. border-color: #0c6;
  54. margin: 0 5px;
  55. font-size: 12px;
  56. &:hover, &:focus {
  57. background-color: #01dc8c;
  58. border-color: #01dc8c;
  59. }
  60. &:active, &.active {
  61. background-color: #00af57;
  62. border-color: #00af57;
  63. }
  64. }
  65. .ant-btn-primary.button-warning {
  66. background-color: #f90;
  67. border-color: #f90;
  68. margin: 0 5px;
  69. font-size: 12px;
  70. &:hover, &:focus {
  71. background-color: #ffb60a;
  72. border-color: #ffb60a;
  73. }
  74. &:active, &.active {
  75. background-color: #dd8500;
  76. border-color: #dd8500;
  77. }
  78. }
  79. .ant-btn-primary.button-error {
  80. background-color: #f30;
  81. border-color: #f30;
  82. margin: 0 5px;
  83. font-size: 12px;
  84. &:hover, &:focus {
  85. background-color: #ff6666;
  86. border-color: #ff6666;
  87. }
  88. &:active, &.active {
  89. background-color: #d62a00;
  90. border-color: #d62a00;
  91. }
  92. }
  93. .ant-btn-primary.button-geekblue {
  94. background-color: #2F54EB;
  95. border-color: #2F54EB;
  96. margin: 0 5px;
  97. font-size: 12px;
  98. &:hover, &:focus {
  99. background-color: #1d39c4;
  100. border-color: #1d39c4;
  101. }
  102. &:active, &.active {
  103. background-color: #597ef7;
  104. border-color: #597ef7;
  105. }
  106. }
  107. .ant-btn-primary.button-purple {
  108. background-color: #722ED1;
  109. border-color: #722ED1;
  110. margin: 0 5px;
  111. font-size: 12px;
  112. &:hover, &:focus {
  113. background-color: #9254de;
  114. border-color: #9254de;
  115. }
  116. &:active, &.active {
  117. background-color: #531dab;
  118. border-color: #531dab;
  119. }
  120. }
  121. .ant-btn-primary.button-grey {
  122. background-color: #82848a;
  123. border-color: #82848a;
  124. margin: 0 5px;
  125. font-size: 12px;
  126. &:hover, &:focus {
  127. background-color: #909399;
  128. border-color: #909399;
  129. }
  130. &:active, &.active {
  131. background-color: #c8c9cc;
  132. border-color: #c8c9cc;
  133. }
  134. }
  135. // btn-link
  136. .ant-btn-link.button-default {
  137. color: #1b1b1b;
  138. &:hover, &:focus {
  139. color: #66696d;
  140. }
  141. &:active, &.active {
  142. color: #8e8f91;
  143. }
  144. }
  145. .ant-btn-link.button-primary {
  146. color: #39f;
  147. &:hover, &:focus {
  148. color: #52a6fb;
  149. }
  150. &:active, &.active {
  151. color: #3d80bf;
  152. }
  153. }
  154. .ant-btn-link.button-info {
  155. color: #2db7f5;
  156. &:hover, &:focus {
  157. color: #32c8f5;
  158. }
  159. &:active, &.active {
  160. color: #27a3d8;
  161. }
  162. }
  163. .ant-btn-link.button-success {
  164. color: #0c6;
  165. &:hover, &:focus {
  166. color: #01dc8c;
  167. }
  168. &:active, &.active {
  169. color: #00af57;
  170. }
  171. }
  172. .ant-btn-link.button-warning {
  173. color: #aa6a02;
  174. &:hover, &:focus {
  175. color: #c68d07;
  176. }
  177. &:active, &.active {
  178. color: #dd8500;
  179. }
  180. }
  181. .ant-btn-link.button-error {
  182. color: #f30;
  183. &:hover, &:focus {
  184. color: #ff6666;
  185. }
  186. &:active, &.active {
  187. color: #d62a00;
  188. }
  189. }
  190. .ant-btn-link.button-geekblue {
  191. color: #2F54EB;
  192. &:hover, &:focus {
  193. color: #1d39c4;
  194. }
  195. &:active, &.active {
  196. color: #597ef7;
  197. }
  198. }
  199. .ant-btn-link.button-purple {
  200. color: #722ED1;
  201. &:hover, &:focus {
  202. color: #9254de;
  203. }
  204. &:active, &.active {
  205. color: #531dab;
  206. }
  207. }
  208. .ant-btn-link.button-grey {
  209. color: #82848a;
  210. &:hover, &:focus {
  211. color: #909399;
  212. }
  213. &:active, &.active {
  214. color: #c8c9cc;
  215. }
  216. }
  217. // 查询条件样式
  218. .table-page-search-wrapper {
  219. .ant-form.ant-form-inline{
  220. .ant-form-item {
  221. margin-bottom: 10px!important;
  222. .ant-input,.ant-select-selection{
  223. border-radius: 2px;
  224. padding: 0px 11px;
  225. font-size: 12px;
  226. }
  227. .ant-select-auto-complete{
  228. .ant-select-selection{
  229. padding: 0px;
  230. }
  231. }
  232. .ant-form-item-label{
  233. line-height: 32px!important;
  234. padding-right: 8px!important;
  235. }
  236. .ant-form-item-control{
  237. line-height: 31px!important;
  238. }
  239. .ant-form-item-control-wrapper{
  240. .ant-select-selection__rendered{
  241. margin: 0!important;
  242. }
  243. }
  244. }
  245. }
  246. .form-model-con.ant-form.ant-form-inline{ // a-form-model 有必选条件(因校验提示信息原因,因此边距需高于无必选条件边距)
  247. .ant-form-item {
  248. margin-bottom: 16px!important;
  249. .ant-form-explain{
  250. font-size: 12px;
  251. }
  252. }
  253. }
  254. .table-page-search-submitButtons {
  255. margin-bottom: 9px;
  256. }
  257. }
  258. // 菜单样式
  259. .sider {
  260. .logo {
  261. h1 {
  262. font-size: 15px!important;
  263. }
  264. }
  265. .ant-menu{
  266. .ant-menu-submenu{
  267. .ant-menu-item{ // 二级菜单左侧缩进
  268. padding-left: 30px!important;
  269. }
  270. }
  271. }
  272. }
  273. // 内容盒子样式
  274. .content {
  275. .table-operator {
  276. padding: 0 0 8px;
  277. button {
  278. margin-right: 8px;
  279. margin-left: 0;
  280. }
  281. }
  282. .table-operator-nobor{
  283. padding: 0 0 10px 0;
  284. button {
  285. margin-right: 5px;
  286. }
  287. }
  288. .affix-cont{
  289. z-index: 99;
  290. position: absolute;
  291. bottom: 0;
  292. left: 0;
  293. width: 100%;
  294. text-align: center;
  295. background-color: #fff;
  296. padding: 7px 0 4px;
  297. box-shadow: 0 0 20px #dcdee2;
  298. }
  299. }
  300. // 确认框居中
  301. .confirm-center{
  302. .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content{
  303. margin-left:0;
  304. }
  305. .ant-modal-confirm-btns{
  306. float: none;
  307. text-align: center;
  308. }
  309. }
  310. // 页签样式
  311. .multi-tab-con{
  312. .ant-tabs-nav-container{
  313. height: 31px!important;
  314. .ant-tabs-tab{
  315. padding: 0 8px!important;
  316. height: 30px!important;
  317. line-height: 30px!important;
  318. }
  319. }
  320. }
  321. // a-alert样式
  322. .ant-alert,.ant-alert-info{
  323. .ant-alert-icon{
  324. top: 6.5px!important;
  325. left: 5px!important;
  326. }
  327. padding: 3px 10px!important;
  328. border-radius: 2px!important;
  329. }
  330. .header{
  331. .ant-alert,.ant-alert-info{
  332. .ant-alert-icon{
  333. top: 6.5px!important;
  334. left: 5px!important;
  335. }
  336. padding: 3px 20px!important;
  337. border-radius: 2px!important;
  338. }
  339. }
  340. .ant-page-header{
  341. padding: 5px 10px!important;
  342. }
  343. // 表格 样式
  344. .sTable{
  345. .ant-table{
  346. .ant-table-content{
  347. .ant-table-header tr th, .ant-table-thead tr th{
  348. background: #fafafa!important;
  349. font-weight: bold;
  350. color: #000!important;
  351. padding: 5px!important;
  352. text-align: center!important;
  353. }
  354. }
  355. }
  356. .ant-pagination.ant-table-pagination{
  357. margin: 10px 0 0;
  358. }
  359. .ant-table-small > .ant-table-content .ant-table-body{
  360. margin: 0;
  361. }
  362. input:disabled{
  363. opacity: 1!important;
  364. color: #fff!important;
  365. -webkit-text-fill-color: #fff!important;
  366. }
  367. .table-td-link{
  368. color: #2A86F4;
  369. cursor: pointer;
  370. &:hover{
  371. text-decoration: underline;
  372. color: #d62a00;
  373. }
  374. }
  375. .ant-table-row{
  376. td{
  377. > div:not(.ant-table-row-expand-icon):empty::after{
  378. content: '--';
  379. }
  380. .ant-select-search__field__mirror{
  381. white-space: pre-wrap;
  382. }
  383. }
  384. }
  385. .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right{
  386. margin: 0;
  387. tr:hover{
  388. td{
  389. > div:not(.ant-table-row-expand-icon):empty::after{
  390. content: '--';
  391. }
  392. }
  393. }
  394. }
  395. }
  396. .sTable.fixPagination{
  397. >.ant-table-wrapper{
  398. height: 100%;
  399. >.ant-spin-nested-loading{
  400. height: 100%;
  401. >.ant-spin-container{
  402. height: 100%;
  403. position: relative;
  404. .ant-pagination.ant-table-pagination{
  405. position: absolute;
  406. right: 0;
  407. bottom: 0;
  408. }
  409. }
  410. }
  411. td > div:not(.ant-table-row-expand-icon):empty{
  412. &::after{
  413. content:'--'
  414. }
  415. }
  416. }
  417. }
  418. .ant-collapse{
  419. .ant-collapse-header{
  420. padding: 3px 0 5px 38px!important;
  421. }
  422. .ant-collapse-content-box{
  423. padding: 10px 10px 5px!important;
  424. .ant-descriptions-item{
  425. padding-bottom: 8px!important;
  426. }
  427. }
  428. }
  429. .ant-form-item-label{
  430. label{
  431. color: #000000!important;
  432. }
  433. }
  434. .ant-alert-message, .ant-card-head{
  435. color: #000000!important;
  436. }
  437. .ant-input-number-disabled,.ant-input-disabled,.ant-select-disabled .ant-select-selection,.ant-input[disabled],.ant-input-number input[readonly]{
  438. background-color: #F8F8F8!important;
  439. color: #333!important;
  440. cursor: not-allowed;
  441. }
  442. .ant-cascader-picker-disabled .ant-cascader-picker-label{
  443. color: #333!important;
  444. }