index.less 7.4 KB

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