Skip to content

Commit

Permalink
修复CSS样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xa1st committed Dec 1, 2023
1 parent 1797432 commit c9a798d
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 182 deletions.
5 changes: 4 additions & 1 deletion src/assets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $border-color:#c8c7cc;
// 边框圆角
$border-radius: 0.2rem;

// 最大宽度
$max-width: 1280px;


// 通用元素样式设计
*, *::before, *::after {box-sizing: border-box; margin: 0; font-weight: normal;}
Expand Down Expand Up @@ -57,4 +60,4 @@ body {min-height: 100vh;font-size: 15px; background-color: $bg-color-grey;}
input:focus {outline:1px solid $color-primary}

// 默认容器大小
#app {max-width: 1280px; margin: 0 auto; font-weight: normal;}
#app {max-width: $max-width; margin: 0 auto; font-weight: normal;}
6 changes: 3 additions & 3 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

</section>

<footer>
<footer class="fixed tool ">
<!-- 总计 -->
<div class="tool fixed flex justify-between padding-24">
<div class="flex justify-between padding-24">
<div class="num">共计:<span class="val">{{ cartStore.total }}</span>件商品</div>
<div class="sum">总计:<span class="val">{{ sum }}</span>元</div>
</div>
Expand Down Expand Up @@ -186,7 +186,7 @@
@import '@/assets/base.scss';
// 加载图标
@import '@/assets/icon/iconfont.css';
header, section, footer {max-width: $max-width;}
.titbox, .tool {width: 100%; background-color: $bg-color; height: 3.5rem; line-height: 3.5rem;}
.titbox .clear {right: .8rem;top: 0;}
.tool {bottom: 0;}
Expand Down
Loading

0 comments on commit c9a798d

Please sign in to comment.