FEATURE Add a numbering variation
This commit is contained in:
parent
1fd9d09549
commit
9fadc4571d
|
|
@ -1,3 +1,14 @@
|
||||||
.scroll-story-block {
|
.scroll-story-block {
|
||||||
@apply py-12 flex flex-col gap-12 overflow-x-hidden;
|
@apply py-12 flex flex-col gap-12 overflow-x-hidden;
|
||||||
|
|
||||||
|
&--has-numbering {
|
||||||
|
counter-reset: narrative-card;
|
||||||
|
.narrative-card .narrative-card__content {
|
||||||
|
&:before {
|
||||||
|
@apply bg-primary text-white w-12 h-12 flex items-center justify-center mb-12;
|
||||||
|
content: counter(narrative-card);
|
||||||
|
counter-increment: narrative-card;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user