File: /home/madepabj/hc-cosmetics.com/wp-content/themes/dbea/assets/scss/theme/_header.scss
/***************************************************
scss file: /assets/scss/theme/_header.scss
+ Header
- .header-style1
- .header-style2
****************************************************/
// Main menu
#sns_menu{
.sns-mainnav-wrapper{
#sns_mainnav{ position: relative; width: 100%; text-align: center;}
}
}
.sns_menu_wrapper {
position: relative;background-position: center top;width: 100%; transition: none; -webkit-transition: none;
.contain{
position: relative;
}
&:hover{
z-index: 2;
}
body.show-sidebar, body.show-video &{
z-index: 4;
}
.icon-search{
display: inline-block;text-align: center;
}
.sns-mainnav-wrapper{
float: left;
}
@media (max-width: $screen-lg-desktop) {
.nav-right {
margin-right: 15px;
float: right;
width: 130px;
padding: 0;
}
.icon-menu{
display: none;
}
#sns_respmenu {
margin-top: 31px;
margin-bottom: 30px;
margin-right: 0px;
display: block;
}
}
@media (max-width: $screen-xs-max) {
#sns_respmenu {
margin-top: 10px;
margin-bottom: 10px;
margin-right: 0px;
display: block;
}
}
}
// Logo retina
.logo-retina{ max-width: 92px; }
// Mini search
.mini-search{
.tongle{ cursor: pointer; text-transform: uppercase; @include square(28px); display: block;
.overlay{
content: ""; display: none; position: fixed; @include square(100%); top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(#000, 0.4);
@include transition(none); cursor: e-resize; cursor: url(#{$base-url}/close-white.png), auto;
}
&:before{
@include font-ionicons("\f4a4", 28px); font-size: 28px; color: $button-bg-color; @include transition(all 0.25s ease-out); line-height: 28px; vertical-align: text-bottom; text-align: right;
}
@media(max-width: $screen-md-min){ float: right; width: auto; }
}
&.active,
&:hover{
.tongle{ color: $color1;
&:before{ color: $color1; }
}
}
}
// Mini cart
.mini-cart{
@media(max-width: $screen-phone){
position: static;
.tongle{
background: transparent;
}
}
@media(max-width: $screen-xs-max){
.content{ display: none; }
}
}
// Header Style
#sns_header{
position: relative;
body.no-breadcrumb:not(.use-slideshow) & {
border-bottom: 1px solid $line-border-color;
}
.top-header{
font-size: 0.7857em; text-transform: uppercase; color: #fff;
@media(min-width: $screen-md-max){
> .container{ padding-left: 0px; padding-right: 0; }
}
a:not(.button){ color: inherit;
&:hover{ color: $color1; }
}
.vc_row[data-vc-full-width]{ overflow: visible; }
.inline-inner-block{
> .vc_column-inner{
> .wpb_wrapper{
> *{
padding: 10px 14px; position: relative;
&:before{ position: absolute; content: ""; left: 0px; top: calc(50% - 7px); height: 14px; width: 1px; background: rgba(255, 255, 255, 0.3); }
&:first-child{
border-left: none; padding-left: 0px;
&:before{ display: none; }
}
&:last-child{
padding-right: 0px;
}
}
.wpb_raw_html{ margin: 0 0;
padding: 0 0;
}
}
}
}
.inline-menu{ display: inline-block;
.widget{
&.widget_nav_menu{ margin: 0;
.menu{
> li{ display: inline-block; float: left; position: relative; padding: 0 17px; margin: 0 0;
&:before{ @include font-awesome5('\f111', 6px, 900); font-size: 5px; color: $base-border-color; position: absolute; left: -3px; top: calc(50% - 3px); }
a{
padding: 0; text-transform: uppercase;
}
&:first-child{
padding-left: 0;
&:before{ display: none; }
}
&:last-child{
padding-right: 0;
}
ul.sub-menu{ display: none; }
}
}
}
}
&.align-center{
display: block;
.widget{ display: inline-block; margin-left: auto; margin-right: auto; }
}
}
.sns-social-links.inline-label {
.wpb_heading{ color: inherit; }
.follow-us{
a{ margin-left: 12px;
&:before{ font-size: 13px; }
&:first-child{ margin-left: 0px; }
}
}
}
}
.sns-promobar{ background: #3a3a3a; color: #fff; position: relative; z-index: 1;
.content{ width: 100%; }
.btn-promobar{
cursor: pointer; position: absolute; width: 20px; height: 20px; right: 30px; bottom: calc(50% - 10px); @include transition(all 0.25s ease-out 0s);
&:before{ position: absolute; left: 0px; bottom: 0px; @include font-ionicons('\f128', 20px); font-size: 16px; color: #fff; }
&:hover{
&:before{ color: #fff; }
}
}
&:not(.active){
.btn-promobar{ bottom: -20px; @include border-radius(0 0 3px 3px); background: #3a3a3a;
&:before{ @include font-ionicons('\f35d', 20px); font-size: 16px; color: #fff; }
}
}
}
.mobile-header{
.row{
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
> .menu-sidebar,
> .header-logo,
> .mini-search{
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
}
.header-logo{ text-align: center;
.logo-retina{ margin-right: auto; margin-left: auto; }
}
.mini-search{ text-align: right; }
}
.mobile-bottom-bar{
@media(max-width: $screen-sm-max){
position: fixed; width: 100%; margin: 0; padding: 0; bottom: 0px; left: 0px; z-index: 98; background: #fff; border-top: 1px solid $line-border-color;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
> .inner{
float: none !important; width: 100%;
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
> div:not(.v-hidden){
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
text-align: center;
border-right: 1px solid $line-border-color;
margin: 0 !important; padding: 0 !important;
height: 50px !important; line-height: 50px !important;
.tongle{ width: 100% !important; height: 100% !important; line-height: inherit !important; text-align: center;
&:before{ width: 100% !important; height: 100% !important; line-height: inherit !important; margin: 0 auto; font-size: 24px !important; vertical-align: text-bottom; }
}
&:last-child{ border: none; }
}
.mini-cart {
.content{
top: auto; bottom: 60px; right: 0px;
}
&:hover{
.content{ bottom: 50px; }
}
}
}
}
}
.main-header{
position: relative; padding-top: 20px; padding-bottom: 20px;
@media(max-width: $screen-md-max){
padding-top: 20px; padding-bottom: 20px;
}
@media(min-width: $screen-xs-min){
.row{
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
> .header-left,
> .header-right,
> .header-center{
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
> .header-right{ text-align: right;
}
}
}
@media(min-width: $screen-lg) and (max-width: 1439px){
.header-left,
.header-right{ width: 210px; }
.header-center{ width: calc(100% - 420px); }
}
@media(min-width: $screen-md-max){
> .container{ padding-left: 0px; padding-right: 0; }
}
&.keep-menu{
z-index: 98; position: fixed; top: 0px; background: #FFF; width: 100%; box-shadow: 0 0 10px rgba(0,0,0,0.2);
padding-top: 20px; padding-bottom: 20px;
body.boxed-layout &{
width: auto;
}
body.admin-bar & {
top: 32px;
@media(max-width: $screen-phone){ top: 0px; }
}
@media(max-width: $screen-phone){
body.admin-bar & + .search-box {
top: 0px;
}
}
@include transition(transform 0.25s ease-out 0s);
&.hidden-kmenu{
-webkit-transform: translate(0, -100%);
-ms-transform: translate(0, -100%);
-o-transform: translate(0, -100%);
transform: translate(0, -100%);
}
}
body.use_stickmenu & {
&.stiky-spacer{ visibility: hidden; position: static; }
}
}
.nav-header{ border-bottom: 1px solid $line-border-color;
.menu-wrap{
#sns_mainmenu_vertical{
& + #sns_mainmenu{
width: calc(100% - 255px); padding-left: 40px; float: left;
}
width: 255px; float: left; position: relative; color: rgba(#FFF, 0.7);
> .tongle{
padding: 0 30px 0 20px; color: $color; height: 50px; line-height: 50px; border-right: 1px solid $line-border-color;
font-size: 1em; text-transform: uppercase; cursor: pointer; position: relative; @include transition(all 0.25s ease-out 0s);
&:before{
@include font-awesome5('\f0c9', 16px, 900); font-size: 14px; text-align: left; position: absolute; top: calc(50% - 8px); left: 0px;
}
&:hover{
color: $color1;
}
}
p.main_navigation_alert,
ul.vertical-style{
padding: 15px 30px; @include border-radius(8px); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); width: 100%; z-index:3; @include effect-block-hide(); position: absolute;
background: #444;
a{ color: $color;
&:hover{ color: $color1; }
}
> li.menu-item{
border-top: 1px solid rgba(#FFF, 0.15); color: rgba(#FFF, 0.7);
&:first-child{ border-top: none; }
> a { padding: 8px 20px 8px 0; color: rgba(#FFF, 0.7);
&:hover{ color: #FFF; }
}
}
}
p.main_navigation_alert{ padding: 20px; }
&:hover{
.tongle{
color: $color1;
}
p.main_navigation_alert,
ul.vertical-style{
@include effect-block-show();
}
}
@media(max-width: $screen-md-max){
width: 50px;
& + #sns_mainmenu{
width: calc(100% - 50px);
}
.tongle{
font-size: 0px; position: relative; width: 100%; padding: 0 0; text-align: center;
&:before{ text-align: center; left: calc(50% - 10px); }
}
p.main_navigation_alert,
ul.vertical-style{
width: 240px;
}
}
@media(max-width: $screen-md-min){
display: none;
}
}
#sns_mainmenu{ width: 100%; float: left; }
}
}
.search-box{
position:fixed; height: 180px; width: 100%; top: -180px; z-index: 999; visibility: hidden; @include transition(all 0.25s ease-out 0s); background: #fff;
@media (max-width: $screen-xs-max){
height: 110px; top: -110px;
}
@media (max-width: $screen-phone){
z-index: 999999;
}
&.active{
top: 0px; visibility: visible;
body.admin-bar & {
top: 32px;
@media(max-width: $screen-phone){ top: 0px; }
}
}
}
.header-logo{ margin: 0;
a{ display: inline-block; }
@media(max-width: $screen-phone){
text-align: center; float: none !important;
margin: 0 auto; padding: 0;
}
}
.header-right{
@media(max-width: $screen-phone){
text-align: center;
}
> .inner{ float: right;
@media(max-width: $screen-phone){
float: none; display: inline-block; text-align: left;
}
> div{
&.header-search{ width: 530px; display: inline-block; margin: 15px 20px 15px 0;
.sns-searchwrap { border: 1px solid $input-border-color; height: 50px; @include border-radius(25px); overflow: hidden; position: relative;
.search-input {
&:before{
font-size: 18px; top: 50%; right: 10px; margin: -15px 0 0 0;
}
input[type="text"]{
font-size: 1em; border: none; padding: 0 30px;
}
button[type="submit"]{ padding: 0; width: 50px; background: #444; border-left: 1px solid #444;
&:before{ font-size: 20px; color: #FFF; }
}
&.loading{
&:before{ color: $color1; }
}
}
.select2-container{ border: none;
.select2-selection { padding: 0 15px 0 25px !important; }
}
}
}
@media(min-width: $screen-phone){
&:first-child {
margin-left: 0px;
}
}
}
}
}
.mini-cart{
.tongle{ padding: 0; @include transition(all 0.2s ease-out 0s); cursor: pointer; position: relative; width: 100%; height: 100%; display: block; border: none;
&:before{
@include font-ionicons("\f110", 28px); font-size: 28px; color: $button-bg-color;
}
&:after{ position: absolute; content: ""; width: 20px; height: 30px; left: 0px; top: 100%; }
.cart-label{ display: none; }
.number{ height: 18px; width: 18px; line-height: 18px; @include border-radius(100%); background: $color1; color: #FFF; font-size: 11px;
position: absolute; left: -5px; bottom: -1px; text-align: center;
@media(max-width: $screen-sm-max){
left: calc(50% - 20px); bottom: calc(50% - 20px);
}
}
}
.content{
visibility: hidden; @include opacity(0); position: absolute; top: 48px; right: 0px; @include transition(all 0.2s ease-out 0s);
border: 1px solid $line-border-color; z-index: 1; text-align: left;
width: 360px; box-shadow: 0 0 10px rgba(0,0,0,0.1); @include border-radius(3px); background: #FFF;
@media(max-width: $screen-phone){
width: 300px; right: calc(50% - 150px) !important;
}
.cart-title{
padding: 0 25px;
h4{
font-weight: bold; text-transform: uppercase; color: $link-color; display: block; font-size: 1.1428em; padding: 20px 0 10px; margin: 0 0 0; border-bottom: 1px solid $line-border-color;
}
}
.widget{
padding: 0 0; margin: 0 0; border: none;
}
}
&.active,
&:hover{
&:before{ height: 15px; }
.tongle{
&:before{ color: $color1; }
}
.content{
visibility: visible; @include opacity(1); right: -10px; z-index: 99;
}
}
}
.mini-wishlist{
.tongle{ padding: 0; @include transition(all 0.2s ease-out 0s); cursor: pointer; position: relative; width: 100%; height: 100%; display: block; border: none;
&:before{
@include font-ionicons("\f387", 28px); font-size: 28px; color: $button-bg-color;
}
.number{ height: 18px; width: 18px; line-height: 18px; @include border-radius(100%); background: $color1; color: #FFF; font-size: 11px;
position: absolute; left: -4px; bottom: -1px; text-align: center;
@media(max-width: $screen-sm-max){
left: calc(50% - 20px); bottom: calc(50% - 20px);
}
}
}
&:hover{
&:before{ height: 15px; }
.tongle{
&:before{ color: $color1; }
}
}
}
// Button navbar
.btn-navbar {
padding: 0; border: 0; cursor: pointer; position: relative; display: none; height: 28px; width: 28px; margin-left: 22px;
@media(max-width: $screen-xlarge - 30px) and (min-width: $screen-md-max) { margin-left: 22px; }
@media(max-width: $screen-xs-max){ margin-left: 24px; }
> * { text-align: left; }
&:hover{
color: $color1;
}
&.leftsidebar,
&.rightsidebar {
&:before{
@include font-ionicons("\f391", 28px); width: 100%; font-size: 28px; color: $button-bg-color;
@media(max-width: $screen-sm-max){ font-size: 24px;}
}
}
&.leftsidebar {
}
&.rightsidebar {
&:before{ @include rotate(-180deg); }
}
.overlay{
content: "";display: none;position: fixed; @include square(100%);top: 0; left: 0; right: 0; bottom: 0; z-index: 999;background: rgba(0,0,0,0.4);
@include transition(none); cursor: e-resize; cursor: url(#{$base-url}/close-white.png), auto;
}
}
@media(max-width: $screen-md-min){
.rightsidebar{
body.have-inner-right & ,
body.layout-type-l-m-r & ,
body.layout-type-m-r & {
display: inline-block;
}
}
.leftsidebar{
body.have-inner-left & ,
body.layout-type-l-m-r &,
body.layout-type-l-m & {
display: inline-block;
}
}
}
.user-menu{ position: relative;
> .tongle{ cursor: pointer;
&:before{
@include font-ionicons("\f419", 28px); font-size: 28px; color: $button-bg-color; @include transition(all 0.25s ease-out);
}
&:after{ position: absolute; content: ""; width: 20px; height: 10px; left: 0px; top: 100%; }
}
ul{ margin: 0; padding: 0; }
> .nav.navbar-nav {
@include ulclear(); min-width: 190px; position: absolute; top: 30px; right: 0px; visibility: hidden; @include opacity(0); @include transition(all 0.25s ease-out 0s);
box-shadow: 0 0 10px rgba(0,0,0,0.1); @include border-radius(3px); border: 1px solid $line-border-color; z-index: 2; background: #FFF; text-align: left;
@media(max-width: $screen-sm-max){
top: auto; right: auto; left: 0px; bottom: 60px; position: absolute;
}
li{
display: block; border-top: 1px solid $line-border-color; line-height: normal; padding: 0 0; float: none;
a{ display: block; padding: 14px 25px;
&:hover{ color: $color1; background: #f6f6f6; }
}
&:first-child{
border: none;
}
}
}
&:hover{
.tongle{
&:before{ color: $color1; }
}
> .nav.navbar-nav { right: 0px; @include opacity(1); visibility: visible; @include transition(all 0.15s ease-out 0s);
@media(max-width: $screen-sm-max){
right: auto; left: 0px; bottom: 50px;
}
}
}
}
.menu-sidebar{
> .tongle{ cursor: pointer; display: block;
&:before{
@include font-ionicons("\f20d", 28px); font-size: 28px; color: $button-bg-color;
@media(max-width: $screen-md-min){ text-align: left; }
}
&:hover{
color: $color1;
}
}
.overlay{
content: ""; display: none; position: fixed; @include square(100%); top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(0,0,0,0.4);
@include transition(none); cursor: e-resize; cursor: url(#{$base-url}/close-white.png), auto;
}
.sidebar-content{
top: 0; right: -290px; width: 290px; padding: 35px 25px; z-index: 1000; @include transition(all 0.3s ease-out); height: 100vh; overflow-y:auto; position: fixed;
color: $color; background: #fff; text-align: left;
display: -webkit-flex;display: -o-flex;display: -ms-flex;display: flex;
-webkit-flex-direction: column;-o-flex-direction: column;-ms-flex-direction: column;flex-direction: column;
body.admin-bar &{
top: 32px; height: calc(100vh - 32px);
@media (max-width: $screen-phone){
top: 0px; height: 100vh; padding-top: 46px;
}
}
@media(max-width: $screen-phone){
right: -290px; width: 290px;
}
&.active {
right: 0; @include opacity(1); box-shadow:0 0 10px rgba(0,0,0,0.1);
}
.top-menu-sidebar{ @include clearfix(); padding: 10px 0;
a{ color: inherit;
&:hover{ color: $link-color;; }
}
}
.mid-menu-sidebar{
position: relative;
flex-grow: 1; -webkit-flex-grow: 1; -moz-flex-grow: 1; -o-flex-grow: 1; -ms-flex-grow: 1;
p.main_navigation_alert{ margin: 50px 0; }
}
.bottom-menu-sidebar{
text-align: center; width: 100%; padding: 10px 0 10px;
a{ color: inherit;
&:hover{ color: $link-color;; }
}
.wpb_wrapper{ display: inline-block;
.sns-info-inline{ display: inline-block;
&:last-child{
a{
margin: 0 0;
}
}
}
.sns-social-links{ color: inherit;
.wpb_heading{ color: inherit; font-size: 1em; font-weight: normal; margin-bottom: 10px; }
}
}
}
}
}
.main-header{ padding-top: 20px; padding-bottom: 20px;
.header-logo{ margin: 0 0;
@media(max-width: $screen-phone){ margin: 0; }
}
.header-center{ position: relative; text-align: center;
@media(max-width: $screen-phone){ text-align: center;
.inner{ float: none; }
}
#sns_mainmenu { text-align: left;
ul.navbar-nav {
> li.menu-item {
float: none;
}
}
}
}
}
.header-right {
> .inner{
height: 28px;
.menu-sidebar,
.user-menu,
.mini-wishlist,
.mini-cart,
.mini-search{
position: relative; line-height: 28px; margin: 0 0 0 18px; display: inline-block;
}
.mini-search{
margin-left: 18px; padding-left: 13px; border-left: 1px solid $low-color;
}
}
}
#sns_mainmenu{
ul.navbar-nav > li.menu-item {
&:first-child{ margin-left: 0px; }
&:last-child{ margin-right: 0px; }
}
}
body.header-style1 & {
}
body.header-style2 & {
position: absolute; z-index: 2;
@media(max-width: $screen-xs-max){
position: static; background: #fff;
}
.main-header{
&:not(.keep-menu) {
@media(max-width: $screen-sm-max) and (min-width: $screen-xs-max) {
.mobile-header{
.row{
> .menu-sidebar,
> .mini-search{
.tongle::before{
color: #FFF; @include transition(none);
}
}
}
}
}
.header-right {
> .inner{
.menu-sidebar,
.user-menu,
.mini-wishlist,
.mini-cart,
.mini-search{
.tongle{
&:before{
@media(min-width: $screen-xs-max){ color: #FFF; @include transition(none); }
}
.number{ box-shadow: none; }
}
}
}
}
#sns_mainmenu{
ul.navbar-nav > li.menu-item {
> a{ color: #FFF; @include transition(none);
&:after{ color: inherit; }
position: relative;
&:before { position: absolute; content: ""; height: 1px; width: 0px; left: 0px; bottom: 12px; background: #fff; @include transition(all 0.25s ease-out); }
}
&:hover,
&.current-menu-item,
&.current-menu-parent{
> a{
&:before { width: 100%; }
}
}
}
}
}
}
}
body.header-style2.use_stickmenu & {
.main-header{
@include transition(background, transform 0.25s ease-out 0s);
}
}
body.header-style3 & {
position: absolute; z-index: 2;
@media(max-width: $screen-xs-max){
position: static; background: #fff;
}
.top-header{
background: none; border-bottom: 1px solid #ebebeb;
}
.top-header,
.main-header{
> .container{
@media(min-width: 1920px) {
width: calc(1920px - 120px);
width: 1800px;
}
@media(min-width: 1680px) and (max-width: 1920px) {
width: calc(100% - 120px);
}
}
}
}
}
// Search form
.sns-searchwrap{ height: 100%; padding-top: 50px; padding-bottom: 50px;
@media(max-width: $screen-xs-max){
padding: 30px;
}
.sns-ajaxsearchbox{
width: 100%; height: 100%; overflow: hidden; position: relative;
&:before{
position: absolute; content: ""; width: calc(100% - 10px); height: 100%; left: 0px; top: 0px; background: #FFF; @include transition(none);
}
form{
height: 100%;
}
}
.search-input{
vertical-align: middle; width: 100%; height: 100%; padding: 0px;
input[type="text"]{
width: 100%; height: 100%; padding: 0 30px; position: relative; z-index: 1; @include transition(none);
font-size: 1.1428em; @include placeholder($low-color); background: #f9f9f9;
@media(max-width: $screen-md-min){
font-size: 1.2857em;
}
@media(max-width: $screen-xs-max){
padding: 0 25px;
}
@media(max-width: $screen-phone){
font-size: 1.1428em;
}
@media(min-width: $screen-md-min){
body.enable-search-cat & {
border-left: none;
}
}
}
&:before{
position: absolute; top: 50%; right: 40px; margin: -12px -12px 0 0;
@include font-ionicons('\f29c', 24px); font-size: 20px; color:$button-bg-color;
-webkit-animation: spin 0.6s ease-in-out infinite;
-moz-animation: spin 0.6s ease-in-out infinite;
-o-animation: spin 0.6s ease-in-out infinite;
animation: spin 0.6s ease-in-out infinite;
background: none;
@include opacity(0);
@media(max-width: $screen-md-min){ font-size: 20px; right: 40px; }
@media(max-width: $screen-xs-max){ font-size: 18px; right: 40px; }
@media(max-width: $screen-phone){ right: 30px; }
}
&.loading{
input[type="text"]{ }
button,
input[type=submit]{
display: none;
}
&:before{
@include opacity(1); z-index: 2;
}
}
}
button[type="submit"]{
font-size: 0px; padding: 0 0; height: 100%; width: 80px;position: absolute; right: 0px; top: 0px; z-index: 1; border: none; background: none;
@media(max-width: $screen-xs-max){ width: 50px; }
&:before{
position: absolute; top: 50%; right: 50%; margin: -12px -12px 0 0; @include font-ionicons("\f4a4", 24px); font-size: 20px; color: $button-bg-color; @include transition(all 0.25s ease-out);
}
&:hover{
box-shadow: none;
}
}
body.enable-search-cat & {
.select2-container{
width: 220px !important; height: 100%; float: left; background: #fff; border: 1px solid $line-border-color; border-right: none;
@media(max-width: $screen-md-min){ display: none; }
&.select2-dropdown-open{
.select2-selection{
box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; -o-box-shadow: none; -ms-box-shadow: none;
}
}
.select2-selection{
padding: 0 30px; height: 100%; background: #fff; border: none ; @include border-radius(0); position: relative;
&:before{ position: absolute; content: ""; height: calc(100% - 60px); width: 1px; top: 30px; right: 0px; background: $line-border-color;
}
.select2-selection__rendered{ line-height: 24px; color: inherit; padding: 0 0; position: absolute; top: calc(50% - 12px); }
.select2-selection__arrow{ width: 24px; height: 24px; top: calc(50% - 12px); right: 15px;
&:before{ @include font-awesome5('\f107', 24px, 900); font-size: 18px; }
b{ display: none;
&:after{left: 7px;}
}
}
> .select2-chosen{ margin: 0 0;}
}
}
.search-input{
width: calc(100% - 220px); float: left; height: 100%;
@media(max-width: $screen-md-min){
width: 100%;
}
}
}
div.select-cat{
a{
background: #f5f5f5; border: none; padding: 4px 10px;
}
}
select.select-cat{
visibility: hidden; @include opacity(0); display: none;
}
}
// Search result
#sns_searchresult_wrap{
background: #FFF; border: 1px solid $line-border-color; @include border-radius(8px); box-shadow: 0 0 10px rgba(0,0,0,0.1); z-index: 9999; display: none;
padding: 25px 30px 25px; @include clearfix();
@media (max-width: $screen-phone){
z-index: 9999999;
}
ul{
padding: 0 0; list-style: none; @include ulclear();
li{
display: block; padding: 7.5px 0; float: left; width: 50%;
&:nth-of-type(2n+1){ clear: left; }
@media(max-width: $screen-xs-max){ width: 100%; clear: none; }
.thumbnail{
max-width: 90px; float: left; border: none; padding: 0 0; @include border-radius(0); margin: 0 15px 0 0; background: none;
a{
position: relative; display: inline-block;
&:before{
position: absolute; content: ""; height: 100%; width: 100%; left: 0px; top: 0px; background: rgba(#000, 0.06);
@include opacity(0); visibility: hidden; @include transition(all 0.25s ease-out);
}
}
.yith-wcbm-badge{ display: none; }
}
.meta{ margin-right: 15px;
.title{
display: block; margin: 3px 0 5px 0; font-weight: bold; line-height: 1.42857;
&:hover{ color: $color1; }
.hightlight{color: $color1 }
}
.price{
display: block;
}
}
&:hover{
.thumbnail{
a{
&:before{
@include opacity(1); visibility: visible;
}
}
}
}
}
}
.viewall-result{
display: block; float: left; width: 100%; border-top: 1px solid $line-border-color;
margin: 20px 0 0; padding: 15px 0 0;
}
}
.header-tongle{ position: fixed; z-index: 999; left: 30px; top: 30px; height: 30px; line-height: 30px; width: 30px; text-align: center;
color: #FFF; background: $link-color; font-size: 18px; cursor: pointer; display: none;
body.admin-bar &{
top: 62px;
@media (max-width: $screen-md-min){
top: 76px;
}
@media (max-width: $screen-phone){
top: 70px;
}
}
@media(max-width: $screen-md-min){ display: block; }
&:before{ @include font-awesome5('\f0c9', 30px, 900); color: inherit; }
&:hover{ color: #FFF; background: $color1; }
}
.header-overlay{
content: "";display: none;position: fixed; @include square(100%);top: 0; left: 0; right: 0; bottom: 0; z-index: 999;background: rgba(0,0,0,0.5);
@include transition(none); cursor: e-resize; cursor: url(#{$base-url}/close-white.png), auto;
@media(min-width: $screen-md-min){ display: none !important; }
}