From dd2bd4003474d17fc0c72d2d16d234d186cbbc54 Mon Sep 17 00:00:00 2001 From: DIPIKA VAMAN KANTAPPA POOJARI Date: Fri, 29 May 2026 19:30:55 +0400 Subject: [PATCH] Add responsive styles for navbar and links --- .../src/styles/responsive.css | 88 ++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/frontend/nyaysetu-frontend/src/styles/responsive.css b/frontend/nyaysetu-frontend/src/styles/responsive.css index b50a02ca..1d8f506c 100644 --- a/frontend/nyaysetu-frontend/src/styles/responsive.css +++ b/frontend/nyaysetu-frontend/src/styles/responsive.css @@ -455,4 +455,90 @@ p, li, span { text-rendering: optimizeLegibility; -} \ No newline at end of file +} + +/* 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; + } +} +