Initial commit
This commit is contained in:
166
css/components/_nav.scss
Normal file
166
css/components/_nav.scss
Normal file
@@ -0,0 +1,166 @@
|
||||
nav.main-nav {
|
||||
background: $white;
|
||||
border-bottom-left-radius: 100% 64px;
|
||||
border-bottom-right-radius: 100% 64px;
|
||||
box-shadow: 0 4px 5px 0px rgba(0,0,0,.16);
|
||||
display: flex;
|
||||
padding: 16px 0 32px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
|
||||
.mobile-nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
.mobile-nav--logo {
|
||||
display: none;
|
||||
max-width: 100px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.hamburger {
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
margin-left: auto;
|
||||
position: relative;
|
||||
width: 30px;
|
||||
z-index: 1;
|
||||
|
||||
&> div {
|
||||
background-color: $black;
|
||||
border-radius: 2px;
|
||||
height: 5px;
|
||||
margin-bottom: 5px;
|
||||
transition: .25s;
|
||||
width: 30px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&> div {
|
||||
background-color: $gray;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.in {
|
||||
& div:first-child {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
& div:nth-child(2) {
|
||||
transform: translate(-17px);
|
||||
width: 40px;
|
||||
}
|
||||
& div:last-child {
|
||||
bottom: 1px;
|
||||
position: relative;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
background-color: $white;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
left: 100%;
|
||||
padding: 24px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
transition: .25s;
|
||||
width: 100%;
|
||||
|
||||
&.in {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
@include Libre;
|
||||
|
||||
list-style: none;
|
||||
width: 100%;
|
||||
|
||||
a {
|
||||
@include Libre;
|
||||
|
||||
color: $black;
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
width: 100%;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
font-size: 14px;
|
||||
padding-bottom: 16px;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(-n+3) {
|
||||
a {
|
||||
text-align: left;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-last-child(-n+3) {
|
||||
a {
|
||||
text-align: right;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.main-nav--logo {
|
||||
a {
|
||||
img {
|
||||
margin: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
border-radius: 0;
|
||||
padding: 24px 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user