Layout product grid

This commit is contained in:
Jonatan Schultz
2021-08-26 16:56:23 +02:00
parent 75beec4c94
commit 7f6999629a
15 changed files with 11056 additions and 142 deletions

View File

@@ -1,15 +1,10 @@
.root {
@apply relative max-h-full w-full box-border overflow-hidden
bg-no-repeat bg-center bg-cover transition-transform
ease-linear cursor-pointer inline-block bg-accent-1;
transition-transform ease-linear cursor-pointer inline-block;
height: 100% !important;
}
.root:hover {
& .productImage {
transform: scale(1.2625);
}
& .header .name span,
& .header .price,
& .wishlistButton {
@@ -69,22 +64,23 @@
}
.imageContainer {
@apply flex items-center justify-center overflow-hidden;
@apply relative flex items-center justify-center bg-primary-2 mb-4;
padding: 12% 15%;
}
.imageContainer > div {
min-width: 100%;
}
.imageContainer .productImage {
@apply transform transition-transform duration-500
object-cover scale-120;
.imageContainerInner {
@apply relative w-full;
padding-bottom: 100%;
}
.root .wishlistButton {
@apply top-0 right-0 z-30 absolute;
}
.typeIcon {
@apply absolute bg-accent-2 rounded-full p-1.5 -bottom-2 right-2.5;
font-size: 0;
}
/* Variant Simple */
.simple .header .name {
@apply pt-2 text-lg leading-10 -mt-1;