.header {
padding: 1.5rem 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: $white;
z-index: 99;
@include transition(300ms);
@media (min-width: $lg) {
padding: 3rem 0;
}
&.sticky {
background: $white !important;
padding: 2rem 0;
}
&--transperant {
background: transparent;
}
&__logo-link {
img,
svg {
float: left;
height: auto;
// height: 100%;
width: 100%;
width: auto;
@media (min-width: $sm) {
height: 50px;
}
@media (min-width: $xl) {
height: 60px;
}
}
}
&-btn {
margin-top: 1rem;
display: flex;
justify-content: center;
position: relative;
@media (min-width:$lg) {
margin-top: 0;
display: inline-block;
}
@media (min-width:$lg) {
margin-left: 4.5rem !important;
}
a {
border-radius: 0 15px 0 15px;
width: auto !important;
padding: 7px 25px !important;
font-size: 1.5rem !important;
line-height: 2.2rem !important;
@media (min-width: $xl) {
padding: 5px 43px 5px 30px !important;
line-height: 3rem !important;
}
}
}
&__burger {
background-color: transparent;
border: none;
cursor: pointer;
display: flex;
padding: 0;
float: right;
position: relative;
z-index: 10;
@media (min-width: $lg) {
display: none;
}
.line {
fill: none;
stroke: $primary;
stroke-width: 6;
transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
stroke-dasharray: 60 207;
stroke-width: 6;
}
.line2 {
stroke-dasharray: 60 60;
stroke-width: 6;
}
.line3 {
stroke-dasharray: 60 207;
stroke-width: 6;
}
&.opened .line1 {
stroke-dasharray: 90 207;
stroke-dashoffset: -134;
stroke-width: 6;
}
&.opened .line2 {
stroke-dasharray: 1 60;
stroke-dashoffset: -30;
stroke-width: 6;
}
&.opened .line3 {
stroke-dasharray: 90 207;
stroke-dashoffset: -134;
stroke-width: 6;
}
}
.col-lg-10 {
position: static;
}
.nav-main {
float: right;
display: none;
position: absolute;
right: 0;
padding: 50px 15px;
width: 100%;
top: calc(100% + 0px);
background: $white;
height: calc(100vh - 80px);
@media (min-width: $lg) {
height: auto;
position: static;
background: none;
padding: 0;
max-width: none;
width: auto;
display: flex !important;
align-items: center;
}
@media (max-width: 991px) {
overflow: auto;
}
.primary {
display: block;
float: left;
margin: 0;
padding: 0;
width: 100%;
text-align: center;
@media (min-width: $lg) {
text-align: left;
display: flex;
align-items: center;
}
}
.menu {
display: block;
float: left;
margin: 0;
padding: 0;
&-item {
float: left;
padding: 0;
width: 100%;
@media (min-width: $lg) {
margin: 0 5px;
width: auto;
}
i.dropdown-arv {
position: absolute;
right: 15px;
width: 12px;
height: 12px;
text-align: center;
top: 43%;
z-index: 5;
border-top: 2px solid $dark;
border-right: 2px solid $dark;
transform: translateY(-50%) rotate(135deg);
&.active {
transform: rotate(-45deg);
content: "-";
}
}
.dropdown-arv-cont {
position: absolute;
top: 4px;
right: 18%;
z-index: 5;
width: 44px;
height: 100%;
@include transition(300ms);
@media (min-width: $sm) {
right: 35%;
}
@media (min-width: $md) {
right: 40%;
}
@media (min-width: $lg) {
display: none;
}
&.active {
transform: rotate(180deg);
@include transition(300ms);
}
}
&:before {
display: none;
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
a {
position: relative;
font-family: $Quicksand;
font-weight: $normal;
float: left;
color: $dark;
width: 100%;
padding: 5px 15px;
font-size: 2.5rem;
line-height: 3.5rem;
@media (min-width: $lg) {
width: auto;
padding: 7px 10px;
border-radius: 10px;
font-size: 1.7rem;
line-height: 2.7rem;
}
@media (min-width: $xl) {
padding: 7px 10px;
}
@media (min-width: $xxl) {
padding: 10px 19px;
}
&:hover,
&.active {
color: $primary;
.dropdown-arv {
border-color: $primary;
}
}
}
&.current-menu-item a,
&.current-menu-parent>a {
color: $primary;
font-weight: $bold;
.dropdown-arv {
border-color: $primary;
}
}
.sub-menu {
display: none;
width: 100%;
// padding-bottom: 10px;
@media (min-width: $lg) {
width: 240px;
position: absolute;
top: 100%;
left: 0;
background: $white;
border-top: 2px solid $blue;
padding: 10px 0;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
}
&.active {
@media (max-width: 991px) {
display: block;
float: left;
width: 100%;
}
}
.menu-item {
margin: 0;
a {
color: $gray;
width: 100%;
padding: 3px 15px;
font-weight: $normal;
font-size: 1.6rem;
line-height: 2.2rem;
@media (min-width: $lg) {
padding: 5px 15px;
}
&:hover {
color: $blue;
background: transparent;
}
&:before {
content: '';
display: none;
padding-right: 5px;
@media (max-width: 991px) {
display: inline-block;
}
}
}
&.current-menu-item a {
color: $blue;
background: transparent;
}
}
}
&:hover {
.sub-menu {
@media (min-width: $lg) {
display: block;
}
}
}
&-has-children {
// display: flex;
// justify-content: center;
a {
// display: inline-block;
// width: auto;
}
}
}
}
}
&__nav-col {
display: flex;
justify-content: flex-end;
align-items: center;
}
}
body {
&.home {
.main-wrapper {
padding-top: 0;
}
}
.main-wrapper {
padding-top: 8rem;
@media (min-width:$lg) {
padding-top: 12rem;
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter