Skip to content

Commit cf271b5

Browse files
refactor(loader): refactor loader styles
1 parent 38f2151 commit cf271b5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

typescript-version/public/loader.css

+7-11
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,23 @@ html {
99

1010
#loading-bg {
1111
position: absolute;
12-
display: block;
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: center;
1316
background: var(--initial-loader-bg, #fff);
1417
block-size: 100%;
18+
gap: 1rem 0;
1519
inline-size: 100%;
1620
}
1721

18-
.loading-logo {
19-
position: absolute;
20-
inset-block-start: 40%;
21-
inset-inline-start: calc(50% - 45px);
22-
}
23-
2422
.loading {
25-
position: absolute;
23+
position: relative;
2624
box-sizing: border-box;
2725
border: 3px solid transparent;
28-
block-size: 55px;
2926
border-radius: 50%;
27+
block-size: 55px;
3028
inline-size: 55px;
31-
inset-block-start: 50%;
32-
inset-inline-start: calc(50% - 35px);
3329
}
3430

3531
.loading .effect-1,

0 commit comments

Comments
 (0)