FEATURE Introducing component styling
This commit is contained in:
parent
5dc70a6003
commit
fd5d075746
44
resources/css/blocks/narrative-card.css
Normal file
44
resources/css/blocks/narrative-card.css
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
.narrative-card {
|
||||||
|
@apply bg-white border border-primary p-12 mx-auto max-w-screen-lg;
|
||||||
|
|
||||||
|
&--has-cover {
|
||||||
|
@apply grid grid-cols-2 gap-32 items-center;
|
||||||
|
grid-template-columns: 4fr 1fr;
|
||||||
|
|
||||||
|
&--left {
|
||||||
|
grid-template-columns: 1fr 4fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__cover {
|
||||||
|
@apply w-full h-auto object-cover border border-primary mx-auto;
|
||||||
|
aspect-ratio: 1/1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(odd) {
|
||||||
|
.narrative-card__cover {
|
||||||
|
@apply rotate-3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(even) {
|
||||||
|
.narrative-card__cover {
|
||||||
|
@apply rotate-[-3deg];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
p {
|
||||||
|
@apply text-primary text-lg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.narrative-card__content h1,
|
||||||
|
.narrative-card__content h2,
|
||||||
|
.narrative-card__content h3,
|
||||||
|
.narrative-card__content h4,
|
||||||
|
.narrative-card__content h5,
|
||||||
|
.narrative-card__content h6 {
|
||||||
|
@apply text-primary uppercase;
|
||||||
|
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user