Initial code commit
This commit is contained in:
parent
80a09db0d7
commit
c5268ad9b3
18 changed files with 1560 additions and 0 deletions
102
src/public/css/nav.css
Normal file
102
src/public/css/nav.css
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.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: #333;
|
||||
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: #333;
|
||||
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: #333;
|
||||
color: #fff;
|
||||
padding: 10px 15px;
|
||||
border-radius: 10%;
|
||||
}
|
||||
|
||||
.nav-links li:last-child a:hover, .nav-links li:last-child a:focus {
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue