mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
87 lines
1.6 KiB
SCSS
87 lines
1.6 KiB
SCSS
.loading-spinner {
|
|
margin: 120px auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: $core-white;
|
|
width: 48px;
|
|
height: 48px;
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
|
|
&__ring {
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 100%;
|
|
border: 4px solid $core-vibrant-blue;
|
|
|
|
div {
|
|
box-sizing: border-box;
|
|
display: block;
|
|
position: absolute;
|
|
width: 32px;
|
|
height: 32px;
|
|
margin: -4px;
|
|
border: 4px solid;
|
|
border-radius: 50%;
|
|
animation: ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
border-color: $ui-vibrant-blue-25 transparent transparent transparent;
|
|
}
|
|
}
|
|
|
|
div:nth-child(1) {
|
|
animation-delay: -0.45s;
|
|
}
|
|
|
|
div:nth-child(2) {
|
|
animation-delay: -0.3s;
|
|
}
|
|
|
|
div:nth-child(3) {
|
|
animation-delay: -0.15s;
|
|
}
|
|
}
|
|
|
|
.loading-spinner.small {
|
|
background: none;
|
|
box-shadow: none;
|
|
height: auto;
|
|
margin: 0;
|
|
transform: scale(0.7);
|
|
}
|
|
|
|
button {
|
|
position: relative;
|
|
.loading-spinner {
|
|
background: none;
|
|
box-shadow: none;
|
|
margin: 0;
|
|
transform: scale(0.7);
|
|
position: absolute;
|
|
&__ring {
|
|
border-color: $core-white;
|
|
|
|
div {
|
|
border-color: $core-vibrant-blue transparent transparent transparent;
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.spinner-wrap {
|
|
display: flex;
|
|
}
|
|
|
|
@keyframes ring {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|