forked from deriv-com/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCircularProgressBar.scss
44 lines (38 loc) · 944 Bytes
/
CircularProgressBar.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
.deriv-circular-progress {
position: relative;
line-height: 0;
width: fit-content;
&__content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
&__bar {
transform: scaleX(-1) rotate(-90deg);
transform-origin: 50% 50%;
transition: stroke-dashoffset 1s;
stroke: var(--du-brand-secondary, #85acb0);
&--warning {
stroke: var(--du-status-warning, #ffad3a);
}
&--danger {
stroke: var(--du-status-danger, #ec3f3f)
}
}
&--clockwise {
transform: rotate(-90deg);
}
&__icon {
position: absolute;
width: 1.6rem;
height: 100%;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
}