index.less 7.8 KB

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