feat(store-home-page): add margin styling for adjacent store sections
This commit is contained in:
@@ -2,6 +2,11 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app-hero-banner + app-store-section,
|
||||||
|
app-store-section + app-store-section {
|
||||||
|
margin-top: clamp(3rem, 6vw, 5rem);
|
||||||
|
}
|
||||||
|
|
||||||
.store-home__alert-error {
|
.store-home__alert-error {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-color: rgba(var(--tenant-danger-rgb, 220, 53, 69), 0.18);
|
border-color: rgba(var(--tenant-danger-rgb, 220, 53, 69), 0.18);
|
||||||
|
|||||||
@@ -17,8 +17,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--column {
|
&--column {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
|
container-name: product-list;
|
||||||
|
container-type: inline-size;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
|
||||||
|
.product-list__item {
|
||||||
|
flex: 0 0 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
@@ -26,6 +35,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@container product-list (min-width: 544px) {
|
||||||
|
.product-list--column .product-list__item {
|
||||||
|
flex-basis: calc((100% - 1.5rem) / 2);
|
||||||
|
max-width: calc((100% - 1.5rem) / 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@container product-list (min-width: 828px) {
|
||||||
|
.product-list--column .product-list__item {
|
||||||
|
flex-basis: calc((100% - 3rem) / 3);
|
||||||
|
max-width: calc((100% - 3rem) / 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@container product-list (min-width: 1112px) {
|
||||||
|
.product-list--column .product-list__item {
|
||||||
|
flex-basis: calc((100% - 4.5rem) / 4);
|
||||||
|
max-width: calc((100% - 4.5rem) / 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.product-list__paginator {
|
.product-list__paginator {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user