345 lines
9.5 KiB
SCSS
345 lines
9.5 KiB
SCSS
|
/*******************************************
|
||
|
* Theme Name: Market
|
||
|
* Author: Magentech
|
||
|
* Author URI: http://www.magentech.com
|
||
|
* Version: 1.0.0
|
||
|
* Description: This is html5 Sass template
|
||
|
*******************************************/
|
||
|
|
||
|
// Override default value for $dir in directional.scss
|
||
|
$dir: ltr;
|
||
|
|
||
|
//** simple and lightweight mixin library for Sass **
|
||
|
//-- url : http://bourbon.io/docs ---
|
||
|
@import 'bourbon/bourbon';
|
||
|
|
||
|
//** Mixins for Rem Font Sizing **
|
||
|
//-- url : http://hugogiraudel.com/2013/03/18/ultimate-rem-mixin/
|
||
|
@import 'directional/rem';
|
||
|
|
||
|
//** Variables for responsive design in bootstrap with sass **
|
||
|
//-- url : https://gist.github.com/webinfinita/11407836
|
||
|
@import 'directional/bootstrap_breakpoints';
|
||
|
|
||
|
//** Makes supporting both left-to-right (LTR) and right-to-left (RTL) easy.**
|
||
|
//-- url : https://github.com/tysonmatanich/directional-scss
|
||
|
@import 'directional/directional';
|
||
|
|
||
|
//Mixins Utilities & Variables
|
||
|
@import 'variables/red';
|
||
|
@import 'variables/utilities';
|
||
|
@import "variables/theme_variables";
|
||
|
|
||
|
|
||
|
/**************************************************************
|
||
|
BLOCK HEADER
|
||
|
**************************************************************/
|
||
|
|
||
|
|
||
|
#header{
|
||
|
background: #f8f8f8;
|
||
|
.header-top{
|
||
|
font-size: 12px;
|
||
|
$color-border: #ccc;
|
||
|
background: none;
|
||
|
|
||
|
.header-top-left {
|
||
|
padding: 0;
|
||
|
float: $right;
|
||
|
.dropdown-toggle{
|
||
|
padding: 0 20px;
|
||
|
height: 40px;
|
||
|
line-height: 40px!important;
|
||
|
|
||
|
}
|
||
|
|
||
|
ul{
|
||
|
border: none;
|
||
|
background: #f8f8f8;
|
||
|
li{
|
||
|
a{
|
||
|
padding-top: 5px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
.currencies-block {
|
||
|
border: none;
|
||
|
float: $right;
|
||
|
@include border-top;
|
||
|
|
||
|
}
|
||
|
.languages-block{
|
||
|
float: $right;
|
||
|
border: none;
|
||
|
|
||
|
}
|
||
|
.form-group{
|
||
|
a{
|
||
|
line-height: 16px;
|
||
|
border: none;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.header-top-right {
|
||
|
float: $left;
|
||
|
#TabBlock-1{
|
||
|
float: $left;
|
||
|
margin: 0;
|
||
|
li{
|
||
|
padding: 0 17px;
|
||
|
@include border-top;
|
||
|
float: $left;
|
||
|
height: 40px;
|
||
|
line-height: 40px;
|
||
|
&:first-child{
|
||
|
padding-#{$left}: 0;
|
||
|
}
|
||
|
&:last-child{
|
||
|
border-#{$right}: none;
|
||
|
|
||
|
&:after{
|
||
|
background: none;
|
||
|
}
|
||
|
}
|
||
|
a{
|
||
|
color: #828282;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
.top-link{
|
||
|
margin: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.header-center{
|
||
|
|
||
|
padding: 31px 0 38px 0;
|
||
|
position: absolute;
|
||
|
z-index: 9;
|
||
|
width: 100%;
|
||
|
max-width: 1720px;
|
||
|
.navbar-logo{
|
||
|
padding-top: 13px;
|
||
|
float: $left;
|
||
|
}
|
||
|
.megamenu-hori{
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
.so-megamenu{
|
||
|
width: 100%;
|
||
|
}
|
||
|
.megamenu {
|
||
|
li{
|
||
|
.menu1{
|
||
|
position: relative;
|
||
|
font-size: 14px;
|
||
|
font-weight: 700;
|
||
|
color: #fff;
|
||
|
padding: 5px 0;
|
||
|
margin: 15px 20px;
|
||
|
text-transform: uppercase;
|
||
|
strong{
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
&:after{
|
||
|
content: "";
|
||
|
width: 0;
|
||
|
height: 2px;
|
||
|
position: absolute;
|
||
|
transition: all 0.2s ease-in-out 0s;
|
||
|
-moz-transition: all 0.2s ease-in-out 0s;
|
||
|
#{$left}: 0;
|
||
|
bottom: 0;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
&:hover .menu1{
|
||
|
|
||
|
&:after{
|
||
|
width: 100%;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
li.home .menu1{
|
||
|
|
||
|
&:after{
|
||
|
|
||
|
width: 100%;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
img{
|
||
|
max-width: 100%;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.shopping_cart{
|
||
|
position: relative;
|
||
|
.search{
|
||
|
float: $right;
|
||
|
#{$right}: 16px;
|
||
|
top: 5px;
|
||
|
position: relative;
|
||
|
.input-search{
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.input-search.open{
|
||
|
display: block;
|
||
|
padding: 0;
|
||
|
width: 220px;
|
||
|
top: 53px;
|
||
|
#{$right}: -60px;
|
||
|
position: absolute;
|
||
|
input{
|
||
|
height: 33px;
|
||
|
padding-#{$right}: 32px;
|
||
|
width: 100%;
|
||
|
border: 1px;
|
||
|
}
|
||
|
button{
|
||
|
float: $right;
|
||
|
position: absolute;
|
||
|
#{$right}: 5px;
|
||
|
top: 5px;
|
||
|
color: #000;
|
||
|
}
|
||
|
}
|
||
|
button{
|
||
|
background: none;
|
||
|
color: #fff;
|
||
|
border: none;
|
||
|
font-size: 2rem;
|
||
|
outline: none;
|
||
|
}
|
||
|
.btn-search.open{
|
||
|
display: block;
|
||
|
overflow: hidden;
|
||
|
width: 50px;
|
||
|
float: $right;
|
||
|
margin-#{$right}: -7px;
|
||
|
i:before{
|
||
|
content: "\f00d";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
.btn-shopping-cart{
|
||
|
float: $right;
|
||
|
.shopcart{
|
||
|
display: block;
|
||
|
overflow: hidden;
|
||
|
.handle{
|
||
|
position: relative;
|
||
|
background: url(../img/theme/color/white/cart.png) no-repeat ;
|
||
|
width: 31px;
|
||
|
height: 40px;
|
||
|
margin: 5px 10px;
|
||
|
|
||
|
}
|
||
|
.number-shopping-cart{
|
||
|
position: absolute;
|
||
|
height: 22px;
|
||
|
width: 22px;
|
||
|
line-height: 22px;
|
||
|
background: #ff5555;
|
||
|
color: #fff;
|
||
|
border-radius: 100px;
|
||
|
text-align: center;
|
||
|
bottom: 0;
|
||
|
#{$left}: 0;
|
||
|
}
|
||
|
}
|
||
|
.shoppingcart-box{
|
||
|
#{$right}: 12px;
|
||
|
margin-top: 10px;
|
||
|
width: 330px;
|
||
|
border: none;
|
||
|
box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.2);
|
||
|
&:before{
|
||
|
border: none;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.price-old{
|
||
|
text-decoration: line-through;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (max-width: 1199px){
|
||
|
#header .header-top{
|
||
|
padding: 0;
|
||
|
}
|
||
|
#header .header-center .megamenu-hori .megamenu li .menu1{
|
||
|
margin: 15px 12px;
|
||
|
}
|
||
|
#header .header-top .header-top-right{
|
||
|
height: 40px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media(max-width: 991px){
|
||
|
.responsive ul.megamenu > li{
|
||
|
height: 100%;
|
||
|
}
|
||
|
.so-megamenu .navbar-default .navbar-toggle .icon-bar{
|
||
|
background: #fff;
|
||
|
}
|
||
|
#header .header-center .megamenu-hori .megamenu li.home .menu1:after{
|
||
|
width: 0;
|
||
|
}
|
||
|
#header .header-center{
|
||
|
padding: 20px 0;
|
||
|
}
|
||
|
#header .header-center .megamenu-hori .megamenu li:hover .menu1:after{
|
||
|
width: 0;
|
||
|
}
|
||
|
}
|
||
|
@media (max-width: 767px){
|
||
|
#header .header-top{
|
||
|
.header-top-left .languages-block ul{
|
||
|
#{$right}: 0;
|
||
|
#{$left}: auto;
|
||
|
}
|
||
|
.header-top-right #TabBlock-1 {
|
||
|
|
||
|
li{
|
||
|
padding-#{$left}: 0;
|
||
|
&:after{
|
||
|
height: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#header .header-center{
|
||
|
position: relative;
|
||
|
background: #293b49;
|
||
|
}
|
||
|
#header .header-center {
|
||
|
.navbar-logo{
|
||
|
padding: 15px 0;
|
||
|
text-align: center;
|
||
|
}
|
||
|
.megamenu-hori{
|
||
|
justify-content: $left;
|
||
|
}
|
||
|
}
|
||
|
#header .header-center .shopping_cart .btn-shopping-cart .shoppingcart-box{
|
||
|
width: 250px;
|
||
|
#{$right}: 15px;
|
||
|
}
|
||
|
#header .header-center .shopping_cart .search .input-search.open{
|
||
|
z-index: 2;
|
||
|
}
|
||
|
.table>tbody>tr>td{
|
||
|
padding: 3px;
|
||
|
}
|
||
|
#header .header-center{
|
||
|
z-index: auto;
|
||
|
}
|
||
|
}
|