mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
39 lines
1.1 KiB
SCSS
39 lines
1.1 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(back-top) {
|
|
@include once {
|
|
@include fade-in-scale-up-transition(back-top);
|
|
position: fixed;
|
|
right: 40px;
|
|
bottom: 40px;
|
|
min-width: 40px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
@include m(transition-disabled) {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
@include e(default-button) {
|
|
@include once {
|
|
transition: box-shadow .3s $--n-ease-in-out-cubic-bezier, fill .3s $--n-ease-in-out-cubic-bezier;
|
|
border-radius: 20px;
|
|
height: 40px;
|
|
width: 40px;
|
|
svg {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
fill: map-get($--back-top-button-fill, 'default');
|
|
box-shadow: map-get($--back-top-box-shadow, 'default');
|
|
&:hover {
|
|
box-shadow: map-get($--back-top-box-shadow, 'hover');
|
|
fill: map-get($--back-top-button-fill, 'hover');
|
|
}
|
|
&:active {
|
|
box-shadow: map-get($--back-top-box-shadow, 'active');
|
|
fill: map-get($--back-top-button-fill, 'active');
|
|
}
|
|
}
|
|
}
|
|
} |