init
This commit is contained in:
@@ -0,0 +1,517 @@
|
||||
.cms-home .esun-hot-sale {
|
||||
margin-top: 0 !important;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.esun-hot-sale {
|
||||
--hot-sale-green: #12ad5c;
|
||||
box-sizing: border-box;
|
||||
margin: 76px auto 0;
|
||||
max-width: 1360px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.esun-hot-sale *,
|
||||
.esun-hot-sale *::before,
|
||||
.esun-hot-sale *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading {
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading h2 {
|
||||
color: #303030;
|
||||
font-size: 36px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 5px;
|
||||
margin: 0 0 34px;
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading h2::after {
|
||||
background: var(--hot-sale-green);
|
||||
bottom: -18px;
|
||||
content: "";
|
||||
height: 2px;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading-row {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading p {
|
||||
color: #666;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__explore {
|
||||
align-items: center;
|
||||
color: var(--hot-sale-green);
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
gap: 12px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.esun-hot-sale__explore:hover,
|
||||
.esun-hot-sale__explore:focus {
|
||||
color: #0c914c;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.esun-hot-sale__explore span {
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.esun-hot-sale__slider {
|
||||
padding-bottom: 54px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__page {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.esun-hot-sale__grid {
|
||||
display: grid;
|
||||
gap: 28px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.esun-hot-sale__card {
|
||||
background: #fff;
|
||||
border: 1px solid #f1f1f1;
|
||||
border-radius: 30px;
|
||||
box-shadow: 0 8px 28px rgba(23, 50, 36, 0.06);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 510px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.esun-hot-sale__image {
|
||||
display: block;
|
||||
height: 310px;
|
||||
overflow: hidden;
|
||||
padding: 18px 18px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.esun-hot-sale__image .product-image-container,
|
||||
.esun-hot-sale__image .product-image-wrapper {
|
||||
height: 100%;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.esun-hot-sale__image .product-image-wrapper {
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.esun-hot-sale__image .product-image-photo {
|
||||
height: 100%;
|
||||
inset: 0;
|
||||
margin: auto;
|
||||
max-height: none;
|
||||
object-fit: contain;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.esun-hot-sale__details {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
padding: 22px 24px 20px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__details h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__details h3 a {
|
||||
color: #242424;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.esun-hot-sale__details h3 a:hover,
|
||||
.esun-hot-sale__details h3 a:focus {
|
||||
color: var(--hot-sale-green);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.esun-hot-sale__description {
|
||||
color: #747474;
|
||||
display: -webkit-box;
|
||||
font-size: 15px;
|
||||
line-height: 1.45;
|
||||
margin: 0 0 24px;
|
||||
overflow: hidden;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 5;
|
||||
}
|
||||
|
||||
.esun-hot-sale__swatches {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 9px;
|
||||
margin-bottom: 20px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__swatch {
|
||||
background: #fff;
|
||||
border: 1px solid #e1e1e1;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
height: 18px;
|
||||
overflow: hidden;
|
||||
padding: 2px;
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__swatch > span,
|
||||
.esun-hot-sale__swatch img {
|
||||
border-radius: 50%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.esun-hot-sale__swatch-more {
|
||||
color: #4b4b4b;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__footer {
|
||||
align-items: center;
|
||||
border-top: 1px solid #f2f2f2;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: auto;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__price {
|
||||
align-items: baseline;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__final-price {
|
||||
color: var(--hot-sale-green);
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.esun-hot-sale__regular-price {
|
||||
color: #a5a5a5;
|
||||
font-size: 14px;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.esun-hot-sale__cart {
|
||||
align-items: center;
|
||||
background: var(--hot-sale-green);
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
display: inline-flex;
|
||||
flex: 0 0 48px;
|
||||
height: 48px;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__cart:hover,
|
||||
.esun-hot-sale__cart:focus {
|
||||
background: #0c914c;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.esun-hot-sale__cart svg {
|
||||
fill: none;
|
||||
height: 23px;
|
||||
stroke: #fff;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-width: 1.7;
|
||||
width: 23px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__card {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__image {
|
||||
height: 100%;
|
||||
padding: 28px 0 28px 28px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__details {
|
||||
padding: 48px 38px 28px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__details h3 {
|
||||
font-size: 24px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__swatches {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__pagination {
|
||||
bottom: 0 !important;
|
||||
}
|
||||
|
||||
.esun-hot-sale__pagination .swiper-pagination-bullet {
|
||||
background: #bfe4ce;
|
||||
height: 8px;
|
||||
opacity: 1;
|
||||
transition:
|
||||
width 0.2s ease,
|
||||
background 0.2s ease;
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__pagination .swiper-pagination-bullet-active {
|
||||
background: var(--hot-sale-green);
|
||||
border-radius: 5px;
|
||||
width: 26px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__visually-hidden {
|
||||
clip: rect(0, 0, 0, 0);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
@media (max-width: 1199px) {
|
||||
.esun-hot-sale__grid {
|
||||
gap: 20px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 899px) {
|
||||
.esun-hot-sale__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 639px) {
|
||||
.esun-hot-sale__image .product-image-photo {
|
||||
height: auto;
|
||||
}
|
||||
.esun-hot-sale {
|
||||
margin-top: 48px;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading h2 {
|
||||
font-size: 28px;
|
||||
letter-spacing: 3px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading h2::after {
|
||||
bottom: -12px;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading-row {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__heading p {
|
||||
flex: 1 1 auto;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.esun-hot-sale__explore {
|
||||
font-size: 13px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__grid {
|
||||
gap: 18px 12px;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.esun-hot-sale__card,
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__card {
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__card {
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__image {
|
||||
height: clamp(290px, 72vw, 360px);
|
||||
padding: 14px 14px 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__details {
|
||||
padding: 18px 20px 20px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__details h3 {
|
||||
font-size: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__description {
|
||||
font-size: 14px;
|
||||
margin-bottom: 14px;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item--featured .esun-hot-sale__swatches {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__image {
|
||||
height: clamp(155px, 43vw, 210px);
|
||||
padding: 8px 8px 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__details {
|
||||
padding: 12px 10px 14px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__details
|
||||
h3 {
|
||||
display: -webkit-box;
|
||||
font-size: 16px;
|
||||
line-height: 1.25;
|
||||
margin-bottom: 8px;
|
||||
min-height: 40px;
|
||||
overflow: hidden;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__swatches {
|
||||
flex-wrap: nowrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 12px;
|
||||
min-height: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__swatch {
|
||||
flex: 0 0 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__swatch-more {
|
||||
flex: 0 0 auto;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__footer {
|
||||
gap: 6px;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__price {
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__final-price {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__regular-price {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__cart {
|
||||
flex-basis: 40px;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__cart
|
||||
svg {
|
||||
height: 19px;
|
||||
width: 19px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 359px) {
|
||||
.esun-hot-sale__item:not(.esun-hot-sale__item--featured)
|
||||
.esun-hot-sale__regular-price {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user