update 优化 前端样式初步调整并删除无用样式

This commit is contained in:
lau
2026-03-25 22:33:41 +08:00
parent fed0ac99e8
commit 2502de3081
72 changed files with 274 additions and 485 deletions

View File

@@ -1,3 +1,5 @@
// 清除浮动(嵌套用)
@mixin clearfix {
&:after {
content: '';
@@ -6,6 +8,7 @@
}
}
// WebKit 滚动条配色(用于可滚动容器)
@mixin scrollBar {
&::-webkit-scrollbar-track-piece {
background: #d3dce6;
@@ -21,18 +24,21 @@
}
}
// 铺满父级的相对定位层
@mixin relative {
position: relative;
width: 100%;
height: 100%;
}
// 百分比宽度水平居中块
@mixin pct($pct) {
width: #{$pct};
position: relative;
margin: 0 auto;
}
// CSS 三角箭头(极少用,保留兼容)
@mixin triangle($width, $height, $color, $direction) {
$width: $width/2;
$color-border-style: $height solid $color;