-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
556 lines (546 loc) · 11.2 KB
/
styles.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
body {
background-color: #f4f4f4;
margin-right: 120px;
margin-left: 120px;
margin-top: 60px;
margin-bottom: 60px;
}
#about {
text-align: center;
/* Centers text within the section */
margin: auto;
padding: 20px;
}
#about h2,#about h3 {
margin-top: 20px;
margin-bottom: 20px;
}
/* Adjust the navigation bar padding */
nav ul {
list-style-type: none;
text-align: center;
/* Center align the navigation links */
}
nav ul li {
display: inline;
margin-right: 5%;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
header {
display: flex;
justify-content: center; /* Center content horizontally */
align-items: center; /* Center content vertically */
background-color: #024959;
color: #fff;
text-align: center;
padding: 20px;
}
/* Footer adjustments */
footer {
background-color: #022b30;
color: #fff;
text-align: center;
padding: 20px;
}
/* Image example grid style*/
.image-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
/* Always three columns */
/* Adapts number of columns based on screen width, min 300px */
gap: 20px;
justify-content: center;
/* Centers the grid within the section */
}
.image-item {
position: relative;
width: 100%;
padding-top: 66.66%; /* Aspect ratio of 3:2 */
overflow: hidden;
background-color: #000; /* Optional: Set background to prevent white space visibility */
}
.image-item img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
/* Add the following rule to prevent white space */
min-height: 100%; /* Ensures the image always fills vertically */
}
.image-item p {
position: absolute;
bottom: 0;
width: 100%;
padding: 10px;
background: rgba(0, 0, 0, 0.5);
color: white;
font-size: 1em;
text-align: center;
margin: 0;
}
.image-item:hover img {
transform: scale(1.05); /* Slight zoom on hover */
transition: transform 0.3s ease;
}
#featured-image img {
width: 100%;
/* Makes the image responsive and full width */
height: auto;
/* Maintains the aspect ratio of the image */
display: block;
/* Removes any default margin/padding */
}
footer {
background-color: #022b30;
color: #fff;
text-align: center;
padding: 10px 20px;
}
footer nav ul li {
display: inline;
margin-right: 10px;
}
footer nav ul li a {
color: #fff;
text-decoration: none;
}
#access {
text-align: center;
/* This will center the text and buttons within the section */
}
.button {
display: inline-block;
padding: 10px 20px;
margin: 10px;
font-size: 16px;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.button:hover {
opacity: 0.8;
}
.arxiv {
background-color: #FFBF00;
/* Amber */
}
.arxiv:hover {
background-color: #FFBF00;
}
.quickstart {
background-color: #228B22;
/* Forest Green */
}
.quickstart:hover {
background-color: #5F8575;
}
.tensorflow {
background-color: #ff6f00;
/* TensorFlow orange */
}
.tensorflow:hover {
background-color: #cc5800;
}
.huggingface {
background-color: #0061ff;
/* Hugging Face blue */
}
.huggingface:hover {
background-color: #0047cc;
}
.harvard {
background-color: #a10035;
/* Harvard crimson */
}
.harvard:hover {
background-color: #750026;
}
#sponsors {
padding: 20px;
text-align: center;
/* Centering the text within the section */
}
#contact {
background-color: #f0f4f8;
/* Light background to make the text stand out */
padding: 20px;
text-align: center;
/* Centering the text within the section */
}
#contact ul {
list-style: none;
/* Removes bullet points from the list */
padding: 0;
}
#contact li {
margin: 10px 0;
/* Spacing between items */
}
#contact a {
color: #0061ff;
/* Color for links, matching the site theme */
text-decoration: none;
/* Removes underline from links */
}
#contact a:hover {
text-decoration: underline;
/* Adds underline on hover for better interaction feedback */
}
:root {
--primary-color: #4CAF50;
--secondary-color: #8BC34A;
--background-color: #E8F5E9;
--text-color: #333;
--header-bg: #F1F8E9;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.contact {
flex: 1;
display: flex;
}
/* Logo container with better alignment and responsive behavior */
.logo-container {
display: flex;
justify-content: flex-end;
align-items: center;
/* Ensure vertical alignment for logos */
flex: 1;
min-width: 300px;
padding: 10px;
/* Add some spacing around the logo */
}
/* Style for sort button */
.sortable {
cursor: pointer;
position: relative;
display: inline-block;
padding-right: 20px;
/* Space for arrow */
}
.sortable::after {
content: "▼";
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
}
.sortable:checked::after {
transform: translateY(-50%) rotate(180deg);
}
/* Hide the input */
.sortable-input {
display: none;
}
/* Style for highlighting sorted column */
th.sorted {
background-color: var(--primary-color);
color: white;
}
th {
position: relative;
cursor: pointer;
}
.arrow {
margin-left: 8px;
font-size: 12px;
color: gray;
}
th.sorted-asc .arrow {
color: black;
}
th.sorted-desc .arrow {
color: black;
}
/* Leaderboard container with enhanced styles and shadow */
.leaderboard-container {
max-width: 1200px;
/* Limit container width */
margin: 20px auto;
/* Center and add vertical spacing */
overflow-x: auto;
/* Allow horizontal scrolling for responsiveness */
border-radius: 12px;
/* Slightly more rounded corners */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
/* Enhanced shadow for depth */
background-color: #fff;
/* Ensure consistent white background */
padding: 0;
/* Remove padding for seamless table display */
border: 1px solid #ddd;
/* Add a subtle border for better definition */
}
/* Table within leaderboard container */
.leaderboard-container table {
width: 100%;
/* Ensure table fills container */
border-collapse: collapse;
/* Avoid spacing between cells */
text-align: center;
/* Align text centrally */
background-color: #fff;
/* Keep table background consistent */
}
/* Table headers and cells */
.leaderboard-container th,.leaderboard-container td {
padding: 12px 16px;
/* Add comfortable padding for better readability */
border-bottom: 1px solid #eee;
/* Subtle divider between rows */
word-wrap: break-word;
/* Ensure content wraps in smaller screens */
}
/* Header styling */
.leaderboard-container th {
background-color: #f7f7f7;
/* Soft background color for headers */
font-weight: 600;
/* Slightly bolder for emphasis */
border-bottom: 2px solid #ccc;
/* Pronounced divider for header row */
color: #333;
/* Use darker color for better contrast */
text-transform: uppercase;
/* Make headers stand out */
}
/* Rounded corners for the first and last cells in header and footer rows */
.leaderboard-container th:first-child {
border-top-left-radius: 12px;
}
.leaderboard-container th:last-child {
border-top-right-radius: 12px;
}
.leaderboard-container tr:last-child td:first-child {
border-bottom-left-radius: 12px;
}
.leaderboard-container tr:last-child td:last-child {
border-bottom-right-radius: 12px;
}
/* Add hover effect for rows */
.leaderboard-container tr:hover {
background-color: #f5f5f5;
/* Subtle highlight for row on hover */
}
header {
background-color: var(--header-bg);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.title-container {
flex: 1;
min-width: 300px;
}
.logo-container {
flex: 1;
display: flex;
justify-content: flex-end;
min-width: 300px;
}
.logo {
max-height: 160px;
width: auto;
}
h1, h2 {
color: var(--primary-color);
margin: 0 0 15px 0;
}
h1 {
font-size: 2.5em;
}
.button {
display: inline-block;
padding: 12px 24px;
background-color: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 30px;
margin-right: 10px;
margin-bottom: 10px;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.button:hover {
background-color: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 20px;
}
.feature-item {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.feature-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.sections-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
}
.section {
flex: 1;
min-width: 300px;
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
footer {
background-color: var(--primary-color);
color: white;
text-align: center;
padding: 20px 0;
margin-top: 40px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.5s ease-out forwards;
opacity: 0;
}
.fade-in:nth-child(2) {
animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
animation-delay: 0.6s;
}
.anchor {
display: block;
position: relative;
top: -10px;
visibility: hidden;
}
.image-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}
.image-item {
background-color: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;
overflow: hidden;
aspect-ratio: 1 / 1;
}
.image-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.image-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
/* General Styles for Small Screens */
@media (max-width: 768px) {
/* Leaderboard Table Styles */
.leaderboard-container table {
}
.leaderboard-container th,
.leaderboard-container td {
padding: 10px 8px; /* Adjust padding for compact view */
}
/* Hide all middle columns, keeping only the first and last */
.leaderboard-container td:nth-child(n+2):nth-last-child(n+2),
.leaderboard-container th:nth-child(n+2):nth-last-child(n+2) {
display: none;
}
/* Contact Section Styles */
.contact {
flex-direction: column;
align-items: center;
}
/* Logo Container */
.logo-container {
width: 100%;
justify-content: center;
text-align: center;
margin-bottom: 20px;
}
/* Image Grid Adjustments */
.image-grid {
grid-template-columns: 1fr;
}
.image-item {
padding-top: 75%; /* Adjust aspect ratio for smaller screens if needed */
}
.image-item img {
object-fit: cover; /* Optional: Change to 'contain' for smaller screens */
}
/* About Section Heading Adjustments */
#about h2,
#about h3 {
font-size: 1.5em;
}
/* Body Styles */
body {
background-color: #f4f4f4;
margin: 10px 20px; /* Combined shorthand for top, right, bottom, and left margins */
}
/* Header Content Adjustments */
.header-content {
flex-direction: column;
align-items: center;
}
.title-container,
.logo-container {
width: 100%;
justify-content: center;
text-align: center;
margin-bottom: 20px;
}
}
@media (max-width: 480px) {
.image-item {
padding-top: 100%; /* Change aspect ratio to 1:1 for very small screens */
}
}