Skip to content

Commit dc9ef20

Browse files
committed
Mobile friendly
1 parent 14b5107 commit dc9ef20

1 file changed

Lines changed: 155 additions & 2 deletions

File tree

assets/css/main.css

Lines changed: 155 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,23 +505,176 @@ body {
505505

506506
/* Responsive */
507507
@media (max-width: 768px) {
508-
.hero-text h1 {
509-
font-size: 2rem;
508+
.navbar {
509+
padding: 0.8rem 0;
510510
}
511511

512512
.nav-container {
513513
padding: 0 1rem;
514514
gap: 1rem;
515+
flex-direction: column;
516+
align-items: flex-start;
517+
}
518+
519+
.nav-logo {
520+
gap: 0.5rem;
521+
}
522+
523+
.nav-logo img {
524+
height: 35px;
525+
}
526+
527+
.nav-links {
528+
flex-direction: column;
529+
gap: 0.8rem;
530+
margin-left: 0;
531+
padding-left: 0;
532+
width: 100%;
533+
}
534+
535+
.nav-link {
536+
font-size: 1rem;
537+
padding: 0.5rem 0;
538+
width: 100%;
539+
border-bottom: 1px solid var(--border-color);
540+
}
541+
542+
.nav-link:last-child {
543+
border-bottom: none;
544+
}
545+
546+
.hero-text h1 {
547+
font-size: 1.75rem;
548+
}
549+
550+
.hero-text p {
551+
font-size: 1rem;
515552
}
516553

517554
.main-content {
518555
padding: 2rem 1rem;
519556
}
520557

558+
.people-section h1,
559+
.research-section h1 {
560+
font-size: 2rem;
561+
}
562+
563+
.people-section h2,
564+
.research-section h2,
565+
.lab-section h2 {
566+
font-size: 1.5rem;
567+
}
568+
521569
.people-grid {
522570
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
523571
gap: 1.5rem;
524572
}
573+
574+
.publication-item {
575+
flex-direction: column;
576+
gap: 1rem;
577+
padding-top: 1rem;
578+
padding-bottom: 1rem;
579+
}
580+
581+
.pub-thumbnail {
582+
width: 100%;
583+
height: 200px;
584+
}
585+
586+
.pub-title {
587+
font-size: 1rem;
588+
}
589+
590+
.pub-authors,
591+
.pub-venue {
592+
font-size: 0.9rem;
593+
}
594+
595+
.filter-buttons {
596+
gap: 0.5rem;
597+
}
598+
599+
.filter-btn {
600+
padding: 0.4rem 1rem;
601+
font-size: 0.9rem;
602+
}
603+
604+
.research-area {
605+
flex-direction: column;
606+
gap: 1.5rem;
607+
padding: 1.5rem 0;
608+
}
609+
610+
.research-area-content h2 {
611+
font-size: 1.4rem;
612+
}
613+
614+
.research-area-content p {
615+
font-size: 0.95rem;
616+
}
617+
618+
.research-area-image {
619+
flex: 1;
620+
max-width: 100%;
621+
}
622+
623+
.hero-section {
624+
flex-direction: column;
625+
gap: 2rem;
626+
}
627+
628+
.hero-image {
629+
max-width: 100%;
630+
}
631+
632+
.hero-media {
633+
max-width: 100%;
634+
}
635+
636+
.hero-media img,
637+
.hero-media video {
638+
max-width: 100%;
639+
}
640+
641+
.funding-section {
642+
padding: 2rem 0;
643+
margin-top: 3rem;
644+
}
645+
646+
.funding-section h2 {
647+
font-size: 1.5rem;
648+
}
649+
650+
.funding-logo {
651+
flex: 0 0 250px;
652+
padding: 1.5rem;
653+
}
654+
655+
.funding-logo img {
656+
max-width: 150px;
657+
max-height: 80px;
658+
}
659+
660+
.funding-carousel::before,
661+
.funding-carousel::after {
662+
width: 50px;
663+
}
664+
665+
.year-header {
666+
font-size: 1.5rem;
667+
margin: 2rem 0 0.8rem 0;
668+
}
669+
670+
.contact-page {
671+
max-width: 100%;
672+
padding: 1rem;
673+
}
674+
675+
.contact-page h1 {
676+
font-size: 2rem;
677+
}
525678
}
526679

527680
/* Links */

0 commit comments

Comments
 (0)