forked from crowetic/commerce
147 lines
3.1 KiB
CSS
147 lines
3.1 KiB
CSS
.root {
|
|
@apply relative w-full box-border overflow-hidden bg-no-repeat bg-center bg-cover transition ease-linear cursor-pointer;
|
|
|
|
&:hover {
|
|
& .squareBg {
|
|
background-color: var(--violet);
|
|
background: radial-gradient(
|
|
circle,
|
|
transparent 20%,
|
|
var(--violet) 20%,
|
|
var(--violet) 80%,
|
|
transparent 80%,
|
|
transparent
|
|
),
|
|
radial-gradient(
|
|
circle,
|
|
transparent 20%,
|
|
var(--violet) 20%,
|
|
var(--violet) 80%,
|
|
transparent 80%,
|
|
transparent
|
|
)
|
|
50px 50px,
|
|
linear-gradient(red 4px, transparent 4px) 0 -2px,
|
|
linear-gradient(90deg, red 4px, var(--violet) 4px) -2px 0;
|
|
background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
|
|
}
|
|
|
|
& .productTitle > span,
|
|
& .productPrice,
|
|
& .wishlistButton {
|
|
@apply bg-secondary text-secondary;
|
|
}
|
|
|
|
&:nth-child(6n + 1) .productTitle > span,
|
|
&:nth-child(6n + 1) .productPrice,
|
|
&:nth-child(6n + 1) .wishlistButton {
|
|
@apply bg-violet text-white;
|
|
}
|
|
|
|
&:nth-child(6n + 5) .productTitle > span,
|
|
&:nth-child(6n + 5) .productPrice,
|
|
&:nth-child(6n + 5) .wishlistButton {
|
|
@apply bg-blue text-white;
|
|
}
|
|
|
|
&:nth-child(6n + 3) .productTitle > span,
|
|
&:nth-child(6n + 3) .productPrice,
|
|
&:nth-child(6n + 3) .wishlistButton {
|
|
@apply bg-pink text-white;
|
|
}
|
|
|
|
&:nth-child(6n + 6) .productTitle > span,
|
|
&:nth-child(6n + 6) .productPrice,
|
|
&:nth-child(6n + 6) .wishlistButton {
|
|
@apply bg-cyan text-white;
|
|
}
|
|
|
|
/* & .squareBg {
|
|
@apply bg-white;
|
|
}
|
|
|
|
&:nth-child(6n + 1) .squareBg {
|
|
@apply bg-white;
|
|
}
|
|
|
|
&:nth-child(6n + 5) .squareBg {
|
|
@apply bg-white;
|
|
}
|
|
|
|
&:nth-child(6n + 3) .squareBg {
|
|
@apply bg-white;
|
|
}
|
|
|
|
&:nth-child(6n + 6) .squareBg {
|
|
@apply bg-white;
|
|
} */
|
|
}
|
|
|
|
&:nth-child(6n + 1) .squareBg {
|
|
@apply bg-violet;
|
|
}
|
|
|
|
&:nth-child(6n + 5) .squareBg {
|
|
@apply bg-blue;
|
|
}
|
|
|
|
&:nth-child(6n + 3) .squareBg {
|
|
@apply bg-pink;
|
|
}
|
|
|
|
&:nth-child(6n + 6) .squareBg {
|
|
@apply bg-cyan;
|
|
}
|
|
}
|
|
|
|
.squareBg,
|
|
.productTitle > span,
|
|
.productPrice,
|
|
.wishlistButton {
|
|
@apply transition ease-in-out duration-500;
|
|
}
|
|
|
|
.squareBg {
|
|
@apply transform absolute inset-0 z-0 bg-secondary;
|
|
}
|
|
|
|
.simple {
|
|
& .squareBg {
|
|
@apply bg-gray-300 !important;
|
|
}
|
|
|
|
& .productTitle {
|
|
width: 18vw;
|
|
margin-top: -7px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
& .productPrice {
|
|
@apply text-sm;
|
|
}
|
|
}
|
|
|
|
.productTitle {
|
|
@apply pt-4 leading-8;
|
|
width: 400px;
|
|
font-size: 2rem;
|
|
letter-spacing: 0.4px;
|
|
|
|
& span {
|
|
@apply inline p-4 bg-primary text-primary font-bold;
|
|
font-size: inherit;
|
|
letter-spacing: inherit;
|
|
box-decoration-break: clone;
|
|
-webkit-box-decoration-break: clone;
|
|
}
|
|
}
|
|
|
|
.productPrice {
|
|
@apply py-4 px-4 bg-primary text-base font-semibold inline-block text-sm leading-6;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.wishlistButton {
|
|
@apply w-10 h-10 flex ml-auto items-center justify-center bg-primary text-base font-semibold inline-block text-xs leading-6 cursor-pointer;
|
|
}
|