index.less 11 KB

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