2022-09-27 20:14:00 +08:00
|
|
|
|
@import "./var.scss";
|
|
|
|
|
@import "./format.scss";
|
|
|
|
|
@import "./animation.scss";
|
|
|
|
|
@import "./mixins/mixins.scss";
|
2021-12-14 15:53:30 +08:00
|
|
|
|
|
2021-12-19 19:19:46 +08:00
|
|
|
|
// 过度
|
|
|
|
|
.go-transition {
|
2022-01-08 21:01:52 +08:00
|
|
|
|
transition: all 0.4s;
|
2021-12-19 19:19:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-29 11:44:51 +08:00
|
|
|
|
.go-transition-quick {
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-19 19:19:46 +08:00
|
|
|
|
.go-flex-center {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2021-12-20 19:54:24 +08:00
|
|
|
|
text-align: center;
|
2021-12-19 19:19:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-02-03 22:54:31 +08:00
|
|
|
|
.go-flex-items-center {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-08 21:01:52 +08:00
|
|
|
|
.go-flex-no-wrap {
|
2022-01-20 21:25:35 +08:00
|
|
|
|
flex-wrap: nowrap !important;
|
2022-01-08 21:01:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-12-19 19:19:46 +08:00
|
|
|
|
.go-absolute-center {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-06 13:45:51 +08:00
|
|
|
|
// cursor 小手
|
|
|
|
|
.go-cursor-pointer {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-06 15:37:44 +08:00
|
|
|
|
// IE盒模型
|
|
|
|
|
.go-boderbox {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-14 15:53:30 +08:00
|
|
|
|
// 毛玻璃
|
2021-12-14 21:28:32 +08:00
|
|
|
|
.go-background-filter {
|
2021-12-14 16:41:43 +08:00
|
|
|
|
backdrop-filter: $--filter-blur-base;
|
2022-09-27 20:14:00 +08:00
|
|
|
|
@include fetch-bg-color("filter-color");
|
2021-12-14 21:28:32 +08:00
|
|
|
|
box-shadow: $--border-shadow;
|
2021-12-14 15:53:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-12 18:46:51 +08:00
|
|
|
|
// 毛玻璃
|
|
|
|
|
.go-background-filter-shallow {
|
|
|
|
|
backdrop-filter: $--filter-blur-base;
|
2022-09-27 20:14:00 +08:00
|
|
|
|
@include fetch-bg-color("filter-color-shallow");
|
2022-03-12 18:46:51 +08:00
|
|
|
|
box-shadow: $--border-shadow;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-14 15:53:30 +08:00
|
|
|
|
// 边框圆角
|
2021-12-14 21:28:32 +08:00
|
|
|
|
.go-border-radius {
|
2021-12-14 16:41:43 +08:00
|
|
|
|
border-radius: $--border-radius-base;
|
2021-12-14 15:53:30 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2021-12-18 16:36:43 +08:00
|
|
|
|
|
2022-01-07 12:25:23 +08:00
|
|
|
|
// 背景斑点需配合 @mixin background-image 使用
|
2021-12-19 19:19:46 +08:00
|
|
|
|
.go-point-bg {
|
2022-09-27 20:14:00 +08:00
|
|
|
|
@include fetch-theme-custom("background-color", "background-color1");
|
2021-12-19 19:19:46 +08:00
|
|
|
|
background-size: 15px 15px, 15px 15px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-21 22:35:28 +08:00
|
|
|
|
// 省略号
|
2022-04-22 10:04:55 +08:00
|
|
|
|
.go-ellipsis-1 {
|
2022-04-21 22:35:28 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-14 22:40:48 +08:00
|
|
|
|
// class:m-1 => margin:1em
|
|
|
|
|
// class:mt-1 => margin-top:1em
|
|
|
|
|
// m-0|mt-0|mx-0|my-0|p-0|pt-0|...
|
|
|
|
|
|
|
|
|
|
@each $typekey, $type in $spacing-types {
|
|
|
|
|
//.m-1
|
|
|
|
|
@each $sizekey, $size in $spacing-sizes {
|
|
|
|
|
.go-#{$typekey}-#{$sizekey} {
|
|
|
|
|
#{$type}: $size * $spacing-base-size;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//.mx-1
|
|
|
|
|
@each $sizekey, $size in $spacing-sizes {
|
|
|
|
|
.go-#{$typekey}x-#{$sizekey} {
|
|
|
|
|
#{$type}-left: $size * $spacing-base-size;
|
|
|
|
|
#{$type}-right: $size * $spacing-base-size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.go-#{$typekey}y-#{$sizekey} {
|
|
|
|
|
#{$type}-top: $size * $spacing-base-size;
|
|
|
|
|
#{$type}-bottom: $size * $spacing-base-size;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//.mt-1
|
|
|
|
|
@each $directionkey, $direction in $spacing-directions {
|
|
|
|
|
@each $sizekey, $size in $spacing-sizes {
|
|
|
|
|
.go-#{$typekey}#{$directionkey}-#{$sizekey} {
|
|
|
|
|
#{$type}-#{$direction}: $size * $spacing-base-size;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.go-#{$typekey} {
|
|
|
|
|
#{$type}: 0 !important;
|
|
|
|
|
}
|
2022-09-27 20:14:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.go-d-inline-block {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
.go-d-block {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|