index.less 7.5 KB

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