File: /var/www/shoetique/wp-content/themes/north-wp/assets/sass/_header.scss
.header {
background: transparent;
padding: 0;
width: 100%;
z-index: 101;
height: 100px;
padding: 25px 35px;
position: fixed;
top: 0;
left: 0;
@include translateZ(0);
@extend .transition;
@extend .admin-style;
&.row {
max-width: 100%;
}
@media only screen and (max-width: $break-small) {
position: relative;
background: #fff;
height: auto;
padding: 15px 0;
top: 0 !important;
.logo {
padding-bottom: 15px;
border-bottom: 1px solid $color2;
}
}
&:hover,
&.hover {
background: #fff;
}
&.background--dark {
@media only screen and (min-width: $break-small) {
#nav .sf-menu > li > a,
.account-holder ul li a,
.account-holder > a,
.menu-holder > a {
color: #fff;
}
.account-holder .float_count {
color: $color1;
}
.account-holder ul li a {
border-left-color: #fff;
}
#nav .sf-menu > li.current-menu-item > a:after {
background: #fff;
}
.logo .logoimg.bg--dark {
display: inline-block;
}
.logo .logoimg.bg--light {
display: none;
}
.account-holder #cart-icon .icon-fill {
fill: #fff;
}
&.hover,
&:hover {
#nav .sf-menu > li > a,
.account-holder ul li a,
.account-holder > a,
.account-holder .float_count,
.menu-holder > a {
color: $color1;
}
.account-holder .float_count {
color: #fff;
}
.account-holder ul li a {
border-left-color: $color1;
}
#nav .sf-menu > li.current-menu-item > a:after {
background: $color1;
}
.logo .logoimg.bg--dark {
display: none;
}
.logo .logoimg.bg--light {
display: inline-block;
}
.account-holder #cart-icon .icon-fill {
fill: $color1;
}
}
}
}
&.style2 {
.logo {
text-align: left;
@media only screen and (max-width: $break-small) {
text-align: center;
}
}
.account-holder,
.menu-holder {
float: right;
}
.account-holder {
.mobile-toggle {
display: none;
}
@media only screen and (max-width: $break-small) {
width: 100%;
float: none;
text-align: center;
.mobile-toggle {
display: inline-block;
}
}
}
.mobile-toggle {
font-size: 22px;
margin-right: 5px;
line-height: 50px;
}
}
&.style1 {
.account-holder {
.mobile-toggle {
display: none;
@media only screen and (max-width: $break-small) {
display: inline-block;
}
}
}
}
.menu-holder {
text-align: left;
@media only screen and (max-width: $break-small) {
display: none;
}
&>a {
line-height: 50px;
}
#nav {
@media only screen and (max-width: $break-large) {
display: none;
}
}
.mobile-toggle {
display: none;
color: $color1;
@media only screen and (max-width: $break-large) {
display: block;
}
}
&.mobile-view {
#nav { display: none; }
.mobile-toggle { display: block; }
}
}
.logo {
display: table;
text-align: center;
@media only screen and (max-width: $break-medium) {
@-moz-document url-prefix() {
display: block;
}
}
.logolink {
display: table-cell;
vertical-align: middle;
max-width: 100%;
@media only screen and (max-width: $break-medium) {
@-moz-document url-prefix() {
display: inline-block;
}
}
&.hide-logo {
display: block;
@media only screen and (max-width: $break-medium) {
display: none;
}
}
&.show-logo {
display: none;
max-height: 40px;
img {
max-height: 100%;
float: left;
}
@media only screen and (max-width: $break-medium) {
display: block;
}
}
}
.logoimg {
display: inline-block;
max-height: 50px;
&.bg--dark {
display: none;
}
@media only screen and (max-width: $break-medium) {
max-height: 44px;
}
}
}
}
#nav {
display: inline-block;
vertical-align: middle;
@media only screen and (max-width: $break-small) {
display: none;
}
.sf-menu {
list-style: none;
margin: 0;
a {
text-transform: uppercase;
font-size: 14px;
white-space: nowrap;
}
i {
margin-right: 10px;
vertical-align: middle;
display: inline-block;
.rtl & {
margin-right: 0;
margin-left: 10px;
}
}
&>li {
display: inline-block;
position: relative;
&.current-menu-item>a{
&:after {
@include scale(1,1);
}
}
&>a {
display: block;
padding: 0;
height: 50px;
line-height: 56px;
margin: 0 40px 0 0;
font-weight: 600;
color: $color1;
z-index: 10;
position: relative;
&:after {
content: '';
display: block;
position: absolute;
height: 2px;
width: 100%;
background: $color1;
bottom: 10px;
left: 0;
@include scale(0,1);
@extend .transition;
}
&:hover {
color: $color3;
}
}
&.sfHover>a {
&:after {
display: block;
}
}
}
}
ul.sub-menu {
display: none;
list-style: none;
text-align: left;
position: absolute;
left: 0;
top: 100%;
border: 2px solid $color1;
background: #fff;
padding: 5px 22px;
@extend .reset;
.rtl & {
text-align: right;
}
&>li.menu-item-has-children {
position: relative;
&>a {
padding-right: 30px;
}
&:after {
content: '+';
position: absolute;
top: 13px;
right: 0;
font-size: 16px;
}
}
&.has_bg {
padding-right: 160px;
background-size: contain;
background-repeat: no-repeat;
background-position: bottom right;
.rtl & {
padding-right: 30px;
padding-left: 160px;
background-position: bottom left;
}
}
&.thb_mega_menu {
&>li {
width: 180px;
min-width: 180px;
display: table-cell;
&.menu-item-mega-child + .menu-item-mega-child {
padding-left: 25px;
}
.megamenu-title {
a {
text-transform: uppercase;
font-weight: 700;
font-size: 12px;
border: 0;
padding-bottom: 7px;
}
}
&.menu-item-mega-link {
display: block;
width: 100%;
}
&.menu-item-has-children {
position: relative;
&:after {
content: none;
display: none;
}
}
.sub-menu {
border: 0;
position: relative;
top: 0;
padding: 0;
display: block;
left: 0;
@include box-shadow(none);
}
}
}
li {
display: block;
min-width: 180px;
position: relative;
a {
display: block;
padding: 17px 0 15px;
border-bottom: 1px dotted #bababa;
color: $color1;
line-height: 1;
text-transform: none;
}
&:last-child>a{
border-bottom: 0;
}
.sub-menu {
position: absolute;
left: 100%;
top: 0;
}
}
}
&.left {
float: left;
}
}
.account-holder {
text-align: right;
direction: ltr;
@media only screen and (max-width: $break-small) {
text-align: center;
min-height: auto !important;
margin-top: 12px;
&>a {
line-height: 26px !important;
margin: 0 10px;
font-size: 26px
}
}
&>a {
display: inline-block;
color: $color1;
margin-left: 20px;
line-height: 50px;
font-size: 22px;
@media only screen and (max-width: $break-medium) {
margin-left: 10px;
}
@media only screen and (max-width: $break-small) {
line-height: 30px !important;
}
}
#quick_cart {
position: relative;
}
#cart-icon {
position: relative;
top: 4px;
.icon-fill {
@extend .transition;
}
}
.float_count {
position: absolute;
display: block;
width: 26px;
text-align: center;
left: 0;
top: 14px;
color: #fff;
font-weight: 600;
font-size: 12px;
height: 22px;
font-size: 12px;
line-height: 22px;
}
#quick_wishlist .fa{
font-weight: bold;
}
ul {
display: inline-block;
list-style: none;
text-align: right;
@extend .reset;
@media only screen and (max-width: $break-large) {
display: none;
}
li {
display: inline-block;
a {
font-size: 14px;
color: $color1;
line-height: 50px;
padding:0 15px;
border-left: 1px dotted rgba(0,0,0,0.6);
}
&:first-child a {
border-left: 0;
padding-left: 0;
}
}
}
}