Created
January 27, 2020 19:31
-
-
Save odyright/1b67666e5da726a997969a4bf50c67fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.header { | |
position: fixed; | |
background-color: #000; | |
width: 100%; | |
height: 80px; | |
max-width: 1230px; | |
left: 50%; | |
top: 0; | |
transform: translateX(-50%) translateX(-25px); | |
z-index: 7; | |
transition: transform 0.5s cubic-bezier(0.6, 0, 0.41, 1), -webkit-transform 0.5s cubic-bezier(0.6, 0, 0.41, 1); | |
@media (min-width: 1240px) { | |
overflow: hidden | |
} | |
@media (max-width: 1239px) { | |
left: 0; | |
height: 70px; | |
transform: none; | |
} | |
@media (max-width: 767px) { | |
height: 64px; | |
} | |
} | |
.header__content_container { | |
position: relative; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
overflow: hidden; | |
} | |
.header__logo { | |
margin-left: 50px; | |
@media (max-width: 1239px) { | |
margin-left: 25px | |
} | |
svg { | |
fill: #fff; | |
width: 80px; | |
height: 33px; | |
} | |
} | |
.header__link { | |
color: #969696; | |
font-size: 12px; | |
letter-spacing: 1px; | |
font-family: "Futura-PTBold", sans-serif; | |
text-decoration: none; | |
text-transform: uppercase; | |
transition: color 0.5s ease; | |
&.active, | |
&:hover { | |
color: #fff; | |
} | |
@media (min-width: 1240px) { | |
display: inline-block; | |
transition: all 0.55s ease-out | |
} | |
@media (max-width: 1239px) { | |
font-size: 30px; | |
text-align: center; | |
transition-duration: 0.2s; | |
width: 100%; | |
display: inline-block; | |
padding-top: 20px; | |
padding-bottom: 20px; | |
&:active { | |
color: #fff; | |
} | |
&:not(:last-child) { | |
border-bottom: 1px solid rgba(51, 50, 50, 0.8); | |
} | |
} | |
@media (max-width: 767px) { | |
font-size: 18px | |
} | |
} | |
.header__button { | |
width: 100%; | |
height: 100%; | |
max-width: 315px; | |
margin-right: -1px; | |
@media (min-width: 1240px) { | |
.btn>div { | |
width: 153px | |
} | |
} | |
@media (min-width: 1239px) { | |
margin-right: 87px; | |
max-width: 200px | |
} | |
@media (min-width: 767px) { | |
margin-right: 61px; | |
max-width: 140px; | |
.btn__dots { | |
display: none; | |
} | |
} | |
} | |
.header { | |
background-color: transparent; | |
} | |
.header__animation_container { | |
width: 0; | |
height: 0; | |
} | |
.header__animation_line { | |
position: absolute; | |
width: 100%; | |
height: 50%; | |
background-color: #000; | |
} | |
.header__animation_line-right { | |
right: 0; | |
top: 0; | |
transform: translate3d(calc(100% - 2px), -100%, 0); | |
} | |
.header__animation_line-left { | |
left: 0; | |
bottom: 0; | |
transform: translate3d(-100%, 0, 0); | |
} | |
.header__logo, | |
.header__burger, | |
.header__button { | |
transform: translate3d(0, 80px, 0); | |
} | |
.header__logo { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment