handling and refinin block timeline

This commit is contained in:
Antoine M 2023-10-18 15:05:22 +02:00
parent 64c2a5563a
commit f671704a0b
2 changed files with 44 additions and 7 deletions

View File

@ -67,6 +67,7 @@
@import './blocks/chapitrage-thematique.css';
@import './blocks/content-page-header.css';
@import './blocks/timeline.css';
@import './blocks/warning.css';
/* ########### PAGE ############ */
@import './pages/demo-components.css';

View File

@ -1,16 +1,52 @@
.homegrade-blocks-timeline {
@apply max-w-screen-xl mx-auto;
@apply max-w-screen-xl mx-auto relative my-32;
&--has-step-icons {
&:before {
@apply rounded-xl bg-secondary
opacity-10
absolute
top-0
h-full;
z-index: -1;
content: '';
top: 0;
left: calc(33% + 56px);
width: 26px;
}
}
.homegrade-blocks-timeline-step {
@apply grid grid-cols-3 gap-12 py-6;
&__cover {
@apply max-w-md;
/* max-width: 250px; */
display: flex;
justify-content: center;
align-items: center;
@apply max-w-md h-auto;
img {
@apply pb-3;
}
.description,
.caption {
@apply m-0 p-0;
}
.caption {
@apply font-semibold text-primary text-sm;
}
}
&__icon {
@apply w-24 h-24 shrink-0 bg-white shadowed p-4 rounded-3xl;
img {
@apply max-w-full max-h-full mx-auto;
}
}
&__content {
@apply col-span-2;
@apply col-span-2 flex gap-8;
&--has-step-icon {
&:before {
content: '';
height: 100%;
width: 2px;
background: red;
}
}
}
&__title {