first upload all files
This commit is contained in:
@@ -0,0 +1,344 @@
|
||||
@import "common/_feature", "common/_product", "common/_form-wrap",
|
||||
"common/_product-card", "common/_vertical-product-card";
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
background: $color-white;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
z-index: 180;
|
||||
transition: 200ms ease-in-out;
|
||||
|
||||
&.active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.section-title {
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -1px;
|
||||
width: 50px;
|
||||
border-bottom: 2px solid $color-default;
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.product-options {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
li {
|
||||
font-size: 13px;
|
||||
margin-right: 5px;
|
||||
color: $color-gray-dark;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
margin-bottom: 0;
|
||||
color: $color-gray;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-products-header {
|
||||
border-bottom: 1px solid $border-color-lite;
|
||||
}
|
||||
|
||||
.vertical-products {
|
||||
.vertical-products-header {
|
||||
margin-bottom: 25px;
|
||||
border-bottom: 1px solid $border-color-lite;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
padding-bottom: 13px;
|
||||
}
|
||||
|
||||
.slick-prev,
|
||||
.slick-next {
|
||||
top: -62px;
|
||||
transform: translate(0, 0);
|
||||
|
||||
&:before {
|
||||
font-size: 16px;
|
||||
font-weight: 900;
|
||||
}
|
||||
}
|
||||
|
||||
.slick-prev {
|
||||
left: auto;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.slick-next {
|
||||
right: -5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-wishlist,
|
||||
.btn-compare {
|
||||
&.added {
|
||||
> i {
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
> i {
|
||||
color: $color-gray;
|
||||
transition: 500ms ease-in-out;
|
||||
|
||||
&.animating {
|
||||
animation: zoomInOut 500ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.coupon-wrap {
|
||||
.form-group {
|
||||
display: flex;
|
||||
margin-bottom: 0;
|
||||
|
||||
.form-input {
|
||||
input {
|
||||
height: 40px;
|
||||
width: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
.error-message {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.btn-apply-coupon {
|
||||
margin-left: 10px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-summary-list {
|
||||
li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 9px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
margin-bottom: 0;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.coupon-code {
|
||||
color: $color-gray;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn-remove-coupon {
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-summary-total {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
margin-top: 21px;
|
||||
justify-content: space-between;
|
||||
padding: 14px 0;
|
||||
border-top: 1px solid $color-gray-lite;
|
||||
|
||||
label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-cart-message {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
padding: 40px 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
|
||||
svg {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
margin-bottom: 22px;
|
||||
|
||||
g {
|
||||
fill: $color-default;
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: $color-gray;
|
||||
}
|
||||
|
||||
.btn-continue-shopping {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 455px) {
|
||||
.coupon-wrap {
|
||||
.form-group {
|
||||
flex-direction: column;
|
||||
|
||||
.form-input {
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-apply-coupon {
|
||||
margin: 15px 0 0 0;
|
||||
align-self: stretch;
|
||||
}
|
||||
}
|
||||
|
||||
> .error-message {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.arrow-black {
|
||||
appearance: none;
|
||||
background: transparent url("../images/arrow-black.png") no-repeat right 0px
|
||||
center;
|
||||
background-size: 10px;
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
> li {
|
||||
color: $color-gray;
|
||||
margin-bottom: 14px;
|
||||
white-space: nowrap;
|
||||
clear: both;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> i {
|
||||
margin-top: 3px;
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
float: left;
|
||||
}
|
||||
|
||||
> span {
|
||||
line-height: 22px;
|
||||
display: block;
|
||||
margin-left: 24px;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.social-links {
|
||||
li {
|
||||
display: inline-flex;
|
||||
margin-right: 5px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 22px;
|
||||
display: flex;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
color: $color-gray;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&:hover {
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.captcha-input {
|
||||
font-size: 14px;
|
||||
height: 45px;
|
||||
margin-left: 7px;
|
||||
padding: 10px 15px;
|
||||
border: 1px solid $color-gray-lite;
|
||||
border-radius: $radius-default;
|
||||
transition: $transition-default;
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
border-color: $color-default;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 510px) {
|
||||
.captcha-input {
|
||||
display: block;
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes zoomInOut {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.7);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/* color */
|
||||
|
||||
.bg-blue {
|
||||
background: $color-info;
|
||||
}
|
||||
|
||||
.bg-red {
|
||||
background: $color-red;
|
||||
}
|
||||
|
||||
.bg-yellow {
|
||||
background: $color-yellow;
|
||||
}
|
||||
|
||||
/* margin */
|
||||
|
||||
.m-t-30 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.m-r-30 {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.m-r-20 {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
/* padding */
|
||||
|
||||
.padding-tb-75 {
|
||||
padding-top: 75px;
|
||||
padding-bottom: 75px;
|
||||
}
|
||||
|
||||
.p-t-5 {
|
||||
margin-top: 5px;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/* fonts */
|
||||
|
||||
$primary-font: 'Rubik', Arial, Helvetica, sans-serif;
|
||||
|
||||
/* default theme colors */
|
||||
|
||||
$color-default: #0068e1;
|
||||
$color-default-hover: #0055b8;
|
||||
$color-default-transparent: rgba(0, 85, 184, 0.8);
|
||||
$color-default-transparent-lite: rgba(0, 85, 184, 0.3);
|
||||
|
||||
/* colors */
|
||||
|
||||
$color-white: #ffffff;
|
||||
$color-white-lite: #f2f4f5;
|
||||
$color-white-dark: #f9f9f9;
|
||||
$color-white-transparent: rgba(255, 255, 255, 0.7);
|
||||
$color-black: #191919;
|
||||
$color-gray: #6e6e6e;
|
||||
$color-gray-lite: #ebebeb;
|
||||
$color-gray-dark: #a6a6a6;
|
||||
$color-red: #e23e1d;
|
||||
$color-green: #1eb48e;
|
||||
$color-info: #247cc6;
|
||||
$color-yellow: #ffb136;
|
||||
$border-color: #e1e1e1;
|
||||
$border-color-lite: #e5e5e5;
|
||||
|
||||
/* screen size */
|
||||
|
||||
$xl: 1199px;
|
||||
$lg: 991px;
|
||||
$md: 767px;
|
||||
$sm: 576px;
|
||||
|
||||
/* miscellaneous */
|
||||
|
||||
$radius-default: 2px;
|
||||
$transition-default: 150ms ease-in-out;
|
||||
$transition-primary: 200ms ease-in-out;
|
||||
@@ -0,0 +1,24 @@
|
||||
.single-feature {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.feature-icon {
|
||||
margin-right: 13px;
|
||||
|
||||
> i {
|
||||
font-size: 36px;
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.feature-details {
|
||||
> span {
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
display: block;
|
||||
color: $color-gray;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
.form-wrap {
|
||||
margin-top: 63px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.form-wrap-inner {
|
||||
width: 600px;
|
||||
margin: auto;
|
||||
padding: 0 15px;
|
||||
|
||||
> h2 {
|
||||
margin-bottom: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
> p {
|
||||
margin-bottom: 19px;
|
||||
color: $color-gray;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
width: 100%;
|
||||
padding: 11px 14px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.sign-in-with {
|
||||
font-size: 16px;
|
||||
display: block;
|
||||
margin-top: 25px;
|
||||
color: $color-gray;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
display: flex;
|
||||
margin-top: 13px;
|
||||
justify-content: center;
|
||||
|
||||
li {
|
||||
a {
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
margin: 0 10px;
|
||||
color: $color-white;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
|
||||
&:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
&.facebook {
|
||||
background: #3a559f;
|
||||
}
|
||||
|
||||
&.google {
|
||||
background: #d94936;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.have-an-account {
|
||||
display: block;
|
||||
line-height: 26px;
|
||||
margin-top: 23px;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 647px) {
|
||||
.form-wrap-inner {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,372 @@
|
||||
.product-card {
|
||||
position: relative;
|
||||
display: flex !important;
|
||||
height: auto;
|
||||
margin: 0 15px;
|
||||
padding: 20px 20px 0;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border: 1px solid $color-gray-lite;
|
||||
border-radius: $radius-default;
|
||||
transition: $transition-primary;
|
||||
|
||||
&:hover {
|
||||
border-color: $color-white;
|
||||
box-shadow: 2.5px 4.33px 50px 5px rgba(11, 28, 42, 0.15);
|
||||
z-index: 1;
|
||||
|
||||
.product-card-actions {
|
||||
button {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
||||
.product-card-countdown {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translate(-50%, -50%) scale(0.9);
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
transform: translateY(-33px);
|
||||
}
|
||||
|
||||
.product-card-bottom {
|
||||
border-top-color: transparent;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
&:after {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.product-price-clone {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateX(-15px);
|
||||
|
||||
&:after {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateX(20px);
|
||||
}
|
||||
}
|
||||
|
||||
.btn-add-to-cart {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
opacity: 0.65;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-top {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 180px;
|
||||
|
||||
.image-placeholder {
|
||||
height: 85px;
|
||||
width: 85px;
|
||||
}
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
transition: $transition-primary;
|
||||
}
|
||||
|
||||
.product-card-actions {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: $radius-default;
|
||||
z-index: 1;
|
||||
|
||||
.btn {
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
background: $color-white;
|
||||
border: 1px solid $color-gray-lite;
|
||||
border-radius: $radius-default;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.5);
|
||||
transition: opacity $transition-primary, transform $transition-primary, border-color $transition-default;
|
||||
|
||||
&:hover {
|
||||
border-color: $color-default-transparent-lite;
|
||||
border-color: var(--color-primary-transparent-lite);
|
||||
}
|
||||
|
||||
> i {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-wishlist {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-countdown {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
transition: $transition-primary;
|
||||
|
||||
&.is-countdown {
|
||||
.countdown-section {
|
||||
width: auto;
|
||||
margin-right: 10px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.countdown-amount {
|
||||
height: 38px;
|
||||
width: 38px;
|
||||
margin: 0;
|
||||
color: $color-white;
|
||||
background: $color-default-transparent;
|
||||
background: var(--color-primary-transparent);
|
||||
}
|
||||
|
||||
.countdown-period {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-middle {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 90px;
|
||||
margin-top: auto;
|
||||
padding-bottom: 9px;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
margin-bottom: 10px;
|
||||
transition: $transition-primary;
|
||||
|
||||
.back-stars {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.product-name {
|
||||
display: block;
|
||||
color: $color-black;
|
||||
transition: $transition-primary;
|
||||
z-index: 1;
|
||||
|
||||
h6 {
|
||||
position: relative;
|
||||
font-weight: 400;
|
||||
line-height: 21px;
|
||||
max-height: 40px;
|
||||
display: -webkit-box;
|
||||
background: $color-white;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-bottom {
|
||||
position: relative;
|
||||
padding: 12px 0 10px;
|
||||
border-top: 1px solid $color-gray-lite;
|
||||
transition: $transition-default;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
position: relative;
|
||||
transition: $transition-primary;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: -20px;
|
||||
top: 4px;
|
||||
height: 15px;
|
||||
width: 7px;
|
||||
background: $color-default;
|
||||
background: var(--color-primary);
|
||||
border-top-right-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
transition: $transition-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.product-price-clone {
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
bottom: 15px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
z-index: -1;
|
||||
|
||||
&:after {
|
||||
left: -40px;
|
||||
top: 4px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-add-to-cart {
|
||||
font-size: 13px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 20px;
|
||||
width: 100%;
|
||||
padding: 6px 0 4px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
transition: $transition-primary;
|
||||
|
||||
> i {
|
||||
font-size: 15px;
|
||||
margin: 5px 6px 0 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1800px) {
|
||||
.product-card {
|
||||
.product-image {
|
||||
height: 160px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $lg) {
|
||||
.product-card {
|
||||
margin: 0 8px;
|
||||
padding: 15px 15px 0;
|
||||
|
||||
&:hover {
|
||||
border-color: $color-gray-lite;
|
||||
box-shadow: none;
|
||||
|
||||
.product-badge {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.product-card-countdown {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-top {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
position: relative;
|
||||
height: 80%;
|
||||
padding-bottom: 80%;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
|
||||
.product-card-actions,
|
||||
.product-price-clone,
|
||||
.btn-add-to-cart {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.product-card-middle {
|
||||
height: 60px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.product-card-bottom {
|
||||
padding-top: 5px;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
flex-direction: column;
|
||||
|
||||
&:after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.previous-price {
|
||||
margin: -4px auto 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
.product-image {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
> img {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
transition: $transition-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.badge {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
display: inline-block;
|
||||
margin: 0 0 5px auto;
|
||||
padding: 6px 9px;
|
||||
text-align: right;
|
||||
border-radius: 0;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.badge-success {
|
||||
color: $color-white;
|
||||
background: $color-green;
|
||||
}
|
||||
|
||||
&.badge-primary {
|
||||
color: $color-white;
|
||||
background: $color-default;
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
&.badge-warning {
|
||||
color: $color-white;
|
||||
background: $color-yellow;
|
||||
}
|
||||
|
||||
&.badge-danger {
|
||||
color: $color-white;
|
||||
background: $color-red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
line-height: 24px;
|
||||
display: flex;
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
|
||||
.previous-price {
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0 8px;
|
||||
color: $color-gray-dark;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
display: inline-flex;
|
||||
|
||||
.back-stars {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
> i {
|
||||
margin-right: 1px;
|
||||
color: $color-gray-dark;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.front-stars {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
display: flex;
|
||||
color: $color-yellow;
|
||||
overflow: hidden;
|
||||
|
||||
> i {
|
||||
margin-right: 1px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rating-count {
|
||||
font-size: 11px;
|
||||
line-height: 12px;
|
||||
margin: 1px 0 0 5px;
|
||||
color: $color-gray;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
.vertical-product-card {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 70px;
|
||||
width: 70px;
|
||||
min-width: 70px;
|
||||
margin-top: 5px;
|
||||
border-radius: $radius-default;
|
||||
overflow: hidden;
|
||||
|
||||
.image-placeholder {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.product-info {
|
||||
flex-grow: 1;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
color: $color-black;
|
||||
|
||||
|
||||
&:hover {
|
||||
h6 {
|
||||
color: $color-default;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-weight: 400;
|
||||
line-height: 22px;
|
||||
max-height: 44px;
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
transition: $transition-default;
|
||||
}
|
||||
}
|
||||
|
||||
.product-price {
|
||||
line-height: 1;
|
||||
margin-bottom: 6px;
|
||||
|
||||
.previous-price {
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user