bridgemanaccessible.ca/src/static/css/nav.css
Alan Bridgeman 4e1a13b537
All checks were successful
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / build (push) Successful in 6s
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / deploy (push) Has been skipped
Mostly added a contact page instead of direct mail link. But lots of little things mostly around cleanup too.
2025-06-11 14:18:49 -05:00

107 lines
No EOL
2.1 KiB
CSS

nav {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px;
background-color: light-dark(#fff, #000);
box-shadow: 0 2px 4px light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.2));
}
.hamburger-menu {
display: block;
width: 30px;
height: 30px;
background-color: transparent;
border: none;
cursor: pointer;
}
.hamburger-menu__line {
display: block;
width: 100%;
height: 2px;
background-color: light-dark(#333, #DDD);
margin: 5px 0;
transition: transform 0.2s ease-in-out;
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(2) {
opacity: 0;
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
.nav-links {
display: none;
list-style: none;
margin: 0;
padding: 0;
}
.nav-links.show {
display: flex;
flex-direction: column;
}
.nav-links li {
margin: 10px 0;
}
.nav-link {
font-family: 'Montserrat', sans-serif;
font-size: 18px;
font-weight: 700;
color: light-dark(#333, #DDD);
text-decoration: none;
transition: color 0.2s ease-in-out;
}
.nav-link.active {
color: #0077c2;
}
.nav-link:hover, .nav-link:focus {
color: #0077c2;
}
.nav-links li:last-child a {
background-color: light-dark(#333, #DDD);
color: light-dark(#fff, #000);
padding: 10px 15px;
border-radius: 10%;
}
.nav-links li:last-child a:hover, .nav-links li:last-child a:focus {
background-color: light-dark(#fff, #000);
color: light-dark(#333, #DDD);
}
.nav-links.active li:last-child a {
background-color: light-dark(#0077c2, #005f99);
color: light-dark(#fff, #000);
}
@media screen and (min-width: 768px) {
nav {
align-items: center;
justify-content: center;
}
.nav-links li {
margin: 0 15px;
}
.hamburger-menu {
display: none;
}
.nav-links {
display: flex;
}
}