From 8de9bc0c24e1ce981b36d2f03b4f97d75a1dc286 Mon Sep 17 00:00:00 2001 From: DIPIKA VAMAN KANTAPPA POOJARI Date: Wed, 10 Jun 2026 17:38:16 +0400 Subject: [PATCH] Implement responsive navbar and nav link styles Added responsive styles for navbar and navigation links. --- src/styles.css | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/src/styles.css b/src/styles.css index ccb9df4..a1487ed 100644 --- a/src/styles.css +++ b/src/styles.css @@ -32,3 +32,89 @@ html { #leva__root > * { width: 140px !important; } + +/* 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; + } +} +