index.less 7.9 KB

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