-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
143 lines (143 loc) · 2.59 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*Attempting to use SMACSS (Scalable and Modular Architecture for CSS) where css is highly modular and reusable instead of nested and tightly coupled*/
body {
background-image: url("../images/Leaderboard.jpg");
}
.leaderboard {
font-family: 'Helvetica', sans-serif;
margin-top: 25vh;
}
.leaderboard * {
margin: 0 auto;
}
.leaderboard h1 {
font-size: 26px;
}
.leaderboard h2 {
font-size: 22px;
}
.leaderboard h3 {
font-size: 18px;
}
.leaderboard h4 {
font-size: 14px;
}
.error {
width: 100%;
color: #f60;
text-align: center;
}
.layout_constrained {
max-width: 768px;
margin: 0 auto;
}
.leaderboard_header {
text-indent: -9999px;
background: url("../images/board-title.png") no-repeat center center;
background-size: contain;
width: 100%;
height: 96px;
margin: 5% 0;
}
.leaderboard_display {
max-width: 500px;
border: 5px solid #fff;
border-radius: 20px;
min-height: 100px;
background-color: rgba(30,31,30,0.8);
}
.leaderboard_list {
padding: 0;
}
.leaderboard__listItem {
list-style-type: none;
border-bottom: 1px solid #404040;
padding: 10px 20px;
display: flex;
align-items: flex-end;
justify-content: space-between;
}
.leaderboard__listItem:last-child {
border: none;
}
.leaderboard__listItem h2 {
color: #fff;
font-weight: bold;
flex: 1;
}
.leaderboard__listItem h3 {
color: #9e0b0f;
}
.leaderboard__listItem h4 {
color: #fff;
font-weight: lighter;
padding-left: 5px;
}
.spinner {
width: 100%;
height: 200px;
background: url("../images/spinner.gif") no-repeat center center;
background-size: 50px;
}
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-moz-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
opacity: 0;
/* make things invisible upon start */
-webkit-animation: fadeIn ease-in 1;
/* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
-moz-animation: fadeIn ease-in 1;
animation: fadeIn ease-in 1;
-webkit-animation-fill-mode: forwards;
/* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
-moz-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
animation-duration: 1s;
}
@-moz-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-o-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}