index.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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. // btn-link
  95. .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 {
  96. color: #39f;
  97. &:hover, &:focus {
  98. color: #48b7fb;
  99. }
  100. &:active, &.active {
  101. color: #3d80bf;
  102. }
  103. }
  104. .ant-btn-link.button-success {
  105. color: #0c6;
  106. &:hover, &:focus {
  107. color: #01dc8c;
  108. }
  109. &:active, &.active {
  110. color: #00af57;
  111. }
  112. }
  113. .ant-btn-link.button-error {
  114. color: #f30;
  115. &:hover, &:focus {
  116. color: #ff6666;
  117. }
  118. &:active, &.active {
  119. color: #d62a00;
  120. }
  121. }
  122. .ant-btn-link.button-default {
  123. color: #1b1b1b;
  124. &:hover, &:focus {
  125. color: #66696d;
  126. }
  127. &:active, &.active {
  128. color: #8e8f91;
  129. }
  130. }
  131. .ant-btn-primary.button-warn {
  132. background-color: #f90;
  133. border-color: #f90;
  134. margin: 0 5px;
  135. font-size: 12px;
  136. &:hover, &:focus {
  137. background-color: #ffb60a;
  138. border-color: #ffb60a;
  139. }
  140. &:active, &.active {
  141. background-color: #dd8500;
  142. border-color: #dd8500;
  143. }
  144. }
  145. .ant-btn-link.button-grey {
  146. color: #82848a;
  147. &:hover, &:focus {
  148. color: #909399;
  149. }
  150. &:active, &.active {
  151. color: #c8c9cc;
  152. }
  153. }
  154. .link-bule{
  155. color: #39f;
  156. cursor: pointer;
  157. &:hover, &:focus {
  158. color: #4bc3fb;
  159. text-decoration: underline;
  160. }
  161. &:active, &.active {
  162. color: #3d80bf;
  163. }
  164. }
  165. // 查询条件样式
  166. .table-page-search-wrapper {
  167. margin-bottom: 6px;
  168. .ant-form.ant-form-inline .ant-form-item .ant-input, .ant-form.ant-form-inline .ant-form-item .ant-select-selection{
  169. border:0;
  170. box-shadow: none !important;
  171. }
  172. .ant-form.ant-form-inline .ant-form-item{
  173. border:1px solid #dadada;
  174. border-radius: 3px;
  175. overflow: hidden;
  176. margin-bottom: 10px!important;
  177. .ant-form-item-label{
  178. padding-left: 11px;
  179. padding-right: 0!important;
  180. }
  181. }
  182. .ant-input-group-addon{
  183. border: 0;
  184. }
  185. .form-model-con.ant-form.ant-form-inline{ // a-form-model 有必选条件(因校验提示信息原因,因此边距需高于无必选条件边距)
  186. .ant-form-item {
  187. margin-bottom: 16px!important;
  188. .ant-form-explain{
  189. font-size: 12px;
  190. }
  191. }
  192. }
  193. .table-page-search-submitButtons {
  194. margin-bottom: 9px;
  195. }
  196. }
  197. // 菜单样式
  198. .sider {
  199. .logo {
  200. h1 {
  201. font-size: 12px!important;
  202. }
  203. }
  204. .ant-menu{
  205. .ant-menu-submenu{
  206. .ant-menu-item{ // 二级菜单左侧缩进
  207. padding-left: 30px!important;
  208. }
  209. }
  210. }
  211. }
  212. .top-nav-header-index{
  213. .ant-menu{
  214. .ant-menu-item, .ant-menu-submenu-title{
  215. padding: 0 10px;
  216. }
  217. }
  218. }
  219. .ant-menu-submenu{
  220. .ant-menu{
  221. li{
  222. height: 30px;
  223. line-height: 30px;
  224. margin: 5px 0 3px;
  225. }
  226. }
  227. }
  228. // 内容盒子样式
  229. .content {
  230. .table-operator {
  231. padding: 0 0 8px;
  232. button {
  233. margin-right: 8px;
  234. margin-left: 0;
  235. }
  236. }
  237. .table-operator-nobor{
  238. padding: 0 0 10px 0;
  239. button {
  240. margin-right: 5px;
  241. }
  242. }
  243. .affix-cont{
  244. z-index: 99;
  245. position: absolute;
  246. bottom: 0;
  247. left: 0;
  248. width: 100%;
  249. text-align: center;
  250. background-color: #fff;
  251. padding: 7px 0 4px;
  252. box-shadow: 0 0 20px #dcdee2;
  253. }
  254. }
  255. .ant-descriptions-item > span{
  256. word-break: break-all!important;
  257. }
  258. // 页签样式
  259. .multi-tab-con{
  260. .ant-tabs-nav-container{
  261. height: 31px!important;
  262. .ant-tabs-tab{
  263. padding: 0 8px!important;
  264. height: 30px!important;
  265. line-height: 30px!important;
  266. }
  267. }
  268. }
  269. // a-alert样式
  270. .ant-alert,.ant-alert-info{
  271. .ant-alert-icon{
  272. top: 6.5px!important;
  273. left: 5px!important;
  274. }
  275. padding: 3px 10px!important;
  276. border-radius: 2px!important;
  277. }
  278. .ant-page-header{
  279. padding: 5px 10px!important;
  280. }
  281. .ant-radio-disabled + span{
  282. color: rgba(0, 0, 0, 0.6)!important;
  283. }
  284. // 表格 样式
  285. .sTable{
  286. .ant-table{
  287. .ant-table-content{
  288. .ant-table-header tr th, .ant-table-thead tr th{
  289. background: #fafafa!important;
  290. font-weight: bold;
  291. color: #000!important;
  292. padding: 5px!important;
  293. text-align: center!important;
  294. }
  295. }
  296. }
  297. .ant-pagination.ant-table-pagination{
  298. margin: 10px 0 0;
  299. }
  300. .ant-table-small > .ant-table-content .ant-table-body{
  301. margin: 0;
  302. .ant-btn{
  303. user-select: auto !important;
  304. }
  305. }
  306. input:disabled{
  307. opacity: 1!important;
  308. color: #fff!important;
  309. -webkit-text-fill-color: #fff!important;
  310. }
  311. .ant-table-row{
  312. td{
  313. > div:not(.ant-table-row-expand-icon):empty::after{
  314. content: '--';
  315. }
  316. .ant-select-search__field__mirror{
  317. white-space: pre-wrap;
  318. }
  319. }
  320. }
  321. .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right{
  322. margin: 0;
  323. tr:hover{
  324. td{
  325. > div:not(.ant-table-row-expand-icon):empty::after{
  326. content: '--';
  327. }
  328. }
  329. }
  330. }
  331. }
  332. .sTable.fixPagination{
  333. >.ant-table-wrapper{
  334. height: 100%;
  335. >.ant-spin-nested-loading{
  336. height: 100%;
  337. >.ant-spin-container{
  338. height: 100%;
  339. position: relative;
  340. .ant-pagination.ant-table-pagination{
  341. position: absolute;
  342. right: 0;
  343. bottom: 0;
  344. }
  345. }
  346. }
  347. }
  348. }
  349. .ant-collapse{
  350. .ant-collapse-header{
  351. padding: 3px 0 5px 38px!important;
  352. }
  353. .ant-collapse-content-box{
  354. padding: 10px 10px 5px!important;
  355. .ant-descriptions-item{
  356. padding-bottom: 8px!important;
  357. }
  358. }
  359. }
  360. .ant-form-item-label{
  361. label{
  362. color: #000000!important;
  363. }
  364. }
  365. .ant-alert-message, .ant-card-head{
  366. color: #000000!important;
  367. }
  368. .ant-select-disabled .ant-select-selection,.ant-cascader-picker-disabled{
  369. color: #999!important;
  370. }
  371. //头部样式
  372. .header-bar{
  373. margin:6px auto;
  374. .subTitle-word{
  375. font-size: 16px;
  376. font-weight: 600;
  377. display: inline-block;
  378. vertical-align: middle;
  379. color: #333 !important;
  380. }
  381. }
  382. // 数据汇总样式
  383. .gatherMessage {
  384. margin:10px 0;
  385. strong{
  386. color: #ed1c24;
  387. }
  388. }