fix:路由处理,CSS处理,样式处理,全局变量处理

This commit is contained in:
MTrun
2021-12-14 15:53:30 +08:00
parent e09ad35a4a
commit 7e5d5aa067
32 changed files with 1837 additions and 257 deletions
+4
View File
@@ -0,0 +1,4 @@
$namespace: 'go';
$theme-light: 'light';
$theme-dart: 'dart';
$state-prefix: 'is-';
+30
View File
@@ -0,0 +1,30 @@
@import './config.scss';
@mixin go($block) {
$B: $namespace + '-' + $block !global;
.#{$B} {
@content;
}
}
@mixin go-l($block) {
$B: $namespace + '-' + $theme-light + '-' + $block !global;
.#{$B} {
@content;
}
}
@mixin go-d($block) {
$B: $namespace + '-' + $theme-dart + '-' + $block !global;
.#{$B} {
@content;
}
}
@mixin when($state) {
@at-root {
&.#{$state-prefix + $state} {
@content;
}
}
}
+13
View File
@@ -0,0 +1,13 @@
@import './var.scss';
// 毛玻璃
.--background-filter {
backdrop-filter: $--filter-blur;
background-color: $--filter-color;
}
// 边框圆角
.--border-radius {
border-radius: $--border-radius;
overflow: hidden;
}
+6
View File
@@ -0,0 +1,6 @@
// 模糊
$--filter-blur: blur(2px);
// 毛玻璃
$--filter-color: rgba(0, 0, 0, 0.07);
// 边框
$--border-radius: 5px;
-9
View File
@@ -1,9 +0,0 @@
@import url(./var.scss);
// 毛玻璃
.bg-filter {
backdrop-filter: blur(2px);
background-color: rgba(0, 0, 0, 0.07);
}
.border {
border-radius: $radius;
}
-2
View File
@@ -1,2 +0,0 @@
// 边框
$radius: 5px;