-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
215 lines (185 loc) · 3.6 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: aliceblue;
background-attachment: fixed;
background-position: center;
z-index: -1;
}
h1 {
font-size: 4rem;
font-weight: 900;
}
h2 {
font-size: 3rem;
font-weight: 500;
}
#searchForm {
margin: 20px;
text-align: center;
width: 75%;
max-width: 40rem;
margin: 0 auto;
display: flex;
gap: 0.2rem;
}
#searchInput {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
width: 100%;
}
#searchButton {
padding: 10px 20px;
background-color: #007c63;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
th {
font-size: 0.1rem;
}
#searchForm {
width: 100%; /* Take full width on smaller screens */
}
}
/* Media query for screens between 769px and 1024px (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.5rem;
}
th {
font-size: 0.1rem;
}
}
img {
max-width: 100%;
}
#header {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
padding-inline: 1.5rem;
padding-top: 2rem;
text-align: center;
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
#table-container {
overflow-x: scroll;
width: 100vw;
}
.centre {
display: block;
margin-left: auto;
margin-right: auto;
/* width: 50%; */
/* border-radius: 15px; */
}
@media screen and (max-width: 992px) {
#leaderboard {
border: 0px solid black !important;
/* background-color: #009879; */
}
}
table,
th,
td {
/* border-radius: 15px; */
/* width: 100%; */
border: 1px solid black;
text-align: center;
}
th {
font-size: 1rem;
background-color: #009879;
}
.styled-table {
border-collapse: collapse;
margin: 25px 10%;
font-size: 0.9em;
font-family: sans-serif;
max-width: 80%;
min-width: 400px;
border: 2px solid grey;
border-radius: 5px;
box-shadow: 1 1 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
background-color: #60b4a396;
color: #ffffff;
text-align: left;
border-bottom: 4px solid rgb(0, 11, 0);
}
.styled-table th,
.styled-table td {
padding: 0.8rem;
}
.styled-table > tr:hover {
background-color: #dde6e3;
cursor: pointer;
}
.styled-table tbody tr {
border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
background-color: #f3f3f3;
}
.styled-table tbody tr:last-of-type {
border-bottom: 2px solid #009879;
}
.styled-table tbody tr.active-row {
font-weight: bold;
color: #009879;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #dde6e3;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #66beaa;
border-radius: 15px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
#myBtn {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: #009879; /* Set a background color */
color: white; /* Text color */
cursor: pointer; /* Add a mouse pointer on hover */
padding: 20px; /* Some padding */
border-radius: 10px; /* Rounded corners */
font-size: 18px; /* Increase font size */
}
#myBtn:hover {
background-color: #555; /* Add a dark-grey background on hover */
}