mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
36 lines
951 B
SCSS
36 lines
951 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 $--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: $--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;
|
|
}
|
|
}
|
|
}
|
|
} |