/home/fdhrevqn/public_html/wp-content/themes/fox/css/_header.scss
/* Header Layout
------------------------------------------------------------------------------------------------------------ */
/* Common
------------------------------ */
.header-row-branding {
padding: 14px 0;
}
.header-classic-row {
&.before-header,
&.after-header {
padding-top: 0;
}
}
.header-row-flex .container {
display: flex;
align-items: center;
}
.header-row-part {
display: flex;
align-items: center;
}
.header-row-right {
margin-left: auto;
}
.header-row-nav.row-nav-has-background {
padding-top: 0;
}
.header-stack3,
.header-stack4 {
.header-row-nav.row-nav-has-background {
.container {
width: 100%;
max-width: 100%;
}
}
}
// stretch
.header-row-stretch-full {
.container {
width: 96%;
}
}
/* Stack 1
------------------------------ */
.header-stack1 {
// padding: 0 0 10px;
}
/* Stack 2
------------------------------ */
.header-stack2 {
// padding: 10px 0 0;
}
.before-header + .header-stack2 {
padding-top: 0;
}
/* Stack 1, 2 center the navbar
------------------------------ */
.header-row-nav-center {
.wi-mainnav {
margin: 0 auto;
display: table;
position: relative; // since 4.6.2.3
z-index: 99; // since 4.6.2.3
}
.container {
position: relative;
}
.navbar-group {
position: absolute;
top: 50%;
transform: translate(0,-50%);
display: block;
width: 33.33%;
display: flex;
align-items: center;
}
.navbar-group-left {
left: 0;
}
.navbar-group-right {
right: 0;
justify-content: flex-end;
}
}
/* Stack 3
------------------------------ */
.header-stack3-main {
.container {
text-align: center;
position: relative;
}
}
.header-stack3-part {
display: flex;
align-items: center;
position: absolute;
top: 0;
bottom: 0;
> * {
display: block;
* + * {
margin-left: 10px;
}
}
}
.header-stack3-left {
left: 0;
}
.header-stack3-right {
right: 0;
left: auto;
}
.header-stack3,
.header-stack4 {
.header-row-nav {
text-align: center;
// when it's sticky
.container {
position: relative;
}
.wi-logo {
position: absolute;
top: 50%;
left: 0;
transform: translate(0,-50%);
}
}
}
/* Header Inline
------------------------------ */
.header-inline {
// padding: 10px 0 0;
.header-classic-row {
padding: 16px 0;
// padding-top: 0;
}
}
.before-header + .header-inline {
padding-top: 0;
}
/* Header Sidebar
--------------------------- */
.header-sidebar {
border: 0 solid;
.container {
border: 0 solid;
}
.widget,
.header-widget {
margin: 0;
}
}
/* Navigation Border
------------------------------ */
.header-row-nav .container {
border: 0 solid;
// padding: 6px 0;
}
.header-nav-top-1 .header-row-nav .container {
border-top-width: 1px;
}
.header-nav-top-2 .header-row-nav .container {
border-top-width: 2px;
}
.header-nav-top-3 .header-row-nav .container {
border-top-width: 3px;
}
.header-nav-bottom-1 .header-row-nav .container {
border-bottom-width: 1px;
}
.header-nav-bottom-2 .header-row-nav .container {
border-bottom-width: 2px;
}
.header-nav-bottom-3 .header-row-nav .container {
border-bottom-width: 3px;
}
/* Header Elements
------------------------------------------------------------------------------------------------------------ */
/* Logo
------------------------------ */
.fox-logo {
a {
color: inherit;
text-decoration: none;
display: inline;
&:focus {
outline: 0;
}
&:hover {
color: inherit;
}
}
line-height: 1.1;
overflow: hidden;
font-size: 4em;
margin: 0;
font-weight: bold;
}
.text-logo {
display: block;
overflow: hidden;
}
.logo-type-image {
font-size: 0 !important; // to prevent line height
}
.fox-logo img {
display: inline-block;
width: 600px; // default
}
.fox-header-logo {
// text-align: center;
}
#logo-area {
}
/* Tagline
------------------------------ */
.slogan {
margin: 6px 0 0;
font-weight: normal;
font-size: 0.8125em;
text-transform: uppercase;
letter-spacing: 6px;
@include media ( tablet ) {
letter-spacing: 5px;
}
@include media ( mobile ) {
letter-spacing: 2px;
}
}
.site-description {
text-align: inherit; // since 4.0
}
/* Header Search
------------------------------ */
.header-search-wrapper {
margin-left: 5px;
.search-btn {
display: block;
width: 32px;
height: 32px;
text-align: center;
line-height: 32px;
color: inherit;
cursor: pointer;
font-size: 18px;
i {
display: block;
line-height: inherit;
}
}
}
.header-cart-icon {
position: relative;
margin-left: 5px;
font-size: 24px;
a {
display: block;
color: inherit;
position: relative;
width: 32px;
height: 32px;
line-height: 32px;
text-align: center;
i {
display: block;
line-height: inherit;
}
}
.num {
position: absolute;
top: -3px;
right: -6px;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 50%;
display: block;
background: $accent;
color: white;
font-size: 10px;
font-family: sans-serif;
text-align: center;
letter-spacing: 0;
}
}
.header-search-form-template {
display: none;
margin: 6px 0 0;
}
.before-sticky .header-search-form-template {
display: none !important; // never appear on the stick header
}
.header-search-form {
@include clearfix;
.container {
padding: 0 !important;
border: 0 !important;
}
.searchform {
width: 100%;
.s {
border: 0;
background: rgba(0,0,0,.1);
}
.submit {
display: none;
}
}
}
/* Modal Search Form
------------------------------ */
.modal-search-wrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: white;
z-index: 99999;
transition: all .4s $ease-out-quint;
> .container {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.searchform {
width: 100%;
.s {
width: 100%;
border: 0;
// border-bottom: 1px solid;
font-size: 3em;
padding-left: 0;
height: 60px;
line-height: 60px;
background: none;
font-weight: 400;
letter-spacing: 0;
&:focus {
background: none;
}
}
.submit {
right: 0;
top: 10px;
color: inherit;
font-size: 24px;
}
}
.close-modal {
display: block;
width: 40px;
height: 40px;
text-align: center;
line-height: 40px;
position: absolute;
top: 10%;
right: 10%;
color: inherit;
cursor: pointer;
font-size: 28px;
color: inherit;
i {
display: block;
line-height: inherit;
}
}
}
.modal-search-container {
width: 800px;
margin: 0 auto;
max-width: 90%;
}
.on-search {
overflow: hidden;
}
/**
* Modal Showing Effect
* -------------------------------- */
.modal-search-container {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
opacity: 0;
visibility: hidden;
transition: all .5s cubic-bezier(0.34, 1.56, 0.64, 1);;
}
.form {
transition-delay: 0;
}
.close-modal {
transition-delay: .15s;
}
.search-nav-heading {
transition-delay: .25s;
}
#search-menu li {
transition-delay: .46s;
&:first-child {
transition-delay: .3s;
}
&:nth-child(2) {
transition-delay: .35s;
}
&:nth-child(3) {
transition-delay: .39s;
}
&:nth-child(4) {
transition-delay: .42s;
}
&:nth-child(5) {
transition-delay: .44s;
}
}
}
.on-search {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
opacity: 1;
visibility: visible;
}
}
// Fade
.modal-showing-fade {
opacity: 0;
visibility: hidden;
}
.on-search .modal-showing-fade {
opacity: 1;
visibility: visible;
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
transform: translate(0,0);
}
}
// Slide Right
.modal-showing-slide-right {
transform: translate(-100%, 0);
}
.on-search .modal-showing-slide-right {
transform: translate(0,0);
}
// Slide Down
.modal-showing-slide-down {
transform: translate(0,-105%);
}
.on-search .modal-showing-slide-down {
transform: translate(0,0);
}
.admin-bar .modal-search-wrapper {
top: 32px;
}
.modal-showing-fade,
.modal-showing-slide-down {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
transform: translate(0,10px);
}
}
.on-search .modal-showing-fade,
.on-search .modal-showing-slide-down {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
transform: translate(0,0);
}
}
.modal-showing-slide-right {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
transform: translate(10px,0);
}
}
.on-search .modal-showing-slide-right {
.form,
.close-modal,
.search-nav-heading,
#search-menu li {
transform: translate(0,0);
}
}
/* search menu */
.search-nav-heading {
margin: 50px 0 0;
font-size: 11px;
letter-spacing: 2px;
}
#search-menu {
font-size: 1.1em;
margin: 20px 0 0;
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
display: inline-block;
& + li:before {
content: "/";
margin: 0 10px;
}
}
a {
color: inherit;
&:focus {
outline: 0;
}
&:hover {
text-decoration: underline;
}
}
}
/* Navigation
------------------------------------------------------------------------------------------------------------ */
$mainnav : ".wi-mainnav";
$nav_height: 40px;
#wi-mainnav {
border: 0px solid;
}
#{$mainnav} {
display: block;
font-style: normal;
}
.no-menu {
font-size: 16px;
font-style: normal;
a {
color: inherit;
font-weight: bold;
text-decoration: underline;
}
}
#{$mainnav} {
display: block;
ul {
list-style: none;
margin: 0;
padding: 0;
display: block;
line-height: 1;
}
a {
outline: 0;
display: block;
text-decoration: none;
color: inherit;
i, .menu-icon-img {
margin-right: 8px;
display: inline-block;
vertical-align: top;
line-height: inherit;
}
.menu-icon-img {
max-width: 60px;
}
}
}
.style-indicator-angle-down {
ul.menu {
> li {
&.menu-item-has-children,
&.mega {
> a:after {
@extend .feather;
content:"\e92e";
}
}
}
}
}
.style-indicator-caret-down {
ul.menu {
> li {
&.menu-item-has-children,
&.mega {
> a:after {
@extend .fa;
content:"\f0d7";
}
}
}
}
}
.style-indicator-plus {
ul.menu {
> li {
&.menu-item-has-children,
&.mega {
> a:after {
content:"+";
font-family: Arial, sans-serif;
}
}
}
}
}
#{$mainnav} {
ul.menu {
> li {
display: inline-block;
position: relative;
line-height: $nav_height;
height: $nav_height;
padding: 0;
margin: 0;
border: 0;
> a {
display: block;
position: relative;
text-decoration: none;
line-height: inherit;
transition: all .3s ease-out;
padding: 0 14px;
font-size: 16px;
font-family: $nav;
color: inherit;
}
// dropdown icon
&.menu-item-has-children,
&.mega {
> a:after {
margin-left: 6px;
}
}
&.current-menu-item,
&.current-menu-ancestor {
> a {
// since 4.4, we move it to style-powered
// background: black;
// color: white;
}
}
}
// DROPDOWN
ul {
text-align: left;
display: none;
background: #fff;
border: 1px solid #ccc;
padding: 0;
position: absolute;
top: 100%;
left: 0;
width: 180px;
z-index: 101;
font-family: $nav;
font-size: 14px;
.caret {
display: none;
}
> li {
border: 0;
padding: 0;
border: 0;
border: 0px solid;
position: relative;
}
> li + li {
border-width: 1px 0 0;
}
> li:hover,
li.current-menu-item,
li.current-menu-ancestor {
> a {
background: #f9f9f9;
color: $accent;
}
}
a {
padding: 7px 14px;
color: inherit;
}
// THIRD DROPDOWN
ul {
top: -1px;
left: 100%;
}
}
li:hover > ul {
// display: block;
}
/* deprecated since 4.4
// CARET // since 4.0
> li > ul > .caret {
position: absolute;
top: -7px;
left: 24px;
color: black;
display: block;
z-index: 20;
width: 0;
height: 0;
border-style: solid;
border-width: 0 6px 6px 6px;
border-color: transparent transparent currentColor transparent;
}
*/
/* MEGA MENU
---------------------------------------- */
> li.mega {
&.mega-full {
position: static;
}
> ul {
width: 100%;
padding: 20px 0;
&:after {
content: "";
display: table;
clear: both;
}
> li {
display: block;
float: left;
position: static;
border: 0 !important;
// LEADING ITEM
> a {
border-top: none;
font-weight: 600;
color: inherit;
background: none;
}
}
}
&.column-2 > ul {
width: 400px;
> li {
width: 50%;
}
.mega-sep-1 {
left: 50%;
}
}
&.column-3 > ul {
width: 600px;
> li {
width: 33.33%;
}
.mega-sep-1 {
left: 33.33%;
}
.mega-sep-2 {
left: 66.66%;
}
}
&.column-4 > ul,
&.column-5 > ul {
width: 100%;
left: auto;
right: 0;
}
&.column-4 > ul > li {
width: 25%;
.mega-sep-1 {
left: 25%;
}
.mega-sep-2 {
left: 50%;
}
.mega-sep-3 {
left: 75%;
}
}
&.column-5 > ul > li {
width: 20%;
.mega-sep-1 {
left: 20%;
}
.mega-sep-2 {
left: 40%;
}
.mega-sep-3 {
left: 60%;
}
.mega-sep-4 {
left: 80%;
}
}
ul ul {
display: block !important;
opacity: 1 !important;
visibility: visible;
position: static;
box-shadow: none;
width: 100%;
border: none;
margin: 0;
overflow: hidden;
li {
display: block;
width: 100%;
border: 0 !important;
}
a {
display: block;
width: 100%;
border: none;
transition: none;
font-size: .9em;
&:hover {
color: white;
background: #111;
}
}
}
&:hover ul ul {
display: block !important;
}
}
/* MEGA CATEGORY DROPDOWN
* @since 2.8
--------------------- */
> li.mega > ul.submenu-display-items {
padding: 10px;
> li.post-nav-item {
border: 0;
padding: 10px;
display: block;
float: left;
}
}
.post-nav-item-inner {
margin: 0;
padding: 0;
}
.post-nav-item-thumbnail {
display: block;
width: 100%;
margin: 0 0 .6em;
overflow: hidden;
position: relative;
a {
padding: 0 !important;
background: none !important;
}
}
.post-nav-item-text {
overflow: hidden;
}
.post-nav-item-title {
text-transform: inherit;
font-size: 1.1em;
line-height: 1.2;
font-weight: inherit;
margin: 0;
letter-spacing: 0;
a {
color: inherit;
display: block;
padding: 0 !important;
background: none !important;
outline: 0;
&:hover {
color: inherit;
}
}
}
.post-nav-item-excerpt {
display: none; // since 4.0
text-transform: none;
letter-spacing: 0;
font-size: 13px;
margin: .5em 0 0;
}
}
}
// since 4.3
.nav-thumbnail-loading {
display: block;
background: #fafafa;
// background: transparent; // since 4.6
position: relative;
padding-bottom: 80%; // by default
.fox-loading-element {
top: 50%;
opacity: .4;
}
}
.nav-thumbnail-wrapper {
&.pseudo-thumbnail-landscape {
.nav-thumbnail-loading {
padding-bottom: 80%;
}
}
&.pseudo-thumbnail-square {
.nav-thumbnail-loading {
padding-bottom: 100%;
}
}
&.pseudo-thumbnail-portrait {
.nav-thumbnail-loading {
padding-bottom: 125%;
}
}
&.pseudo-thumbnail-large {
.nav-thumbnail-loading {
padding-bottom: 66.66%;
}
}
}
.mega-sep {
display: block;
position: absolute;
top: 20px;
bottom: 20px;
border: 0 solid;
border-width: 0 0 0 1px;
}
/* Dark Skin
------------------------------ */
.submenu-dark {
#{$mainnav} {
ul.menu {
> li > ul > .caret {
top: -6px;
}
ul {
color: white;
background: black;
border: 0;
ul {
margin-top: 0;
}
li:hover,
li.current-menu-item,
li.current-menu-ancestor {
> a {
// color: $accent;
color: white;
background: rgba(255,255,255,.1);
}
}
}
li + li > a {
border-top-color: #444;
}
> li.mega > ul > li {
border-left-color: rgba(255,255,255,.3);
}
}
}
.nav-thumbnail-loading {
background: rgba(255,255,255,.05);
}
}
@media (max-width: $desktop ) {
#{$mainnav} {
ul.menu > li > a {
padding-left: 10px;
padding-right: 10px;
}
}
}
/* Sticky Header
------------------------------------------------------------------------------------------------------------ */
.sticky-element-height {
display: none;
height: 40px; // default value since 4.4
@include clearfix;
}
.sticky-header-background {
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
background: white; // by default
// opacity: .95; // by default
opacity: 1; // default since 4.4
display: none;
}
.header-sticky-element {
position: static;
top: -300px;
z-index: 99999999;
-webkit-transition: top .6s;
transition: top .6s;
&.before-sticky {
position: fixed;
left: 0;
width: 100%;
background: none;
border: 0 solid $border;
border-width: 0 0 1px; // since 2.9
height: 40px; // since 4.4
padding-top: 0;
padding-bottom: 0;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden; /* when user hovers the menu doesn't behave weird */
#topbar-wrapper {
width: 100%;
}
// stop all border when sticky
.container {
border: 0 !important;
padding-bottom: 0 !important;
padding-top: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
// show it
.sticky-header-background {
display: block;
}
#wi-logo,
.wi-logo {
img {
width: auto;
height: 40px;
}
}
.main-container {
padding: 10px 0;
align-items: center;
}
& + .sticky-element-height {
display: block;
}
// classic header
&.classic-main-header-top .container {
padding-top: 0;
}
}
&.is-sticky {
top: 0;
overflow: visible;
}
}
.admin-bar .header-sticky-element.is-sticky {
top: 32px;
}
.header-sticky-style-shadow-border .header-sticky-element.before-sticky {
}
.header-sticky-style-shadow .header-sticky-element.before-sticky {
border-bottom-color: #e0e0e0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.header-sticky-style-heavy-shadow .header-sticky-element.before-sticky {
border-bottom-color: transparent;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.header-sticky-style-none .header-sticky-element.before-sticky {
border-bottom: 0;
box-shadow: none;
}
/* Sticky Logo
------------------------------ */
.main-img-logo {
display: block;
}
.header-sticky-element .sticky-img-logo {
display: none;
}
.header-sticky-element.is-sticky {
.sticky-img-logo {
display: block;
}
.sticky-img-logo + .main-img-logo {
display: none;
}
}
.header-row-nav .wi-logo img {
margin-right: 20px;
}
/* Header Builder
------------------------------------------------------------------------------------------------------------ */
.main-header {
border: 0 solid;
.widget {
width: auto;
}
.container {
display: flex;
align-items: center;
position: relative;
border: 0px solid;
}
&.valign-bottom .container {
align-items: flex-end;
}
&.valign-top .container {
align-items: flex-start;
}
&.valign-middle .container {
align-items: center;
}
// fix, so that its height is 40px, equal to mainnav height
// its original height is 24px
.social-list {
padding-top: 8px;
padding-bottom: 8px;
}
// while original height is 32px
.header-search-wrapper {
padding-top: 4px;
padding-bottom: 4px;
}
&.header-builder-stretch-container {
.container {
max-width: 100%;
width: 100%;
}
}
&.has-logo-center {
.container {
height: 80px;
}
// other widgets
.widget {
position: relative;
z-index: 30;
}
.widget_logo {
position: absolute;
left: 0;
right: 0;
top: 50%;
z-index: 20;
-webkit-transform: translate( 0 ,-50% );
transform: translate( 0,-50% );
// so that browser doesn't need to calculate it
width: 100%;
text-align: center;
}
}
.widget {
margin: 0;
}
.widget + .widget {
margin-top: 0;
margin-left: 6px;
}
.widget-title {
display: none;
}
}
/* Dark Skin
* @since 4.4
------------------------------------------------------------------------------------------------------------ */
.header-row-nav.row-nav-dark {
background: #111;
color: white;
// $mainnav ul.menu > li > a {
// }
}
.row-nav-style-active-1 {
#{$mainnav} {
ul.menu {
> li {
&.current-menu-item,
&.current-menu-ancestor {
> a {
background: black;
color: white;
}
}
}
}
}
}
.row-nav-style-active-2,
.row-nav-style-active-3 {
#{$mainnav} {
ul.menu {
> li {
> a {
&:before {
display: block;
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: currentColor;
transform: scale(0,1);
transform-origin: center center;
z-index: 1;
transition: all .2s ease-out;
}
}
&.current-menu-item,
&.current-menu-ancestor,
&:hover {
> a:before {
transform: scale(1,1);
}
}
}
}
}
}
.row-nav-style-active-3 {
#{$mainnav} {
ul.menu {
> li {
> a {
&:before {
bottom: auto;
top: 0;
}
}
}
}
}
}
/* Header Transparent
* @since 4.4.4
------------------------------------------------------------------------------------------------------------ */
.fox-logo .transparent-img-logo {
display: none;
}
#mobile-logo .transparent-img-logo {
display: none;
}
.site-header-transparent {
#masthead {
position: absolute;
top: 0;
z-index: 2000;
left: 0;
right: 0;
border-bottom: 0;
// border-bottom-color: rgba(255,255,255,.2);
@include transition( background .6s ease-out );
// Not Sticky State
.header-sticky-element:not(.is-sticky) {
background: none !important;
// text logo
.fox-logo,
.wi-mainnav ul.menu > li > a,
.social-list a,
.header-search-wrapper .search-btn,
.header-cart-icon a,
.hamburger-btn {
color: white;
}
.fox-logo {
.transparent-img-logo {
display: block;
& + img,
& ~ img,
& + picture,
& ~ picture {
display: none;
}
}
}
}
& + #masthead-height {
display: none !important;
}
&.header-sticky {
position: fixed;
}
}
}
.site-header-transparent {
#wi-main .wi-content {
padding-top: 0 !important;
}
#masthead-mobile-height {
display: none;
}
#masthead-mobile:not(.is-sticky) {
.masthead-mobile-bg {
background: none;
}
.mobile-logo-text,
.hamburger-btn {
color: white;
}
#mobile-logo .transparent-img-logo {
display: block;
& + img,
& + picture {
display: none;
}
}
}
}