Skip to content

Commit 6cb8cf9

Browse files
authored
Merge pull request #135 from AdingApkgg/next
Enhance loader styles by adjusting positioning, dimensions, and addin…
2 parents e9a9734 + 955ab40 commit 6cb8cf9

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

assets/sass/_loader.scss

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
11
#loader {
2+
position: fixed;
3+
inset: 0;
4+
width: 100vw;
5+
height: 100vh;
6+
height: 100dvh;
7+
z-index: 1000;
28
.loading-bg {
3-
position: fixed;
9+
position: absolute;
10+
top: 0;
11+
bottom: 0;
412
z-index: 1000;
5-
width: 50%;
6-
height: 100%;
13+
width: 50vw;
14+
height: 100vh;
15+
height: 100dvh;
716
background-color: #ffffffe6;
817
transition: 0.2s;
918
backdrop-filter: blur(8px);
1019
}
20+
.loading-left-bg {
21+
left: 0;
22+
}
1123
.loading-right-bg {
1224
right: 0;
1325
}
1426
.spinner-box {
15-
position: fixed;
27+
position: absolute;
28+
inset: 0;
1629
z-index: 1001;
1730
display: flex;
1831
justify-content: center;
1932
align-items: center;
20-
width: 100%;
33+
width: 100vw;
2134
height: 100vh;
35+
height: 100dvh;
2236
opacity: 1;
2337
transition: 0.5s;
2438
.loading-taichi {
@@ -38,6 +52,7 @@
3852
}
3953
}
4054
&.loading {
55+
pointer-events: none;
4156
.loading-left-bg {
4257
transform: translate(-100%);
4358
}

0 commit comments

Comments
 (0)