mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix:路由处理,CSS处理,样式处理,全局变量处理
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
$namespace: 'go';
|
||||
$theme-light: 'light';
|
||||
$theme-dart: 'dart';
|
||||
$state-prefix: 'is-';
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// 模糊
|
||||
$--filter-blur: blur(2px);
|
||||
// 毛玻璃
|
||||
$--filter-color: rgba(0, 0, 0, 0.07);
|
||||
// 边框
|
||||
$--border-radius: 5px;
|
||||
Reference in New Issue
Block a user