-
Notifications
You must be signed in to change notification settings - Fork 1
/
style_leaderboard.css
115 lines (111 loc) · 2.01 KB
/
style_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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
body{
font-family: sans-serif;
margin: 0;
background-color :aliceblue;
overflow-x: hidden;
}
.leaderboard{
max-width: 55em;
margin-right: auto;
margin-left: auto;
display: block;
padding: 1em;
padding-top: 2em;
}
.theme-img{
width: 20em;
border-radius: 10px;
}
.description{
display: inline-block;
text-align: center;
margin: 1em;
color: blueviolet;
transform: translateY(-5em);
font-size: 30px;
padding-top: 2em;
}
.search{
border-radius: 5px;
border: none;
background-color: transparent;
border-bottom: #0aa989 2px solid;
padding: .5em;
font-size: 1em;
color: black;
}
.search:focus{
outline: none;
}
table{
margin-top: 2em;
width: 50em;
color: w;
margin-right: auto;
margin-left: auto;
}
table thead{
opacity: .8;
}
table img{
width:2em;
height: 2em;
border-radius: 100%;
}
table td{
max-width: 2em;
padding: .5em;
text-align: center;
}
tbody tr{
box-shadow: 2px 2px rgb(4, 4, 140);
border-radius: 10px;
}
tbody tr:hover{
transform: scale(1.025);
transition: .2s ease-in-out;
}
tbody tr td:nth-child(2) p{
display: inline-block;
transform: translateY(-.5em);
padding-left: .5em;
text-align: left;
}
table td:nth-child(2){
max-width: 5em;
}
tbody tr:nth-child(1){
background-color: rgb(24, 168, 201);
margin: 20px;
border: 4px solid blue;
}
#winner{
color: gold;
font-weight: 800;
}
#runner-up{
color: silver;
font-weight: 800;
}
#second-runner-up{
color: #cd7f32;
font-weight: 800;
}
@media(max-width:860px){
.leaderboard{
padding: 0;
}
.theme-img{
margin-right: auto;
margin-left: auto;
display: block;
}
.description{
display: block;
transform: translateY(0);
}
table{
max-width: 100vw;
overflow-x: scroll;
}
}