-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path_loader.scss
100 lines (87 loc) · 1.73 KB
/
_loader.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.stdcm-loader {
z-index: 2;
padding: 16px 16px 18px;
border-radius: 24px;
background-color: var(--white100);
width: 466px;
box-shadow:
0 6px 21px -5px rgba(24, 68, 239, 0.26),
0 16px 30px -5px rgba(0, 0, 0, 0.16),
0 3px 5px -2px rgba(0, 0, 0, 0.1);
&.loader-fixed-bottom {
position: fixed;
bottom: 32px;
top: unset;
&.with-slide-animation {
animation: slideUp 0.8s ease-in-out;
}
}
&.loader-absolute {
position: absolute;
bottom: calc(-176px + 40px); // height of the loader minus the height of the launch button
&.with-fade-in-animation {
animation: fade-in 0.5s ease-in-out;
}
}
&.loader-fixed-top {
position: fixed;
top: 32px;
bottom: unset;
}
@keyframes fade-in {
0% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}
@keyframes slideUp {
0% {
transform: translateY(100%);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.stdcm-loader__wrapper {
display: flex;
flex-direction: column;
align-items: center;
border-radius: 8px;
background-color: var(--info5);
h2 {
color: var(--info60);
font-size: 1.5rem;
font-weight: 400;
line-height: 32px;
margin-block: 15px 0;
animation: fade 1.6s infinite;
}
@keyframes fade {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.25;
}
}
}
.stdcm-loader__cancel-btn {
margin-block: 18px 23px;
button {
font-size: 0.875rem;
font-weight: 500;
}
}
.stdcm-loader__info-message {
color: var(--grey80);
font-size: 0.75rem;
font-weight: 400;
margin-block: 14px 0;
text-align: center;
}
}