naive-ui/styles/BaseLoading.scss

49 lines
1.0 KiB
SCSS
Raw Normal View History

2019-10-15 17:40:21 +08:00
@import './mixins/mixins.scss';
@import './themes/vars.scss';
2019-10-15 18:01:18 +08:00
@keyframes n-base-loading-rotate {
2019-10-15 17:40:21 +08:00
to {
transform: rotate(1turn)
}
}
2019-10-15 18:01:18 +08:00
@keyframes n-base-loading-dash {
2019-10-15 17:40:21 +08:00
0% {
stroke-dasharray: 1,200;
stroke-dashoffset: 0
}
50% {
stroke-dasharray: 90,150;
stroke-dashoffset: -40px
}
to {
stroke-dasharray: 90,150;
stroke-dashoffset: -120px
}
}
@include themes-mixin {
@include b(base-loading) {
@include once {
line-height: 1;
}
@include b(base-loading-circular) {
@include once {
height: 100%;
width: 100%;
2019-10-15 18:01:18 +08:00
animation: n-base-loading-rotate 2s linear infinite;
2019-10-15 17:40:21 +08:00
}
@include b(base-loading-circular-path) {
2019-10-15 18:01:18 +08:00
stroke: $--base-loading-stroke;
2019-10-15 17:40:21 +08:00
@include once {
2019-10-15 18:01:18 +08:00
transition: stroke .3s $default-cubic-bezier;
animation: n-base-loading-dash 1.5s ease-in-out infinite;
2019-10-15 17:40:21 +08:00
stroke-dasharray: 90,150;
stroke-dashoffset: 0;
stroke-width: 8;
stroke-linecap: round;
}
}
}
}
2019-10-15 18:01:18 +08:00
}