app.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. html,
  2. body,
  3. #app {
  4. height: 100%;
  5. }
  6. #app {
  7. width: 100%;
  8. overflow: hidden;
  9. background: #f6f8fb;
  10. }
  11. .iconfont {
  12. font-family: iconfont !important;
  13. font-size: 16px;
  14. font-style: normal;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. /*滚动条的宽度*/
  19. ::-webkit-scrollbar {
  20. width: 6px;
  21. height: 6px;
  22. }
  23. /*外层轨道。可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果*/
  24. ::-webkit-scrollbar-track {
  25. width: 4px;
  26. background-color: #e1e8ef;
  27. -webkit-border-radius: 3px;
  28. -moz-border-radius: 3px;
  29. border-radius: 3px;
  30. }
  31. /*滚动条的设置*/
  32. ::-webkit-scrollbar-thumb {
  33. background-color: #bcc7d3;
  34. background-clip: padding-box;
  35. min-height: 28px;
  36. -webkit-border-radius: 3px;
  37. -moz-border-radius: 3px;
  38. border-radius: 3px;
  39. }
  40. /*滚动条移上去的背景*/
  41. ::-webkit-scrollbar-thumb:hover {
  42. background-color: #94a2b0;
  43. }
  44. /*left*/
  45. .left-menu-wrapper {
  46. position: fixed;
  47. top: 0;
  48. left: 0;
  49. bottom: 0;
  50. width: 100px;
  51. z-index: 99
  52. }
  53. .menu-wrapper .home-login {
  54. width: 100px;
  55. height: 40px;
  56. margin-top: 20px;
  57. }
  58. .menu-wrapper .home-login .home-icon,
  59. .menu-wrapper .home-login {
  60. display: -webkit-box;
  61. display: -ms-flexbox;
  62. display: flex;
  63. -webkit-box-align: center;
  64. -ms-flex-align: center;
  65. align-items: center;
  66. -webkit-box-pack: center;
  67. -ms-flex-pack: center;
  68. justify-content: center;
  69. position: relative;
  70. }
  71. .menu-wrapper .home-login .home-icon {
  72. width: 36px;
  73. height: 36px;
  74. border-radius: 50%;
  75. z-index: 1;
  76. background-color: #fff;
  77. cursor: pointer;
  78. }
  79. .menu-wrapper {
  80. height: 100vh;
  81. background: #333844;
  82. position: relative;
  83. z-index: 1;
  84. width: 100px;
  85. -webkit-box-sizing: border-box;
  86. box-sizing: border-box;
  87. }
  88. .menu-wrapper {
  89. position: absolute;
  90. left: 0;
  91. overflow-x: hidden;
  92. overflow-y: auto;
  93. }
  94. .menu-wrapper::-webkit-scrollbar {
  95. display: none
  96. }
  97. .menu-wrapper {
  98. width: 100px;
  99. height: 100vh;
  100. }
  101. .menu-wrapper .nav-wrapper .nav-ul li {
  102. width: 100%;
  103. min-height: 44px;
  104. line-height: 44px;
  105. padding-left: 16px;
  106. -webkit-box-sizing: border-box;
  107. box-sizing: border-box;
  108. color: #c9cfd5;
  109. cursor: pointer;
  110. }
  111. .menu-wrapper .nav-wrapper .nav-ul li.router-link-active {
  112. background: #FFFFFF;
  113. color: #3a8ee6;
  114. }
  115. .menu-wrapper .nav-wrapper .nav-ul .menu-item .menu-item-icon {
  116. display: inline-block;
  117. margin-right: 6px;
  118. }
  119. .menu-wrapper .nav-wrapper .nav-ul .svg-icon {
  120. color: #FFFFFF;
  121. width: 20px;
  122. height: 20px;
  123. }
  124. .menu-wrapper .nav-wrapper .nav-ul li.router-link-active .svg-icon {
  125. color: #3a8ee6;
  126. }
  127. .left-menu-wrapper .icon-home .svg-icon {
  128. color: #3a8ee6;
  129. width: 30px;
  130. height: 30px;
  131. }
  132. .child-menu-wrapper {
  133. position: fixed;
  134. top: 0;
  135. bottom: 0;
  136. left: 100px;
  137. width: 100px;
  138. background: #fff;
  139. webkit-box-sizing: border-box;
  140. -webkit-box-sizing: border-box;
  141. box-sizing: border-box;
  142. }
  143. .right-big .child-menu-wrapper {
  144. left: 0 !important;
  145. /* z-index: 10; */
  146. }
  147. .child-menu {
  148. width: 100px;
  149. height: 100vh;
  150. background: #fff;
  151. -webkit-transform: translateX(-300px);
  152. transform: translateX(-300px);
  153. -webkit-transition: all .3s;
  154. transition: all .3s;
  155. border-right: 1px solid #eee;
  156. position: absolute;
  157. -webkit-box-sizing: border-box;
  158. box-sizing: border-box;
  159. padding-top: 50px;
  160. display: -webkit-box;
  161. display: -ms-flexbox;
  162. display: flex;
  163. -webkit-box-pack: center;
  164. -ms-flex-pack: center;
  165. justify-content: center;
  166. }
  167. .child-menu ul li {
  168. display: block;
  169. width: 86px;
  170. margin-bottom: 8px;
  171. text-align: center;
  172. line-height: 38px;
  173. color: #666;
  174. cursor: pointer;
  175. }
  176. .right-animation {
  177. position: relative;
  178. -webkit-transform: translateX(0);
  179. transform: translateX(0);
  180. }
  181. .child-menu ul .router-link-active {
  182. color: #3a8ee6;
  183. }
  184. /*right*/
  185. .right-big .right-content {
  186. margin-left: 100px !important;
  187. }
  188. .right-content {
  189. width: auto;
  190. margin: 0 0 0 200px;
  191. -webkit-transition: margin-right .5s;
  192. transition: margin-right .5s;
  193. height: 100vh;
  194. }
  195. .common-header {
  196. height: 48px;
  197. border-bottom: 1px solid #eee;
  198. background: #fff;
  199. line-height: 48px;
  200. }
  201. .common-header,
  202. .common-header-index {
  203. padding-left: 20px;
  204. font-size: 14px;
  205. box-sizing: border-box;
  206. }
  207. /*right top*/
  208. .common-header .breadcrumb {
  209. position: relative;
  210. display: -webkit-box;
  211. display: -ms-flexbox;
  212. display: flex;
  213. -webkit-box-pack: justify;
  214. -ms-flex-pack: justify;
  215. justify-content: space-between;
  216. -webkit-box-sizing: border-box;
  217. box-sizing: border-box;
  218. }
  219. .common-header .header-navbar {
  220. position: absolute;
  221. right: 0;
  222. top: 0;
  223. height: 100%;
  224. display: flex;
  225. align-items: center;
  226. justify-content: center;
  227. }
  228. .header-navbar-icon {
  229. margin-right: 16px;
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. cursor: pointer;
  234. font-size: 12px;
  235. }
  236. .header-navbar-icon .svg-icon {
  237. width: 20px;
  238. height: 20px;
  239. color: rgb(70, 79, 101);
  240. }
  241. .header-navbar-icon .text {
  242. color: rgb(70, 79, 101);
  243. }
  244. .header-navbar-icon.login-out .svg-icon {
  245. color: red;
  246. }
  247. .breadcrumb .baseInfo-left-base {
  248. font-weight: bold;
  249. font-size: 16px;
  250. }
  251. .right-content-box {
  252. max-height: calc(100vh - 48px);
  253. min-height: calc(100vh - 80px);
  254. overflow: auto;
  255. padding: 20px 16px;
  256. box-sizing: border-box;
  257. }
  258. /*subject*/
  259. .subject-wrap {
  260. padding: 16px;
  261. min-height: calc(100vh - 90px);
  262. overflow-x: auto;
  263. background: #FFFFFF;
  264. }
  265. .common-level-rail {
  266. margin-bottom: 18px;
  267. }
  268. .pagination {
  269. text-align: right;
  270. margin-top: 18px;
  271. }
  272. /*form*/
  273. .common-form {
  274. position: relative;
  275. height: 40px;
  276. padding-left: 20px;
  277. line-height: 40px;
  278. font-size: 14px;
  279. font-weight: 700;
  280. margin-bottom: 12px;
  281. }
  282. .common-form:before {
  283. position: absolute;
  284. content: "";
  285. width: 4px;
  286. height: 14px;
  287. left: 0;
  288. top: 50%;
  289. transform: translateY(-50%);
  290. }
  291. .common-form:before {
  292. background: #3a8ee6;
  293. }
  294. .common-button-wrapper {
  295. -webkit-transition: width .3s;
  296. transition: width .3s;
  297. position: absolute;
  298. background: #fff;
  299. left: 0;
  300. bottom: 0;
  301. right: 0;
  302. border-top: 1px solid #eee;
  303. -webkit-box-sizing: border-box;
  304. box-sizing: border-box;
  305. display: -webkit-box;
  306. display: -ms-flexbox;
  307. display: flex;
  308. height: 50px;
  309. -webkit-box-align: center;
  310. -ms-flex-align: center;
  311. align-items: center;
  312. -webkit-box-pack: center;
  313. -ms-flex-pack: center;
  314. justify-content: center;
  315. z-index: 999;
  316. }
  317. .common-button-wrapper .el-form-item {
  318. margin-bottom: 0;
  319. }
  320. .common-button-wrapper .el-form-item--mini.el-form-item,
  321. .common-button-wrapper .el-form-item--small.el-form-item {
  322. margin-bottom: 0;
  323. }
  324. /*表格中的商品展示*/
  325. .table-wrap .product-info {
  326. display: flex;
  327. }
  328. .table-wrap .product-info .pic {
  329. position: relative;
  330. width: 60px;
  331. height: 60px;
  332. background: #F0F0EE;
  333. }
  334. .table-wrap .product-info .info {
  335. flex: 1;
  336. padding-left: 10px;
  337. overflow: hidden;
  338. line-height: 20px;
  339. }
  340. .table-wrap .product-info .name {
  341. overflow: hidden;
  342. text-overflow: ellipsis;
  343. display: -webkit-box;
  344. -webkit-box-orient: vertical;
  345. -webkit-line-clamp: 2;
  346. }
  347. .table-wrap .product-info .price {
  348. color: rgb(255, 51, 0);
  349. }
  350. .table-wrap .product-info .pic img {
  351. position: absolute;
  352. top: 50%;
  353. left: 50%;
  354. -webkit-transform: translate(-50%, -50%);
  355. transform: translate(-50%, -50%);
  356. max-height: 100%;
  357. max-width: 100%;
  358. }