349 lines
6.7 KiB
SCSS
349 lines
6.7 KiB
SCSS
@charset "UTF-8";
|
|
|
|
header {
|
|
// box-shadow: 0px 1px 10px rgba(0, 0, 0, .04);
|
|
background: #fff;
|
|
body:not(.page-home) & {
|
|
box-shadow: 0 6px 12px 0 rgba(0, 0, 0, .04);
|
|
// border-bottom: 1px solid #e5e5e5;
|
|
}
|
|
|
|
|
|
.top-wrap {
|
|
// padding: 10px;
|
|
height: 40px;
|
|
// max-height: 50px;
|
|
background: #F7F8FA;
|
|
display: flex;
|
|
}
|
|
|
|
.top-wrap, .header-content {
|
|
.dropdown {
|
|
&:hover {
|
|
background-color: #fff;
|
|
|
|
.dropdown-menu {
|
|
margin: 0;
|
|
display: block;
|
|
box-shadow: 0 0 15px rgb(0, 0, 0, .1);
|
|
border: none;
|
|
|
|
&.dropdown-menu-end {
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
|
|
> .container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.menu-wrap {
|
|
.container {
|
|
max-width: 1140px;
|
|
}
|
|
|
|
@media (min-width: 1200px) {
|
|
.navbar-nav {
|
|
.dropdown {
|
|
|
|
&.position-static >.dropdown-menu {
|
|
// top: 100%;
|
|
}
|
|
|
|
&:hover {
|
|
.dropdown-menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translate(-50%);
|
|
}
|
|
}
|
|
|
|
>.dropdown-menu {
|
|
left: 50%;
|
|
transform: translate(-50%, 0.5rem);
|
|
transition: all .2s ease-in-out;
|
|
transition-property: visibility,transform,opacity;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
display: block;
|
|
transform-origin: top center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> .navbar-nav {
|
|
> .nav-item {
|
|
> .nav-link {
|
|
font-size: 15px;
|
|
padding: 1rem;
|
|
// padding-right: 1rem;
|
|
// padding-left: 1rem;
|
|
position: relative;
|
|
|
|
.badge {
|
|
position: absolute;
|
|
bottom: 80%;
|
|
padding: 2px 4px;
|
|
font-weight: 400;
|
|
left: calc(50% - 0px);
|
|
margin-left: 0px;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 10px;
|
|
border: 4px solid;
|
|
border-color: inherit;
|
|
border-right-color: #0000!important;
|
|
border-bottom-color: #0000!important;
|
|
border-right-width: 7px;
|
|
border-left-width: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.group-name {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.ul-children {
|
|
a {
|
|
color: #7a7a7a;
|
|
&:hover {
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// .nav-link {
|
|
// color: #333;
|
|
// // font-weight: bold;
|
|
// font-size: .9rem;
|
|
// padding-left: 1rem;
|
|
// padding-right: 1rem;
|
|
// }
|
|
}
|
|
|
|
.logo {
|
|
img {
|
|
max-width: 180px;
|
|
max-height: 50px;
|
|
}
|
|
}
|
|
|
|
.right-btn {
|
|
.nav-link {
|
|
color: #333;
|
|
padding-right: 0.7rem;
|
|
padding-left: 0.7rem;
|
|
position: relative;
|
|
i {
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
|
|
.cart-badge-quantity {
|
|
position: absolute;
|
|
left: 21px;
|
|
top: -3px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
display: none;
|
|
width: 23px;
|
|
zoom: 0.9;
|
|
height: 23px;
|
|
line-height: 24px;
|
|
background-color: #fd560f;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.header-mobile {
|
|
.mobile-content {
|
|
padding: 10px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
.mobile-open-menu {
|
|
cursor: pointer;
|
|
}
|
|
|
|
> div {
|
|
width: 33.33%;
|
|
}
|
|
|
|
.left {
|
|
> i {
|
|
font-size: 1.6rem;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
.nav-link {
|
|
padding: 0;
|
|
i {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
// margin-left: 14px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#offcanvas-search-top {
|
|
height: 100px;
|
|
justify-content: center;
|
|
|
|
.offcanvas-header {
|
|
width: 100%;
|
|
}
|
|
|
|
input {
|
|
&:focus {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.btn-close {
|
|
padding: 1rem;
|
|
opacity: 1;
|
|
|
|
&:hover {
|
|
background-color: #eee;
|
|
}
|
|
}
|
|
}
|
|
|
|
#offcanvas-right-cart {
|
|
.offcanvas-right-products {
|
|
.product-list {
|
|
padding: 1rem 0;
|
|
border-top: 1px solid #eee;
|
|
|
|
.left {
|
|
width: 90px;
|
|
margin-right: 10px;
|
|
|
|
img {
|
|
max-height: 90px;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
.offcanvas-products-delete {
|
|
cursor: pointer;
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#offcanvas-mobile-menu {
|
|
width: 80%;
|
|
|
|
.offcanvas-header {
|
|
padding: 10px 20px 10px 10px;
|
|
}
|
|
|
|
.mobile-menu-wrap {
|
|
padding: 0;
|
|
|
|
#menu-accordion {
|
|
border-top: 1px solid #e5e5e5;
|
|
|
|
.accordion-item {
|
|
border-bottom: 1px solid #e5e5e5;
|
|
|
|
.nav-item-text {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
> a {
|
|
flex: 1;
|
|
height: 44px;
|
|
padding-left: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.badge {
|
|
position: relative;
|
|
margin-left: 13px;
|
|
// padding: 2px 4px;
|
|
font-weight: 400;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 100%;
|
|
transform: translate(0, -50%);
|
|
border: 4px solid;
|
|
border-right-width: 7px;
|
|
border: 5px solid #0000;
|
|
border-right-color: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
> span {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
border-left: 1px solid #e5e5e5;
|
|
align-items: center;
|
|
justify-content: center;
|
|
&:active {
|
|
background-color: #eee;
|
|
}
|
|
|
|
&[aria-expanded="true"] {
|
|
background-color: #eee;
|
|
i {
|
|
transform:rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.accordion-collapse {
|
|
padding: 10px;
|
|
border-top: 1px solid #e5e5e5;
|
|
|
|
.children-group {
|
|
.group-name {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.nav {
|
|
a {
|
|
color: #777;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |