Added dropdown menu for the Services link

This commit is contained in:
blake committed 2026-02-13 11:10:28 -06:00
1 parent 3a4b43ec88
commit 92d47b8e1d
8 files changed
+326 -14

No files matched your search

+54
View File
@@ -142,6 +142,12 @@
visibility: hidden;
}
.nav-links {
height: auto;
padding: 8rem 0 4rem;
gap: 3rem;
}
.nav-open .nav-links {
opacity: 1;
pointer-events: auto;
@@ -157,6 +163,54 @@
display: none;
}
.nav-item-dropdown {
display: flex;
flex-direction: column;
align-items: center;
}
.dropdown-menu {
position: static;
transform: none;
background: transparent;
border: none;
border-radius: 0;
padding: 0;
min-width: auto;
max-height: 0;
overflow: hidden;
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: max-height 0.3s ease;
}
.nav-item-dropdown.dropdown-open .dropdown-menu {
max-height: 30rem;
}
.nav-item-dropdown:hover .dropdown-menu {
max-height: 0;
}
.nav-item-dropdown.dropdown-open:hover .dropdown-menu {
max-height: 30rem;
}
.dropdown-link:link,
.dropdown-link:visited {
padding: 0.8rem 2rem;
font-size: 2rem;
text-align: center;
color: rgba(255, 255, 255, 0.7);
}
.dropdown-link:hover,
.dropdown-link:active {
background-color: transparent;
color: #ffe642;
}
.steps-header {
max-width: 95%;
}
+48
View File
@@ -109,6 +109,54 @@ body {
align-items: center;
}
/* Dropdown Menu */
.nav-item-dropdown {
position: relative;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
list-style: none;
background: rgba(11, 21, 50, 0.5);
border: 3px solid #2d54c7;
border-radius: 20px;
padding: 1.5rem 0;
min-width: 22rem;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: all 0.3s ease;
z-index: 1000;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.dropdown-open .dropdown-menu {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.dropdown-link:link,
.dropdown-link:visited {
display: block;
padding: 1.2rem 2.5rem;
color: #fff;
text-decoration: none;
font-family: "Space Grotesk", sans-serif;
font-size: 1.8rem;
transition: all 0.3s ease;
white-space: nowrap;
}
.dropdown-link:hover,
.dropdown-link:active {
background-color: #2d54c7;
color: #ffe642;
}
.btn-mobile-nav {
border: none;
background: none;