.billow.home { header.site-header { position: absolute; z-index: 1000; background-repeat: no-repeat; background-position: center; background-size: cover; } &.front-bc-image-off { header.site-header { position: relative; } } } .billow { header.site-header { width: 100%; min-height: 5.5rem; display: flex; align-items: center; padding: 0.1rem 0; background-color: $color_main; background-repeat: no-repeat; background-position: center; background-size: cover; -webkit-transition: all .3s ease-out; -moz-transition: all .3s ease-out; -ms-transition: all .3s ease-out; -o-transition: all .3s ease-out; transition: all .3s ease-out; position: relative; z-index: 99; .header-wrap { margin: 0 auto; width: 100%; .container { display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; .main-info { display: flex; align-items: center; min-width: fit-content; .site-logo { -webkit-box-flex: 0; margin-right: 0.9rem; img.custom-logo { max-height: 4.5rem; width: auto; object-fit: contain; } } .site-branding { .site-title, .site-description { margin: 0; } } } nav.main-navigation { -webkit-box-flex: 0; width: fit-content; ul { align-items: center; justify-content: flex-end; flex-wrap: wrap; a { color: $color_white; text-transform: uppercase; font-size: 0.9rem; span { color: inherit; font-style: inherit; } } } } } } } } .billow.siteScrolled { &.sticky-menu { header.float-header.fixed { position: fixed; top: 0; padding: 0.3rem 0; -webkit-animation: smoothScroll 1s forwards; animation: smoothScroll 1s forwards; z-index: 99; .header-wrap { .container { nav.main-navigation { .menu { ul.nav-menu { a { color: $color_white; } } } } } } } } } .billow.siteScrolled.admin-bar { header.float-header.fixed { top: 32px; } } .blw-hero-area { height: auto; .hero-bg { position: relative; height: 44rem; width: 100%; background-size: cover; background-position: center; &::after { @include overlay } img { position: relative; height: 44rem; width: 100%; } } .hero-content { position: absolute; top: 10%; left: 0; right: 0; z-index: 2; width: 100%; min-height: 15.5rem; height: 38rem; display: flex; flex-direction: column; justify-content: space-evenly; &.left { text-align: start; } &.center { text-align: center; } &.right { text-align: end; } .hero-title { .entry-title { text-shadow: 0 0 27px rgba(0, 0, 0, 0.37); } } } } @keyframes smoothScroll { 0% { -webkit-transform: translateY(-40px); transform: translateY(-40px) } 100% { -webkit-transform: translateY(0); transform: translateY(0) } } .home { &.blog { .blw-hero-area { display: none; } .blw-blog-content-area { padding-top: 5rem; } } } /* customizer */ .billow { header.site-header { .header-wrap { .container { margin-top: 0rem; margin-bottom: 0rem; &.header-right { justify-content: space-between; } &.header-center { flex-direction: column; justify-content: center; align-items: center; .main-info { margin-right: 0; .site-branding { text-align: center; } } .main-navigation { ul { & > li { & > ul { margin-top: 0.18rem; li { ul { margin-top: 0; } } } } } } } &.header-left { justify-content: space-between; .main-info { order: 2; margin-right: 0; margin-left: 1.5rem; .site-branding { text-align: end; } } nav.main-navigation { ul { justify-content: flex-start; } } } } } } } /* mobile menu */ .billow { &.siteScrolled { .mobile-menu-container.off { padding-top: 1.5rem; } } .mobile-menu-container.off { position: fixed; top: 0; left: 0; display: none; height: 100%; width: 75vw; min-width: 200px; padding: 1.5rem; padding-top: 3.5rem; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; background: #fff; z-index: 1000; transform: translate3d(-100%,0,0); @include transition; a.close { display: block; width: 100%; text-align: end; i { color: #000; outline: none; cursor: pointer; -webkit-transition: all .3s; -moz-transition: all .3s; -ms-transition: all .3s; -o-transition: all .3s; transition: all .3s; &::before { font-size: 1.4rem; } } } .logo { margin-top: 1rem; margin-bottom: 1.8rem; text-align: center; img { display: inline-block; max-width: 85%; } } .mobile-menu.active { li { position: relative; a { float: none; display: block; padding: 0.9rem 0; padding-right: 3.1rem; font-weight: 600; line-height: 1.4; letter-spacing: .02em; border-bottom: 1px solid rgba(0,0,0,.07); } .chevron { position: absolute; right: 0; top: 0; padding: 15px 25px; margin-right: -15px; border: 0; color: #aaa; text-align: center; font-size: 12px; -webkit-text-stroke: 1.2px #fff; line-height: 1.8; cursor: pointer; } &.active { ul { opacity: 1; max-height: 3000px; transition: opacity .4s ease-in,max-height 1s ease-in; } .chevron { transform: rotate(180deg); } } ul { max-height: 0; opacity: 0; background: 0 0; overflow: hidden; border: 0; border-bottom: 1px solid rgba(0,0,0,.07); transition: opacity .6s ease,max-height .8s ease; li { &:last-child { a { border-bottom-color: transparent; } } } } } } } &.admin-bar { &.mobile-menu-container { padding-top: 5rem; } } &.mobile-menu-active { .mobile-menu-container.off { transform: translate3d(0,0,0); box-shadow: 4px 0px 8px 0 rgba(0,0,0,.2); } #page { transform: translate3d(75vw,0,0); @include transition; position: relative; &::before { content: ""; position: absolute; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,.2); z-index: 9; } } } } @media ( max-width: 70rem ) { .billow { header.site-header { min-height: auto; .header-wrap { .container { align-items: center; @include transition; .main-navigation { margin-left: 0.6rem; @include transition; button.menu-toggle { display: flex; align-items: center; justify-content: center; font-size: 0; padding: 0; outline: none; background-color: transparent; border: none; &:hover { transform: none; box-shadow: none; } &::before { content: '\f0c9'; font-family: "Font Awesome 5 Free"; font-weight: 700; font-size: 1.5rem; display: inline-block; } } .menu-short-container, ul.menu { display: none; } } } } } .mobile-menu-container.off { display: block; } } } @media (max-width: 26rem) { .billow { .site-header { .header-wrap { .container { padding-top: 0.6rem; padding-bottom: 0.6rem; } } } .mobile-menu-container.off { width: 85vw; } } }