index.less 7.5 KB

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