mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix: logs data disapearing causing crashes (#2566) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Refactor helm-chart.api and improve kube validation and error handling (#2265) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix: HPA's not sortable by age (#2565) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Conditionally render status icon for kube meta (#2298) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix custom resource loading spinner appears above extensions' cluster menus (#2344) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Lens should point to the release docs (#2268) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Refactor the Extensions settings page (#2221) Signed-off-by: Sebastian Malton <sebastian@malton.name> * try and get jest to not core dump Signed-off-by: Sebastian Malton <sebastian@malton.name>
64 lines
1.2 KiB
SCSS
64 lines
1.2 KiB
SCSS
|
|
.Spinner {
|
|
--spinner-size: 24px;
|
|
--spinner-border: calc(var(--spinner-size) / 6);
|
|
|
|
$duration: 1s;
|
|
$rotateAnimation: rotate $duration linear infinite;
|
|
$colorAnimation: colors $duration*4 ease-in-out infinite;
|
|
|
|
@mixin spinner-color($color) {
|
|
border-color: transparent $color;
|
|
}
|
|
|
|
width: var(--spinner-size);
|
|
height: var(--spinner-size);
|
|
border: var(--spinner-border) solid transparent;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
|
|
&:not(.singleColor) {
|
|
animation: $rotateAnimation, $colorAnimation;
|
|
}
|
|
|
|
&.singleColor {
|
|
@include spinner-color($textColorPrimary);
|
|
animation: $rotateAnimation;
|
|
}
|
|
|
|
&.center {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
margin-left: calc(var(--spinner-size) / -2);
|
|
margin-top: calc(var(--spinner-size) / -2);
|
|
}
|
|
|
|
@keyframes rotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes colors {
|
|
0% {
|
|
@include spinner-color(#4285F4);
|
|
}
|
|
25% {
|
|
@include spinner-color(#DE3E35);
|
|
}
|
|
50% {
|
|
@include spinner-color(#F7C223);
|
|
}
|
|
75% {
|
|
@include spinner-color(#1B9A59);
|
|
}
|
|
100% {
|
|
@include spinner-color(#4285F4);
|
|
}
|
|
}
|
|
}
|