homegrade_theme_production/resources/css/blocks/timeline.css

141 lines
2.8 KiB
CSS

.homegrade-blocks-timeline {
@apply max-w-screen-xl mx-auto my-32;
.section_titling {
@apply mb-9;
}
&__container {
@apply relative;
}
&__lateral-cover {
@apply hidden lg:block;
img {
@apply rounded-3xl mb-3;
}
.description,
.caption {
@apply m-0 p-0;
}
.caption {
@apply font-semibold text-primary text-sm;
}
&--squared {
img {
@apply h-auto
object-cover object-center;
aspect-ratio: 1/1;
}
}
&--md {
img {
@apply w-full
object-cover object-center;
max-height: 450px;
}
}
&--illustration {
img {
@apply w-full;
max-height: 450px;
}
}
}
&--has-lateral-cover {
.homegrade-blocks-timeline__container {
@apply grid grid-cols-3 gap-12;
}
.homegrade-blocks-timeline__innercontent {
@apply col-span-3 lg:col-span-2;
}
.homegrade-blocks-timeline-step {
@apply !block;
}
}
&--has-step-icons {
.homegrade-blocks-timeline__container {
&:before {
@apply rounded-3xl bg-secondary
opacity-10
absolute
top-0
h-full;
z-index: -1;
content: '';
top: 0;
width: 20px;
left: 24px;
@screen md {
width: 28px;
left: 38px;
}
@screen lg {
width: 34px;
left: calc(33% + 54px);
}
}
}
}
&--has-no-step-pictures {
}
.homegrade-blocks-timeline-step {
@apply grid grid-cols-3 gap-12 py-7;
ul {
list-style: none;
}
&__innercontent {
@apply -mt-12;
}
&__cover {
@apply max-w-md h-auto;
border-radius: 22px;
img {
@apply rounded-3xl mb-3;
}
.description,
.caption {
@apply m-0 p-0;
}
.caption {
@apply font-semibold text-primary text-sm;
}
}
&__icon {
@apply w-16 h-16 md:w-24 md:h-24 shrink-0 bg-white shadowed p-4 rounded-3xl flex justify-center items-center;
img {
@apply mx-auto object-contain;
max-width: 80%;
max-height: 80%;
}
}
&__text-content {
@apply pt-2;
}
&__content {
@apply col-span-2 flex gap-8;
&--has-step-icon {
&:before {
content: '';
height: 100%;
width: 2px;
background: red;
}
}
}
&__title {
@apply text-secondary font-bold text-xl m-0 leading-none;
}
&__subtitle {
@apply text-neutral-900 font-bold text-2xl;
}
}
}
.section_titling + .homegrade-blocks-timeline {
@apply mt-12;
}