index.less 8.8 KB

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