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