forked from shreyasvinaya/solanlearn.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaderboard.css
96 lines (84 loc) · 1.81 KB
/
leaderboard.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
90
91
92
93
94
95
96
body{
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
*{
box-sizing: border-box;
}
.Leaderboard{
padding: 40px 20px;
margin: auto;
max-width: 800px;
}
.leader-wrap {
display: flex;
}
.leader{
padding: 8px 16px;
margin-bottom: 8px;
animation-name: revealLeaders;
animation-duration: .4s;
animation-fill-mode: both;
animation-timing-function: ease-in-out;
}
.leader-ava {
padding: 8px;
margin-right: 16px;
position: relative;
}
.leader-score {
display: flex;
align-items: center;
opacity: 0.6;
}
.leader-score svg{
display: block;
margin-right: 4px;
}
.leader-score_title{
line-height: 1;
}
.leader-ava::after{
content: "";
left: 0;
bottom: 0;
display: block;
height: 6px;
position: absolute;
border: 0px transparent solid;
border-left-width: 20px;
border-right-width: 20px;
border-bottom-width: 6px;
border-bottom-color: #fff;
transition: border-bottom-color .2s ease-in-out;
}
.leader-bar {
margin-top: 8px;
animation-name: barLoad;
animation-duration: .4s;
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.6, 0.2, 0.1, 1);
transform-origin: left;
}
.bar {
height: 4px;
border-radius: 2px;
}
@keyframes revealLeaders{
from{
transform: translateX(-200px);
opacity: 0;
}
to{
transform: none;
opacity: 1;
}
}
@keyframes barLoad{
from{
transform: scaleX(0);
}
to{
transform: scaleX(1)
}
}