From 2e9f09b5405c72f43d985b8ae1987fad6f4ba27a Mon Sep 17 00:00:00 2001 From: zhaojintian <729234283@qq.com> Date: Thu, 30 Sep 2021 15:01:29 +0800 Subject: [PATCH] update --- src/assets/styles/utils/variables.scss | 2 +- src/components/layout/main/style.scss | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/assets/styles/utils/variables.scss b/src/assets/styles/utils/variables.scss index 74c74168..0712e6c5 100644 --- a/src/assets/styles/utils/variables.scss +++ b/src/assets/styles/utils/variables.scss @@ -1,7 +1,7 @@ @use "sass:map"; @import "../element-plus/variables"; -@import "node_modules/element-plus/packages/theme-chalk/src/var"; +@import "node_modules/element-plus/packages/theme-chalk/src/common/var"; $font-sizes: $pxes; diff --git a/src/components/layout/main/style.scss b/src/components/layout/main/style.scss index 7018491d..0ca9923f 100644 --- a/src/components/layout/main/style.scss +++ b/src/components/layout/main/style.scss @@ -3,13 +3,23 @@ @import "~@/assets/styles/utils/index"; @include c(main) { - @include position--absolute(0, 0, 0, map.get($the-layout, the-sidebar, width)); + @include position--absolute( + 0, + 0, + 0, + map.get($the-layout, the-sidebar, width) + ); overflow: hidden; min-width: 1200px; @include e(body) { - @include position--absolute(map.get($the-layout, the-header, height) + 14px, 14px, 14px, 14px); + @include position--absolute( + map.get($the-layout, the-header, height) + 14px, + 14px, + 14px, + 14px + ); @include padding(50px + 12px, 20px, 20px, 20px); background-color: white; @@ -41,6 +51,6 @@ @include text--middle(50px); background-color: white; - border-bottom: 1px solid map.get($--border-color, "light"); + border-bottom: 1px solid map.get($border-color, light); } }