tableBase.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. @mixin button{
  2. width: 75px ;
  3. height: 28px ;
  4. border-radius: 4px ;
  5. border-width: 1px;
  6. border-style: solid;
  7. padding-left: 0px ;
  8. padding-right: 0px;
  9. text-align: center;
  10. padding-top: 0px;
  11. padding-bottom: 0px;
  12. font-size: 12px;
  13. font-family: Microsoft Yahei UI;
  14. }
  15. @mixin scrollBar {
  16. &:hover{
  17. &::-webkit-scrollbar-thumb {
  18. background-color: hsla(220, 100%, 62%, .3);
  19. }
  20. }
  21. &::-webkit-scrollbar-track-piece {
  22. background: rgba(255,255,255,0);
  23. }
  24. &::-webkit-scrollbar {
  25. width: 7px ;
  26. }
  27. &::-webkit-scrollbar-thumb {
  28. background-color: hsla(220, 100%, 62%, 0);
  29. transition: all .25s;
  30. -webkit-transition: all .25s ease-in-out 0s;
  31. border-radius: 20px;
  32. &:hover{
  33. background-color: hsla(220, 100%, 62%, .6);
  34. }
  35. }
  36. }
  37. .Myel-button{
  38. @include button;
  39. }
  40. .Myel-row{
  41. margin-bottom: 8px;
  42. &>button{
  43. @include button;
  44. }
  45. }
  46. .Myel-dialog{
  47. // .el-dialog{
  48. // height:80%
  49. // }
  50. @include scrollBar();
  51. border-radius: 8px !important;
  52. .el-dialog__footer{
  53. margin-bottom: 0px;
  54. .el-button{
  55. border-radius: 4px;
  56. @include button;
  57. }
  58. .el-button--default{
  59. color: hsla(220, 100%, 62%, 1);
  60. border-color: hsla(220, 100%, 62%, 1);
  61. }
  62. }
  63. .el-dialog__body{
  64. padding: 16px;
  65. height: 550px;
  66. overflow: auto;
  67. @include scrollBar()
  68. }
  69. .el-dialog__header{
  70. height: 40px;
  71. margin: 0px ;
  72. padding:0px;
  73. span{
  74. line-height: 40px;
  75. font-size: 14px;
  76. margin-left: 16px;
  77. font-weight: bold;
  78. color: hsla(0, 0%, 100%, 1);
  79. }
  80. button{
  81. transform: scale((20/16),(20/16));
  82. top: 10px;
  83. i{
  84. color: hsla(0, 0%, 100%, 1) ;
  85. }
  86. }
  87. }
  88. }
  89. .Myel-form{
  90. position: relative;
  91. #right{
  92. width: 220px;
  93. height: 35px;
  94. .el-form-item__content{
  95. position: absolute;
  96. text-align: right;
  97. right: 0px;
  98. }
  99. }
  100. .el-form-item{
  101. margin-bottom: 16px;
  102. margin-right: 0px;
  103. text-align: left;
  104. .el-form-item__label{
  105. color: hsla(222, 15%, 50%, 1);
  106. width: 120px ;
  107. padding-right: 16px;;
  108. height: 30px;
  109. }
  110. .el-form-item__content{
  111. width: 220px;
  112. height: auto;
  113. &>.el-input{
  114. width: 220px;
  115. &>input{
  116. width: 220px;
  117. height: 30px ;
  118. border-radius: 4px;
  119. border:1px solid hsla(212, 26%, 80%, 1);
  120. }
  121. }
  122. .el-date-editor{
  123. width: 100%;
  124. height: 30px;
  125. line-height: 30px;
  126. &>i{
  127. height: 30px;
  128. line-height: 30px;
  129. }
  130. &>span{
  131. height: 30px;
  132. line-height: 30px;
  133. }
  134. }
  135. textarea{
  136. width: 220px;
  137. height: 60px;
  138. border-radius: 4px;
  139. border:1px solid hsla(212, 26%, 80%, 1);
  140. }
  141. &>button{
  142. @include button;
  143. }
  144. .el-button--default{
  145. color: hsla(220, 100%, 62%, 1);
  146. border-color: hsla(220, 100%, 62%, 1);
  147. }
  148. &>.el-select{
  149. line-height: 30px;
  150. .el-select__tags{
  151. height: 30px;
  152. line-height: 30px;
  153. }
  154. &>.el-input{
  155. width: 220px;
  156. height: 30px ;
  157. .el-input__suffix{
  158. line-height: 30px;
  159. }
  160. input{
  161. width: 220px;
  162. height: 30px ;
  163. border-radius: 4px;
  164. border:1px solid hsla(212, 26%, 80%, 1);
  165. line-height: 30px;
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }
  172. #Mypagination-container{
  173. height: 32px !important;
  174. margin-top: 0px !important;
  175. padding-top: 0px !important;
  176. padding-right: 0px !important;
  177. .el-pagination{
  178. &>span{
  179. margin: 0px;
  180. font-size: 14px !important;
  181. }
  182. &>ul{
  183. &>li{
  184. font-size: 14px !important;
  185. padding: 0px;
  186. margin:0px 2px
  187. }
  188. }
  189. transform: scale(0.7,0.7) !important;
  190. transform-origin: 100% 0;
  191. .active{
  192. background-color: hsla(220, 100%, 62%, 1) !important;
  193. }
  194. }
  195. }
  196. .Myel-table{
  197. tr.el-table__row.el-table__row--striped{
  198. td.el-table__cell{
  199. background: hsla(220, 33%, 98%, 1);
  200. line-height: 38px;
  201. }
  202. }
  203. .el-table__fixed-right{
  204. height: 100% !important;
  205. tr.el-table__row--striped{
  206. td.el-table__cell{
  207. background: hsla(220, 33%, 98%, 1);
  208. line-height: 38px;
  209. }
  210. }
  211. }
  212. .el-table__fixed{
  213. height: 100% !important;
  214. tr.el-table__row--striped{
  215. td.el-table__cell{
  216. background: hsla(220, 33%, 98%, 1);
  217. line-height: 38px;
  218. }
  219. }
  220. }
  221. td.el-table__cell{
  222. height: 38px !important;
  223. padding:0px;
  224. font-family: 'Microsoft Yahei UI';
  225. font-size: 14px ;
  226. line-height: 38px;
  227. .cell{
  228. padding: 0px;
  229. height: 38px;
  230. line-height: 38px !important;
  231. }
  232. }
  233. border-radius: 8px;
  234. .el-table__header{
  235. .el-table__cell{
  236. height: 40px !important;
  237. background-color: hsla(222, 33%, 92%, 1);
  238. color: hsla(222, 15%, 50%, 1);
  239. font-family: 'Microsoft Yahei UI';
  240. font-weight: bold;
  241. font-size: 14px ;
  242. .cell{
  243. padding: 0px !important;
  244. }
  245. }
  246. }
  247. .el-table__body-wrapper{
  248. @include scrollBar();
  249. &::-webkit-scrollbar{
  250. height: 12px;
  251. }
  252. color: hsla(255, 24%, 16%, 1);
  253. // tr.el-table__row--striped.el-table__row{
  254. // td.el-table__cell{
  255. // background-color: hsla(220, 33%, 98%, 1) ;
  256. // }
  257. // }
  258. }
  259. }
  260. .Myavue{
  261. .avue-crud__pagination{
  262. @extend #Mypagination-container
  263. }
  264. .el-table{
  265. tr.el-table__row.el-table__row--striped{
  266. td{
  267. background: hsla(220, 33%, 98%, 1);
  268. line-height: 38px;
  269. }
  270. }
  271. .el-table__fixed-right{
  272. height: 100% !important;
  273. tr.el-table__row--striped{
  274. td{
  275. background: hsla(220, 33%, 98%, 1);
  276. line-height: 38px;
  277. }
  278. }
  279. }
  280. .el-table__fixed{
  281. height: 100% !important;
  282. tr.el-table__row--striped{
  283. td{
  284. background: hsla(220, 33%, 98%, 1);
  285. line-height: 38px;
  286. }
  287. }
  288. }
  289. td.el-table__cell{
  290. height: 38px !important;
  291. padding:0px;
  292. font-family: 'Microsoft Yahei UI';
  293. font-size: 14px ;
  294. line-height: 38px;
  295. .cell{
  296. padding: 0px;
  297. height: 38px;
  298. line-height: 38px !important;
  299. }
  300. }
  301. border-radius: 8px;
  302. .el-table__header{
  303. .el-table__cell{
  304. height: 40px !important;
  305. background-color: hsla(222, 33%, 92%, 1);
  306. color: hsla(222, 15%, 50%, 1);
  307. font-family: 'Microsoft Yahei UI';
  308. font-weight: bold;
  309. font-size: 14px ;
  310. .cell{
  311. padding: 0px !important;
  312. }
  313. }
  314. }
  315. .el-table__body-wrapper{
  316. @include scrollBar();
  317. &::-webkit-scrollbar{
  318. height: 12px;
  319. }
  320. color: hsla(255, 24%, 16%, 1);
  321. // tr.el-table__row--striped.el-table__row{
  322. // td.el-table__cell{
  323. // background-color: hsla(220, 33%, 98%, 1) ;
  324. // }
  325. // }
  326. }
  327. }
  328. .avue-form__group{
  329. display: flex !important;
  330. position: relative !important;
  331. flex-wrap: wrap;
  332. .el-col{
  333. width: 320px ;
  334. .el-form-item__content{
  335. width: 220px;
  336. input{
  337. height: 30px;
  338. }
  339. }
  340. input{
  341. width: 220px;
  342. }
  343. }
  344. .el-col:nth-last-child(1){
  345. width: 180px;
  346. height: 46px;
  347. position: static !important;
  348. .el-form-item{
  349. width: 180px;
  350. position: absolute;
  351. text-align: right;
  352. right: 0px;
  353. .el-form-item__content{
  354. width: 180px;
  355. }
  356. }
  357. .el-button{
  358. @extend .Myel-button
  359. }
  360. .el-button--default{
  361. color: hsla(220, 100%, 62%, 1);
  362. border-color: hsla(220, 100%, 62%, 1);
  363. }
  364. }
  365. }
  366. // }
  367. // .el-dialog{
  368. // @extend .Myel-dialog
  369. // }
  370. }
  371. body>.atooltip{
  372. border-width: 0px !important;
  373. border-radius: 4px;
  374. box-shadow: 1px 2px 4px 0px rgba(0, 0, 0, 0.2);
  375. }