fix(Spinner): properly center align (#81)

This commit is contained in:
Niyas Hameed
2023-08-10 00:10:31 +05:30
committed by GitHub
parent 0002615089
commit d808b318bc

View File

@@ -11,17 +11,24 @@
}
}
.spinner:before {
content: '';
box-sizing: border-box;
width: 50px;
height: 50px;
border-radius: 50%;
.spinner {
position: fixed;
top: 50%;
left: 50%;
width: 50px;
height: 50px;
transform: translate(-50%, -50%);
}
.spinner:before {
content: '';
box-sizing: border-box;
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 4.5px solid transparent;
border-top-color: var(--accent-color);
animation: spinner 0.6s linear infinite;
}
</style>
</style>