Skip to content

Commit 9cde110

Browse files
committed
Fix: Ensure main navigation menu is visible and functional
- Fix menu visibility with proper CSS media queries - Add !important flags to ensure nav-menu-item styles are applied - Ensure menu container displays correctly on large screens - Fix mobile menu class ordering - Add explicit display rules for desktop menu - Ensure all navigation links are properly formatted and accessible
1 parent 1f0fe3d commit 9cde110

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

_includes/portal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
</div>
139139

140140
<!-- Mobile Navigation (hidden by default) -->
141-
<ul class="lg:hidden hidden flex-col w-full absolute left-0 bg-stone-800 shadow-lg z-50 border-t border-stone-700" id="mobile-menu" role="menu">
141+
<ul class="hidden lg:hidden flex-col w-full absolute left-0 bg-stone-800 shadow-lg z-50 border-t border-stone-700" id="mobile-menu" role="menu">
142142
<li role="none">
143143
<a class="nav-menu-item-mobile" href="/development" role="menuitem" aria-label="Development">DEVELOPMENT</a>
144144
</li>

_sass/main.scss

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,22 @@ select:focus {
6666

6767
.nav-menu-item {
6868
display: flex !important;
69-
align-items: center;
70-
justify-content: center;
71-
height: 4rem;
72-
padding: 0 1rem;
73-
font-weight: 600;
74-
color: #ffffff;
69+
align-items: center !important;
70+
justify-content: center !important;
71+
height: 4rem !important;
72+
padding: 0 1rem !important;
73+
font-weight: 600 !important;
74+
color: #ffffff !important;
75+
text-decoration: none !important;
7576
transition-property: background-color;
7677
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
7778
transition-duration: 150ms;
79+
white-space: nowrap;
7880
}
7981

8082
.nav-menu-item:hover {
81-
background-color: #57534e;
83+
background-color: #57534e !important;
84+
color: #ffffff !important;
8285
}
8386

8487
.nav-menu-item:focus {
@@ -87,6 +90,13 @@ select:focus {
8790
box-shadow: inset 0 0 0 2px #f97316;
8891
}
8992

93+
/* Ensure menu container is visible on large screens */
94+
@media (min-width: 1024px) {
95+
#main-menu-desktop {
96+
display: flex !important;
97+
}
98+
}
99+
90100
.nav-menu-item-mobile {
91101
@apply block px-4 py-3 text-white font-semibold;
92102
@apply transition-colors hover:bg-stone-700;

0 commit comments

Comments
 (0)