plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

399 lines
7.4 KiB

2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
  1. *,
  2. *:before,
  3. *:after {
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  8. font-size: 12px;
  9. line-height: 1.15;
  10. color: #303133;
  11. background-color: #fff;
  12. }
  13. a {
  14. color: mix(#fff, $--color-primary, 20%);
  15. text-decoration: none;
  16. &:focus,
  17. &:hover {
  18. color: $--color-primary;
  19. text-decoration: underline;
  20. }
  21. }
  22. img {
  23. vertical-align: middle;
  24. }
  25. /* Utils
  26. ------------------------------ */
  27. .clearfix:before,
  28. .clearfix:after {
  29. content: " ";
  30. display: table;
  31. }
  32. .clearfix:after {
  33. clear: both;
  34. }
  35. /* Animation
  36. ------------------------------ */
  37. .fade-enter-active,
  38. .fade-leave-active {
  39. transition: opacity .5s;
  40. }
  41. .fade-enter,
  42. .fade-leave-to {
  43. opacity: 0;
  44. }
  45. /* Reset element-ui
  46. ------------------------------ */
  47. .site-wrapper {
  48. .el-pagination {
  49. margin-top: 15px;
  50. text-align: right;
  51. }
  52. }
  53. /* Layout
  54. ------------------------------ */
  55. .site-wrapper {
  56. position: relative;
  57. min-width: 1180px;
  58. }
  59. /* Sidebar fold
  60. ------------------------------ */
  61. .site-sidebar--fold {
  62. .site-navbar__header,
  63. .site-navbar__brand,
  64. .site-navbar__brand2,
  65. .site-sidebar,
  66. .site-sidebar__inner,
  67. .el-menu.site-sidebar__menu {
  68. width: 64px;
  69. }
  70. .site-navbar__body,
  71. .site-content__wrapper {
  72. margin-left: 64px;
  73. }
  74. .site-navbar__brand {
  75. &-lg {
  76. display: none;
  77. }
  78. &-mini {
  79. display: inline-block;
  80. }
  81. }
  82. .site-navbar__brand2 {
  83. &-lg {
  84. display: none;
  85. }
  86. &-mini {
  87. display: inline-block;
  88. }
  89. }
  90. .site-sidebar,
  91. .site-sidebar__inner {
  92. overflow: initial;
  93. }
  94. .site-sidebar__menu-icon {
  95. margin-right: 0;
  96. font-size: 20px;
  97. }
  98. .site-content--tabs > .el-tabs > .el-tabs__header {
  99. left: 64px;
  100. }
  101. }
  102. // animation
  103. .site-navbar__header,
  104. .site-navbar__brand,
  105. .site-navbar__brand2,
  106. .site-navbar__body,
  107. .site-sidebar,
  108. .site-sidebar__inner,
  109. .site-sidebar__menu.el-menu,
  110. .site-sidebar__menu-icon,
  111. .site-content__wrapper,
  112. .site-content--tabs > .el-tabs .el-tabs__header {
  113. transition: inline-block .3s, left .3s, width .3s, margin-left .3s, font-size .3s;
  114. }
  115. /* Navbar
  116. ------------------------------ */
  117. .site-navbar {
  118. position: fixed;
  119. top: 0;
  120. right: 0;
  121. left: 0;
  122. z-index: 1030;
  123. height: 50px;
  124. box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  125. background-color: $navbar--background-color;
  126. &--inverse {
  127. .site-navbar__body {
  128. background-color: transparent;
  129. }
  130. .el-menu {
  131. > .el-menu-item,
  132. > .el-submenu > .el-submenu__title {
  133. color: #fff;
  134. &:focus,
  135. &:hover {
  136. color: #fff;
  137. background-color: mix(#000, $navbar--background-color, 15%);
  138. }
  139. }
  140. > .el-menu-item.is-active,
  141. > .el-submenu.is-active > .el-submenu__title {
  142. border-bottom-color: mix(#fff, $navbar--background-color, 85%);
  143. }
  144. .el-menu-item i,
  145. .el-submenu__title i,
  146. .el-dropdown {
  147. color: #fff;
  148. }
  149. }
  150. .el-menu--popup-bottom-start {
  151. background-color: $navbar--background-color;
  152. }
  153. }
  154. &__header {
  155. position: relative;
  156. float: left;
  157. width: 230px;
  158. height: 50px;
  159. overflow: hidden;
  160. }
  161. &__brand {
  162. display: table-cell;
  163. vertical-align: middle;
  164. width: 230px;
  165. height: 50px;
  166. margin: 0;
  167. line-height: 50px;
  168. font-size: 20px;
  169. text-align: center;
  170. text-transform: uppercase;
  171. white-space: nowrap;
  172. color: #fff;
  173. &-lg,
  174. &-mini {
  175. margin: 0 5px;
  176. color: #fff;
  177. &:focus,
  178. &:hover {
  179. color: #fff;
  180. text-decoration: none;
  181. }
  182. }
  183. &-mini {
  184. display: none;
  185. }
  186. }
  187. &__brand2 {
  188. display: table-cell;
  189. vertical-align: middle;
  190. width: 230px;
  191. height: 50px;
  192. margin: 0;
  193. line-height: 50px;
  194. font-size: 20px;
  195. text-align: center;
  196. white-space: nowrap;
  197. color: #fff;
  198. &-lg,
  199. &-mini {
  200. margin: 0 5px;
  201. color: #fff;
  202. &:focus,
  203. &:hover {
  204. color: #fff;
  205. text-decoration: none;
  206. }
  207. }
  208. &-mini {
  209. display: none;
  210. }
  211. }
  212. &__switch {
  213. font-size: 18px;
  214. border-bottom: none !important;
  215. }
  216. &__avatar {
  217. border-bottom: none !important;
  218. * {
  219. vertical-align: inherit;
  220. }
  221. .el-dropdown-link {
  222. > img {
  223. width: 36px;
  224. height: auto;
  225. margin-right: 5px;
  226. border-radius: 100%;
  227. vertical-align: middle;
  228. }
  229. }
  230. }
  231. &__body {
  232. position: relative;
  233. margin-left: 230px;
  234. padding-right: 15px;
  235. background-color: #fff;
  236. }
  237. &__menu {
  238. float: left;
  239. background-color: transparent;
  240. border-bottom: 0;
  241. &--right {
  242. float: right;
  243. }
  244. a:focus,
  245. a:hover {
  246. text-decoration: none;
  247. }
  248. .el-menu-item,
  249. .el-submenu > .el-submenu__title {
  250. height: 50px;
  251. line-height: 50px;
  252. }
  253. .el-submenu > .el-menu {
  254. top: 55px;
  255. }
  256. .el-badge {
  257. display: inline;
  258. z-index: 2;
  259. &__content {
  260. line-height: 16px;
  261. }
  262. }
  263. }
  264. }
  265. /* Sidebar
  266. ------------------------------ */
  267. .site-sidebar {
  268. position: fixed;
  269. top: 50px;
  270. left: 0;
  271. bottom: 0;
  272. z-index: 1020;
  273. width: 230px;
  274. overflow: hidden;
  275. &--dark,
  276. &--dark-popper {
  277. background-color: $sidebar--background-color-dark;
  278. .site-sidebar__menu.el-menu,
  279. > .el-menu--popup {
  280. background-color: $sidebar--background-color-dark;
  281. .el-menu-item,
  282. .el-submenu > .el-submenu__title {
  283. color: $sidebar--color-text-dark;
  284. &:focus,
  285. &:hover {
  286. color: mix(#fff, $sidebar--color-text-dark, 50%);
  287. background-color: mix(#fff, $sidebar--background-color-dark, 2.5%);
  288. }
  289. }
  290. .el-menu,
  291. .el-submenu.is-opened {
  292. background-color: mix(#000, $sidebar--background-color-dark, 15%);
  293. }
  294. .el-menu-item.is-active,
  295. .el-submenu.is-active > .el-submenu__title {
  296. color: mix(#fff, $sidebar--color-text-dark, 80%);
  297. }
  298. }
  299. }
  300. &__inner {
  301. position: relative;
  302. z-index: 1;
  303. width: 250px; // 放出侧边滚动条
  304. height: 100%;
  305. padding-bottom: 15px;
  306. overflow-y: scroll;
  307. }
  308. &__menu.el-menu {
  309. width: 230px;
  310. border-right: 0;
  311. }
  312. &__menu-icon {
  313. width: 24px;
  314. margin-right: 5px;
  315. text-align: center;
  316. font-size: 12px;
  317. color: inherit !important;
  318. }
  319. }
  320. /* Content
  321. ------------------------------ */
  322. .site-content {
  323. position: relative;
  324. padding: 15px;
  325. &__wrapper {
  326. position: relative;
  327. padding-top: 50px;
  328. margin-left: 230px;
  329. min-height: 100%;
  330. background: $content--background-color;
  331. }
  332. &--tabs {
  333. padding: 55px 0 0;
  334. }
  335. > .el-tabs {
  336. > .el-tabs__header {
  337. position: fixed;
  338. top: 50px;
  339. left: 230px;
  340. right: 0;
  341. z-index: 930;
  342. padding: 0 55px 0 15px;
  343. box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
  344. background-color: #fff;
  345. > .el-tabs__nav-wrap {
  346. margin-bottom: 0;
  347. &:after {
  348. display: none;
  349. }
  350. }
  351. }
  352. > .el-tabs__content {
  353. padding: 0 15px 15px;
  354. > .site-tabs__tools {
  355. position: fixed;
  356. top: 50px;
  357. right: 0;
  358. z-index: 931;
  359. height: 40px;
  360. padding: 0 12px;
  361. font-size: 16px;
  362. line-height: 40px;
  363. background-color: $content--background-color;
  364. cursor: pointer;
  365. .el-icon--right {
  366. margin-left: 0;
  367. }
  368. }
  369. }
  370. }
  371. }
  372. .el-table__expand-icon {
  373. display: inline-block;
  374. width: 14px;
  375. vertical-align: middle;
  376. margin-right: 5px;
  377. }