-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
89 lines (76 loc) · 1.58 KB
/
style.css
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
body {
margin: 0;
padding: 0;
font-family: sans-serif;
display: flex;
overflow: hidden;
justify-content: center;
height: 100vh;
background: rgb(2,37,31);
background: linear-gradient(90deg, rgba(2,37,31,1) 0%, rgba(9,121,112,1) 27%, rgba(20,185,169,1) 56%, rgba(0,255,221,1) 100%);
}
.circle-chart {
width: 150px;
height: 150px;
}
.circle-chart__circle {
stroke: #00acc1;
stroke-width: 2;
stroke-linecap: square;
fill: none;
animation: circle-chart-fill 2s reverse;
transform: rotate(-90deg);
transform-origin: center;
}
.circle-chart__circle--negative {
transform: rotate(-90deg) scale(1,-1);
}
.circle-chart__background {
stroke: #efefef;
stroke-width: 2;
fill: none;
}
.circle-chart__info {
animation: circle-chart-appear 2s forwards;
opacity: 0;
transform: translateY(0.3em);
}
.circle-chart__percent {
alignment-baseline: central;
text-anchor: middle;
font-size: 8px;
}
.circle-chart__subline {
alignment-baseline: central;
text-anchor: middle;
font-size: 4px;
font-weight: bold;
color: darkgreen;
}
.success-stroke {
stroke: #00C851;
}
.warning-stroke {
stroke: #ffbb33;
}
.danger-stroke {
stroke: #ff4444;
}
#demo
{
background-color: white;
height: 350px;
padding: 30px;
margin-top: 5%;
border-radius: 15px;
box-shadow: 1px 1px 35px 4px #02251f;
}
@keyframes circle-chart-fill {
to { stroke-dasharray: 0 100; }
}
@keyframes circle-chart-appear {
to {
opacity: 1;
transform: translateY(0);
}
}