From fc6a09fa07208f361c06761e21a761f110230928 Mon Sep 17 00:00:00 2001 From: DIPIKA VAMAN KANTAPPA POOJARI Date: Fri, 29 May 2026 20:42:35 +0400 Subject: [PATCH] Add responsive navbar styles for various devices --- src/index.css | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/src/index.css b/src/index.css index 3f5943c5..31fb9294 100644 --- a/src/index.css +++ b/src/index.css @@ -89,3 +89,88 @@ .icon-issue-closed { color: #cf222e; } + +/* 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; + } +}