index.less 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. .sider {
  184. .logo {
  185. h1 {
  186. font-size: 12px!important;
  187. }
  188. }
  189. .ant-menu{
  190. .ant-menu-submenu{
  191. .ant-menu-item{ // 二级菜单左侧缩进
  192. padding-left: 20px!important;
  193. }
  194. }
  195. }
  196. }
  197. .top-nav-header-index{
  198. .ant-menu{
  199. .ant-menu-item, .ant-menu-submenu-title{
  200. padding: 0 10px;
  201. }
  202. }
  203. }
  204. .ant-menu-submenu{
  205. .ant-menu{
  206. li{
  207. height: 30px;
  208. line-height: 30px;
  209. margin: 5px 0 3px;
  210. }
  211. }
  212. }
  213. .ant-descriptions-item > span{
  214. word-break: break-all!important;
  215. }
  216. // 页签样式
  217. .multi-tab-con{
  218. .ant-tabs-nav-container{
  219. height: 31px!important;
  220. .ant-tabs-tab{
  221. padding: 0 8px!important;
  222. height: 30px!important;
  223. line-height: 30px!important;
  224. }
  225. }
  226. }
  227. // a-alert样式
  228. .ant-alert,.ant-alert-info{
  229. .ant-alert-icon{
  230. top: 6.5px!important;
  231. left: 5px!important;
  232. }
  233. padding: 3px 10px!important;
  234. border-radius: 2px!important;
  235. }
  236. .ant-page-header{
  237. padding: 5px 10px!important;
  238. }
  239. .ant-radio-disabled + span{
  240. color: rgba(0, 0, 0, 0.6)!important;
  241. }
  242. // 表格 样式
  243. .sTable{
  244. .ant-table{
  245. .ant-table-content{
  246. .ant-table-header tr th, .ant-table-thead tr th{
  247. background: #fafafa!important;
  248. font-weight: bold;
  249. color: #000!important;
  250. padding: 5px!important;
  251. text-align: center!important;
  252. }
  253. }
  254. }
  255. .ant-pagination.ant-table-pagination{
  256. margin: 10px 0 0;
  257. }
  258. .ant-table-small > .ant-table-content .ant-table-body{
  259. margin: 0;
  260. .ant-btn{
  261. user-select: auto !important;
  262. }
  263. }
  264. input:disabled{
  265. opacity: 1!important;
  266. color: #fff!important;
  267. -webkit-text-fill-color: #fff!important;
  268. }
  269. .ant-table-row{
  270. td{
  271. > div:not(.ant-table-row-expand-icon):empty::after{
  272. content: '--';
  273. }
  274. .ant-select-search__field__mirror{
  275. white-space: pre-wrap;
  276. }
  277. }
  278. }
  279. .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right{
  280. margin: 0;
  281. tr:hover{
  282. td{
  283. > div:not(.ant-table-row-expand-icon):empty::after{
  284. content: '--';
  285. }
  286. }
  287. }
  288. }
  289. }
  290. .sTable.fixPagination{
  291. >.ant-table-wrapper{
  292. height: 100%;
  293. >.ant-spin-nested-loading{
  294. height: 100%;
  295. >.ant-spin-container{
  296. height: 100%;
  297. position: relative;
  298. .ant-pagination.ant-table-pagination{
  299. float: none;
  300. text-align: center;
  301. position: absolute;
  302. width: 100%;
  303. left: 0;
  304. bottom: 0;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. .ant-collapse{
  311. .ant-collapse-header{
  312. padding: 3px 0 5px 38px!important;
  313. }
  314. .ant-collapse-content-box{
  315. padding: 10px 10px 5px!important;
  316. .ant-descriptions-item{
  317. padding-bottom: 8px!important;
  318. }
  319. }
  320. }
  321. .ant-form-item-label{
  322. label{
  323. color: #000000!important;
  324. }
  325. }
  326. .ant-alert-message, .ant-card-head{
  327. color: #000000!important;
  328. }
  329. .ant-select-disabled .ant-select-selection,.ant-cascader-picker-disabled{
  330. color: #999!important;
  331. }
  332. //头部样式
  333. .header-bar{
  334. margin:6px auto;
  335. .subTitle-word{
  336. font-size: 16px;
  337. font-weight: 600;
  338. display: inline-block;
  339. vertical-align: middle;
  340. color: #333 !important;
  341. }
  342. }
  343. // 数据汇总样式
  344. .gatherMessage {
  345. margin:10px 0;
  346. strong{
  347. color: #ed1c24;
  348. }
  349. }
  350. // 确认框居中
  351. .confirm-center{
  352. .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content{
  353. margin-left:0;
  354. }
  355. .ant-modal-confirm-btns{
  356. float: none;
  357. text-align: center;
  358. }
  359. }