2021-12-14 15:53:30 +08:00
|
|
|
@import './var.scss';
|
2021-12-14 16:41:43 +08:00
|
|
|
@import './animation.scss';
|
2021-12-19 19:19:46 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2021-12-14 15:53:30 +08:00
|
|
|
|
2021-12-14 21:28:32 +08:00
|
|
|
// extends
|
2021-12-19 19:19:46 +08:00
|
|
|
// 过度
|
|
|
|
.go-transition {
|
|
|
|
transition: all 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
|
|
|
.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-01-07 22:02:13 +08:00
|
|
|
@include filter-bg-color('filter-color');
|
2021-12-14 21:28:32 +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 {
|
|
|
|
@include fetch-theme('background-color');
|
|
|
|
background-size: 15px 15px, 15px 15px;
|
|
|
|
}
|
|
|
|
|
2021-12-18 16:36:43 +08:00
|
|
|
// todo 使用 scss 循环写一套完整的
|
|
|
|
// margin
|
|
|
|
.go-mt-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
margin-top: 0 !important;
|
2021-12-18 16:36:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.go-mb-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
margin-bottom: 0 !important;
|
2021-12-21 10:06:03 +08:00
|
|
|
}
|
|
|
|
.go-ml-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
margin-left: 0 !important;
|
2021-12-18 16:36:43 +08:00
|
|
|
}
|
|
|
|
|
2021-12-21 10:06:03 +08:00
|
|
|
.go-mr-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
margin-right: 0 !important;
|
2021-12-21 10:06:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.go-my-0 {
|
2021-12-18 16:36:43 +08:00
|
|
|
@extend .go-mt-0;
|
|
|
|
@extend .go-mb-0;
|
|
|
|
}
|
|
|
|
|
2021-12-21 10:06:03 +08:00
|
|
|
.go-mx-0 {
|
|
|
|
@extend .go-ml-0;
|
|
|
|
@extend .go-mr-0;
|
|
|
|
}
|
|
|
|
|
2021-12-18 16:36:43 +08:00
|
|
|
.go-pt-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
padding-top: 0 !important;
|
2021-12-18 16:36:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.go-pb-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
padding-bottom: 0 !important;
|
2021-12-21 10:06:03 +08:00
|
|
|
}
|
|
|
|
.go-pl-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
padding-left: 0 !important;
|
2021-12-18 16:36:43 +08:00
|
|
|
}
|
|
|
|
|
2021-12-21 10:06:03 +08:00
|
|
|
.go-pr-0 {
|
2022-01-06 15:37:44 +08:00
|
|
|
padding-right: 0 !important;
|
2021-12-21 10:06:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.go-py-0 {
|
2021-12-18 16:36:43 +08:00
|
|
|
@extend .go-pt-0;
|
|
|
|
@extend .go-pb-0;
|
2021-12-19 19:19:46 +08:00
|
|
|
}
|
2021-12-21 10:06:03 +08:00
|
|
|
|
|
|
|
.go-px-0 {
|
|
|
|
@extend .go-pl-0;
|
|
|
|
@extend .go-pr-0;
|
|
|
|
}
|