¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -1,5 +1,8 @@
@import "common/_feature", "common/_product", "common/_form-wrap",
"common/_product-card", "common/_vertical-product-card";
@import "common/_feature";
@import "common/_product";
@import "common/_form-wrap";
@import "common/_product-card";
@import "common/_vertical-product-card";
.wrapper {
position: relative;
@@ -16,7 +19,7 @@
opacity: 0;
visibility: hidden;
z-index: 180;
transition: 200ms ease-in-out;
transition: 150ms ease-in-out;
&.active {
opacity: 1;
@@ -45,7 +48,7 @@
li {
font-size: 13px;
margin-right: 5px;
color: $color-gray-dark;
color: $color-gray;
&:last-child {
margin-right: 0;
@@ -54,7 +57,7 @@
label {
margin-bottom: 0;
color: $color-gray;
color: $color-gray-dark;
}
}
@@ -96,91 +99,136 @@
.btn-wishlist,
.btn-compare {
&.added {
&:hover {
> i {
color: $color-default !important;
color: var(--color-primary) !important;
}
}
> i {
color: $color-default;
color: var(--color-primary);
animation: bounceIn 1.2s both cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
}
> i {
color: $color-gray;
transition: 500ms ease-in-out;
&.animating {
animation: zoomInOut 500ms ease-in-out;
}
transition: $transition-default;
}
}
.coupon-wrap {
.form-group {
display: flex;
margin-bottom: 0;
.cart-item {
position: relative;
display: flex;
.form-input {
input {
height: 40px;
width: 250px;
.product-image {
height: 46px;
width: 46px;
min-width: 46px;
border-radius: $radius-default;
overflow: hidden;
.image-placeholder {
height: 40px;
width: 40px;
}
}
.product-info {
flex-grow: 1;
margin-left: 20px;
min-width: 0;
.product-name {
font-size: 14px;
font-weight: 400;
line-height: 18px;
max-height: 36px;
display: -webkit-box;
margin: 0 25px 3px 0;
color: $color-black;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
&:hover {
color: $color-default;
color: var(--color-primary);
}
}
.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 {
.product-price {
font-weight: 500;
color: $color-default;
color: var(--color-primary);
}
}
.remove-cart-item {
position: absolute;
right: -8px;
.btn-remove {
font-size: 14px;
opacity: 0.6;
&:hover {
opacity: 1;
}
}
}
}
.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;
.number-picker {
position: relative;
width: 75px;
display: inline-flex;
label {
margin-bottom: 0;
.input-quantity {
height: auto;
padding: 0;
text-align: center;
border: none;
}
.btn-number {
position: absolute;
font-size: 14px;
padding: 0;
top: 50%;
height: 18px;
width: 18px;
display: flex;
align-items: center;
justify-content: center;
background: $color-gray-lite;
border-radius: 3px;
transform: translateY(-50%);
&:hover:not([disabled]) {
color: $color-white;
background: $color-default;
background: var(--color-primary);
}
&[disabled] {
opacity: 0.5;
&:hover {
color: $color-black;
}
}
}
.btn-minus {
left: 0;
}
.btn-plus {
right: 0;
}
}
@@ -217,29 +265,53 @@
}
}
@media screen and (max-width: 455px) {
.coupon-wrap {
.form-group {
flex-direction: column;
.address-card-wrap {
.address-card {
position: relative;
flex-grow: 1;
margin-bottom: 30px;
padding: 15px 20px 12px;
border: 1px solid $color-gray-lite;
border-radius: $radius-default;
cursor: pointer;
.form-input {
input {
width: 100%;
}
.error-message {
display: block;
}
}
.btn-apply-coupon {
margin: 15px 0 0 0;
align-self: stretch;
}
&.active {
border-color: $color-default;
border-color: var(--color-primary);
}
> .error-message {
display: none;
.badge {
font-size: 11px;
position: absolute;
top: 10px;
right: 10px;
min-width: 0;
padding: 4px 7px;
color: $color-white;
background: $color-default;
background: var(--color-primary);
border-radius: 6px;
opacity: 0.8;
}
.address-card-data {
margin-bottom: 3px;
> span {
font-weight: 500;
display: block;
&:not(:first-child) {
font-size: 14px;
font-weight: 400;
line-height: 22px;
color: $color-gray;
}
&:nth-child(2) {
margin-top: 5px;
}
}
}
}
}
@@ -252,27 +324,42 @@
}
.contact-info {
> li {
li {
display: flex;
align-items: center;
color: $color-gray;
margin-bottom: 14px;
white-space: nowrap;
clear: both;
&:last-child {
margin-bottom: 0;
}
> i {
margin-top: 3px;
i {
color: $color-default;
color: var(--color-primary);
float: left;
}
a {
margin-left: 10px;
color: $color-gray;
&:hover {
color: $color-default;
color: var(--color-primary);
}
span {
&:first-child {
margin-right: -4px;
}
}
}
> span {
line-height: 22px;
display: block;
margin-left: 24px;
display: inline-block;
margin-left: 10px;
word-break: break-all;
white-space: pre-wrap;
}
@@ -305,27 +392,35 @@
}
}
.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;
.captcha-field {
> img {
border-radius: $radius-default;
}
&:focus {
outline: 0;
border-color: $color-default;
border-color: var(--color-primary);
box-shadow: none;
> 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;
.captcha-field {
> input {
display: block;
margin: 10px 0 0 0 !important;
}
}
}
@@ -342,3 +437,25 @@
transform: scale(1);
}
}
@keyframes bounceIn {
0% {
transform: scale(0);
}
15% {
transform: scale(1.6);
}
32% {
transform: scale(0.8);
}
50% {
transform: scale(1);
}
100% {
transform: scale(1);
}
}

View File

@@ -1,5 +1,10 @@
/* color */
.color-primary {
color: $color-default;
color: var(--color-primary);
}
.bg-blue {
background: $color-info;
}
@@ -36,3 +41,9 @@
.p-t-5 {
margin-top: 5px;
}
/* miscellaneous */
.text-line-through {
text-decoration: line-through;
}

View File

@@ -1,6 +1,6 @@
/* fonts */
$primary-font: 'Rubik', Arial, Helvetica, sans-serif;
$primary-font: "Rubik", sans-serif;
/* default theme colors */
@@ -35,6 +35,7 @@ $sm: 576px;
/* miscellaneous */
$radius-default: 2px;
$radius-default: 8px;
$radius-full: 50%;
$transition-default: 150ms ease-in-out;
$transition-primary: 200ms ease-in-out;

View File

@@ -6,7 +6,7 @@
.form-wrap-inner {
width: 600px;
margin: auto;
padding: 0 15px;
padding: 0 5px;
> h2 {
margin-bottom: 40px;
@@ -53,7 +53,7 @@
color: $color-white;
align-items: center;
justify-content: center;
border-radius: 50%;
border-radius: $radius-full;
&:hover {
opacity: 0.85;

View File

@@ -2,7 +2,7 @@
position: relative;
display: flex !important;
height: auto;
margin: 0 15px;
margin: 0 10px;
padding: 20px 20px 0;
flex-direction: column;
overflow: hidden;
@@ -11,24 +11,17 @@
transition: $transition-primary;
&:hover {
border-color: $color-white;
box-shadow: 2.5px 4.33px 50px 5px rgba(11, 28, 42, 0.15);
border-color: $color-white-lite;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
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;
@@ -87,7 +80,7 @@
}
.product-image {
height: 180px;
padding-bottom: 80%;
.image-placeholder {
height: 85px;
@@ -96,9 +89,10 @@
}
.product-badge {
right: 0;
left: 0;
right: auto;
z-index: 1;
transition: $transition-primary;
cursor: pointer;
}
.product-card-actions {
@@ -121,9 +115,14 @@
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;
transition: opacity $transition-primary,
transform $transition-primary, border-color $transition-default;
&.btn-wishlist.added {
opacity: 1;
transform: scale(1);
}
&:hover {
border-color: $color-default-transparent-lite;
@@ -132,6 +131,7 @@
> i {
font-size: 15px;
transition: $transition-primary;
}
}
@@ -147,7 +147,7 @@
transform: translate(-50%, -50%) scale(1);
transition: $transition-primary;
&.is-countdown {
&.countdown {
.countdown-section {
width: auto;
margin-right: 10px;
@@ -225,7 +225,7 @@
&:after {
position: absolute;
content: '';
content: "";
left: -20px;
top: 4px;
height: 15px;
@@ -276,17 +276,9 @@
}
}
@media screen and (max-width: 1800px) {
.product-card {
.product-image {
height: 160px;
}
}
}
@media screen and (max-width: $lg) {
.product-card {
margin: 0 8px;
margin: 0 7.5px;
padding: 15px 15px 0;
&:hover {
@@ -324,19 +316,6 @@
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 {

View File

@@ -1,11 +1,17 @@
.product-image {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
> img {
position: absolute;
left: 50%;
top: 50%;
max-height: 100%;
max-width: 100%;
transform: translate(-50%, -50%);
transition: $transition-primary;
}
}
@@ -13,7 +19,7 @@
.product-badge {
position: absolute;
top: -5px;
right: 0;
left: 0;
display: flex;
flex-direction: column;
@@ -23,10 +29,10 @@
width: auto;
min-width: 0;
display: inline-block;
margin: 0 0 5px auto;
padding: 6px 9px;
text-align: right;
border-radius: 0;
margin: 0 auto 5px 0;
padding: 5px 9px;
text-align: left;
border-radius: 5px;
&:last-child {
margin-bottom: 0;