From 6d53ff1fde288cc203b609c0a1e2e17c8d6b372b Mon Sep 17 00:00:00 2001 From: Adarsh <108751847+zs0c131y@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:54:13 +0530 Subject: [PATCH] update --- events.css | 1 + index.css | 64 +++++++++++++++++++-------- index.html | 12 ++--- schedule.css | 118 +++++++++++++++++++++++++++----------------------- schedule.html | 45 ++++++++++++++++--- 5 files changed, 155 insertions(+), 85 deletions(-) diff --git a/events.css b/events.css index 0d25ed8..d85a540 100644 --- a/events.css +++ b/events.css @@ -251,6 +251,7 @@ footer p { color: #ff0000; } +/* Mobile Styles */ @media (max-width: 768px) { .navbar { padding: 1rem; diff --git a/index.css b/index.css index 0a7023f..d14d9bc 100644 --- a/index.css +++ b/index.css @@ -183,14 +183,25 @@ nav { } .nav-links { + display: block; +} + +.nav-links ul { display: flex; gap: 2rem; + list-style: none; +} + +.nav-links li { + display: flex; + align-items: center; + justify-content: center; } .nav-links a { color: var(--primary-color); text-decoration: none; - font-size: 1.1rem; + font-size: 1.2rem; padding: 0.5rem 1rem; border-radius: 4px; transition: all 0.3s ease; @@ -356,13 +367,6 @@ footer p { padding: 0.5rem 1rem; } - .mobile-menu-btn { - display: block; - position: relative; - z-index: 1002; - margin-left: 25px; - } - .logo { height: 70px; } @@ -371,11 +375,6 @@ footer p { height: 60px; } - .blossoms-logo { - max-width: 400px; - margin: -30px auto 20px; - } - .nav-links { position: fixed; top: 0; @@ -384,21 +383,48 @@ footer p { width: 70%; background: rgba(0, 0, 0, 0.95); transition: right 0.3s ease; + padding: 80px 0; + z-index: 1000; + } + + .nav-links ul { flex-direction: column; - justify-content: center; align-items: center; - padding: 80px 0; + height: auto; + padding: 0; } - .nav-links.active { - right: 0; + .nav-links li { + width: 100%; + text-align: center; } .nav-links a { font-size: 1.2rem; - width: auto; + width: 200px; text-align: center; - margin: 1rem 0; + } + + .mobile-menu-btn { + display: block; + position: relative; + z-index: 1002; + } + + .nav-links.active { + right: 0; + } + + /* .nav-links a.active { + background: var(--bg-transparent); + } */ + + .nav-links.active ul { + right: 0; + } + .blossoms-logo { + max-width: 400px; + margin: -30px auto 20px; } .mobile-menu-btn.active span:nth-child(1) { diff --git a/index.html b/index.html index 5f466d9..71e649d 100644 --- a/index.html +++ b/index.html @@ -29,6 +29,7 @@ +