From 8e1f4f3c33d25a831fc8ccb7a936ea5f14e1ff88 Mon Sep 17 00:00:00 2001 From: DIPIKA VAMAN KANTAPPA POOJARI Date: Sat, 30 May 2026 18:50:28 +0400 Subject: [PATCH] Implement navbar styles and responsiveness Added styles for navbar and responsive design for various screen sizes. --- frontend/style.css | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/frontend/style.css b/frontend/style.css index b05b82a7..3df04f2e 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -611,3 +611,88 @@ body { text-align: center; } } + +/* Navbar Container */ +.navbar { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 2rem; + flex-wrap: wrap; + width: 100%; +} + +/* Navigation Links */ +.nav-links { + display: flex; + align-items: center; + gap: 1.5rem; + list-style: none; + flex-wrap: wrap; +} + +/* Nav Link Styling */ +.nav-links a { + text-decoration: none; + font-size: 1rem; + transition: 0.3s ease; +} + +/* Better Hover Effect */ +.nav-links a:hover { + opacity: 0.8; +} + +/* Tablet Responsiveness */ +@media screen and (max-width: 992px) { + .navbar { + padding: 1rem; + } + + .nav-links { + gap: 1rem; + } + + .nav-links a { + font-size: 0.95rem; + } +} + +/* Mobile Responsiveness */ +@media screen and (max-width: 768px) { + + .navbar { + flex-direction: column; + align-items: center; + text-align: center; + } + + .nav-links { + justify-content: center; + margin-top: 1rem; + gap: 0.8rem; + } + + .nav-links a { + font-size: 0.9rem; + } +} + +/* Small Mobile Devices */ +@media screen and (max-width: 480px) { + + .navbar { + padding: 0.8rem; + } + + .nav-links { + flex-direction: column; + width: 100%; + } + + .nav-links a { + width: 100%; + display: block; + padding: 0.5rem 0; + } +}