mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
51 lines
1.2 KiB
SCSS
51 lines
1.2 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@keyframes n-base-loading-rotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(270deg);
|
|
}
|
|
}
|
|
|
|
@keyframes n-base-loading-dash {
|
|
0% {
|
|
stroke-dashoffset: $--n-base-loading-stroke-dashoffset;
|
|
}
|
|
50% {
|
|
stroke-dashoffset: $--n-base-loading-stroke-dashoffset / 4;
|
|
transform: rotate(135deg);
|
|
}
|
|
100% {
|
|
stroke-dashoffset: $--n-base-loading-stroke-dashoffset;
|
|
transform: rotate(450deg);
|
|
}
|
|
}
|
|
|
|
@include themes-mixin {
|
|
@include b(base-loading) {
|
|
@include once {
|
|
line-height: 1;
|
|
}
|
|
stroke: $--base-loading-stroke;
|
|
transition: stroke .3s $--n-ease-in-out-cubic-bezier;
|
|
@include b(base-loading-circular) {
|
|
@include once {
|
|
height: 100%;
|
|
width: 100%;
|
|
animation: n-base-loading-rotate 1.5s linear infinite;
|
|
transform-origin: center;
|
|
}
|
|
@include b(base-loading-circular-path) {
|
|
@include once {
|
|
transform-origin: center;
|
|
animation: n-base-loading-dash 1.5s ease-in-out infinite;
|
|
stroke-dasharray: $--n-base-loading-stroke-dashoffset;
|
|
stroke-dashoffset: 0;
|
|
stroke-linecap: round;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |