Project-Image-Uploader/frontend/src/Components/ComponentUtils/Css/Navbar.css

180 lines
2.8 KiB
CSS

header {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 0px 3%;
background-color: rgba(132, 191, 63, 1);
}
.logo {
margin-right: auto;
color: #ECF0F1;
font-family: 'Montserrat', sans-serif;
font-size: 20px;
display: flex;
flex-direction: row;
}
.logo p {
padding-top: 2px;
}
.imageNav {
margin-top: 10px;
height: 50px;
padding-right: 15px;
}
.nav__links {
list-style: none;
display: flex;
}
.nav__links a,
.cta,
.overlay__content a {
font-family: "Montserrat", sans-serif;
font-weight: 500;
color: #edf0f1;
text-decoration: none;
}
.nav__links li {
padding: 0px 20px;
}
.nav__links li a {
transition: all 0.3s ease 0s;
}
.nav__links li a:hover {
color: #0088a9;
}
/* Active nav link */
.nav__links li a.active {
background-color: #72b12b; /* requested dark green */
padding: 6px 12px;
border-radius: 6px;
color: #ffffff;
}
.cta {
margin-left: 20px;
padding: 9px 25px;
background-color: rgba(0, 136, 169, 1);
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease 0s;
}
.cta:hover {
background-color: rgba(0, 136, 169, 0.8);
}
/* Mobile Nav */
.menu {
display: none;
flex-direction: column;
justify-content: center;
gap: 6px;
background: none;
border: none;
padding: 10px;
cursor: pointer;
}
.menu span {
width: 28px;
height: 3px;
background-color: #edf0f1;
transition: transform 0.3s ease, opacity 0.3s ease;
display: block;
}
.menu:focus-visible {
outline: 2px solid #edf0f1;
border-radius: 4px;
}
.menu--open span:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}
.menu--open span:nth-child(2) {
opacity: 0;
}
.menu--open span:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
left: 0;
top: 0;
background-color: #24252a;
overflow-x: hidden;
transition: all 0.5s ease 0s;
}
.overlay--active {
width: 100%;
}
.overlay__content {
display: flex;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
}
.overlay a {
padding: 15px;
font-size: 36px;
display: block;
transition: all 0.3s ease 0s;
}
.overlay a:hover,
.overlay a:focus {
color: #0088a9;
}
.overlay .close {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
color: #edf0f1;
cursor: pointer;
background: none;
border: none;
}
@media screen and (max-height: 450px) {
.overlay a {
font-size: 20px;
}
.overlay .close {
font-size: 40px;
top: 15px;
right: 35px;
}
}
@media only screen and (max-width: 800px) {
.nav__links,
.cta {
display: none;
}
.menu {
display: flex;
}
}