更新:登录功能
This commit is contained in:
116
uni_modules/wot-design-uni/components/wd-fab/index.scss
Normal file
116
uni_modules/wot-design-uni/components/wd-fab/index.scss
Normal file
@@ -0,0 +1,116 @@
|
||||
@import "../common/abstracts/variable";
|
||||
@import "../common/abstracts/mixin";
|
||||
|
||||
.wot-theme-dark {
|
||||
@include b(fab) {}
|
||||
}
|
||||
|
||||
@include b(fab) {
|
||||
position: fixed;
|
||||
z-index: 99;
|
||||
|
||||
@include edeep(trigger) {
|
||||
min-width: auto !important;
|
||||
box-sizing: border-box;
|
||||
width: $-fab-trigger-width !important;
|
||||
height: $-fab-trigger-height !important;
|
||||
border-radius: calc($-fab-trigger-height / 2) !important;
|
||||
}
|
||||
|
||||
:deep() {
|
||||
@include e(actions) {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: $-fab-actions-padding 0;
|
||||
|
||||
@include m(left, right) {
|
||||
height: 100%;
|
||||
top: 0;
|
||||
padding: 0 $-fab-actions-padding;
|
||||
}
|
||||
|
||||
@include m(left) {
|
||||
flex-direction: row-reverse;
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
@include m(right) {
|
||||
flex-direction: row;
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
@include m(top, bottom) {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@include m(top) {
|
||||
flex-direction: column-reverse;
|
||||
bottom: 100%;
|
||||
}
|
||||
|
||||
@include m(bottom) {
|
||||
flex-direction: column;
|
||||
top: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// 动画
|
||||
@include e(transition-enter-active, transition-leave-active) {
|
||||
transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
||||
}
|
||||
|
||||
|
||||
@include e(transition-enter) {
|
||||
@include m(top) {
|
||||
opacity: 0;
|
||||
transform: translateY(40px);
|
||||
}
|
||||
|
||||
@include m(bottom) {
|
||||
opacity: 0;
|
||||
transform: translateY(-40px);
|
||||
}
|
||||
|
||||
@include m(left) {
|
||||
opacity: 0;
|
||||
transform: translateX(40px);
|
||||
}
|
||||
|
||||
@include m(right) {
|
||||
opacity: 0;
|
||||
transform: translateX(-40px);
|
||||
}
|
||||
}
|
||||
|
||||
@include e(transition-leave-to) {
|
||||
@include m(top) {
|
||||
opacity: 0;
|
||||
transform: translateY(40px);
|
||||
}
|
||||
|
||||
@include m(bottom) {
|
||||
opacity: 0;
|
||||
transform: translateY(-40px);
|
||||
}
|
||||
|
||||
@include m(left) {
|
||||
opacity: 0;
|
||||
transform: translateX(40px);
|
||||
}
|
||||
|
||||
@include m(right) {
|
||||
opacity: 0;
|
||||
transform: translateX(-40px);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@include edeep(icon) {
|
||||
font-size: $-fab-icon-fs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user