debian-mirror-gitlab/app/assets/stylesheets/framework/spinner.scss

40 lines
986 B
SCSS
Raw Normal View History

2021-06-08 01:23:25 +05:30
/**
* Do not use these spinner mixins. Rely on GitLab UI
* GlLoadingIcon component instead.
*/
@mixin spinner-color-deprecated($color) {
2019-07-07 11:18:12 +05:30
border-color: rgba($color, 0.25);
border-top-color: $color;
}
2021-06-08 01:23:25 +05:30
@mixin spinner-size-deprecated($size, $border-width) {
2019-07-07 11:18:12 +05:30
width: $size;
height: $size;
border-width: $border-width;
@include webkit-prefix(transform-origin, 50% 50% calc((#{$size} / 2) + #{$border-width}));
}
2021-06-08 01:23:25 +05:30
@keyframes spinner-rotate-deprecated {
2019-07-07 11:18:12 +05:30
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
2021-06-08 01:23:25 +05:30
@mixin spinner-deprecated($size: 16px, $border-width: 2px, $color: $gray-700) {
2019-07-07 11:18:12 +05:30
border-radius: 50%;
position: relative;
margin: 0 auto;
2021-06-08 01:23:25 +05:30
animation-name: spinner-rotate-deprecated;
2019-07-07 11:18:12 +05:30
animation-duration: 0.6s;
animation-timing-function: linear;
animation-iteration-count: infinite;
border-style: solid;
display: inline-flex;
2021-06-08 01:23:25 +05:30
@include spinner-size-deprecated($size, $border-width);
@include spinner-color-deprecated($color);
2021-01-29 00:20:46 +05:30
}