2023-06-03 15:56:14 +02:00
|
|
|
.timeline-element {
|
|
|
|
@apply relative flex flex-col md:flex-row justify-between;
|
|
|
|
|
|
|
|
// Place point in center line
|
|
|
|
&:before {
|
2023-06-04 18:23:39 +02:00
|
|
|
@apply content-[""] w-6 h-6 rounded-[50%] absolute top-5 left-0 md:left-1/2 -ml-2 z-50;
|
2023-06-04 18:44:29 +02:00
|
|
|
@apply bg-primary/10 dark:bg-dark_primary/10;
|
|
|
|
@apply shadow-md shadow-primary/10 dark:shadow-dark_primary/10;
|
2023-06-03 15:56:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
|
|
|
@apply md:flex-row-reverse;
|
|
|
|
|
|
|
|
.timeline-element__category {
|
|
|
|
@apply md:flex-row-reverse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-element__info, .timeline-element__category {
|
|
|
|
@apply relative w-4/5 md:w-2/5 left-[10%] md:left-0;
|
2023-06-04 18:44:29 +02:00
|
|
|
@apply text-on_surface dark:text-dark_on_surface;
|
2023-06-03 15:56:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-element__category {
|
|
|
|
@apply top-5 flex md:justify-end mb-12;
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-element__info {
|
|
|
|
& > details {
|
2023-06-04 18:23:39 +02:00
|
|
|
@apply mb-12 rounded-xl overflow-hidden relative;
|
2023-06-04 18:44:29 +02:00
|
|
|
@apply bg-primary/10 dark:bg-dark_primary/10;
|
|
|
|
@apply shadow-md shadow-primary/10 dark:shadow-dark_primary/10;
|
2023-06-03 15:56:14 +02:00
|
|
|
|
|
|
|
& > summary, & > div {
|
|
|
|
@apply p-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > summary {
|
2023-06-04 16:28:00 +02:00
|
|
|
@apply block select-none cursor-pointer outline-none p-5 font-semibold;
|
|
|
|
|
|
|
|
// BEGIN TRANSITION
|
|
|
|
@apply mb-0;
|
2023-06-03 15:56:14 +02:00
|
|
|
transition: all 600ms cubic-bezier(0.2, 1, 0.3, 1);
|
2023-06-04 16:28:00 +02:00
|
|
|
// END TRANSITION
|
2023-06-03 15:56:14 +02:00
|
|
|
|
|
|
|
&:hover {
|
2023-06-04 18:44:29 +02:00
|
|
|
@apply bg-primary/20 dark:bg-dark_primary/20;
|
2023-06-03 15:56:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[open] {
|
|
|
|
& > summary {
|
2023-06-04 16:28:00 +02:00
|
|
|
@apply mb-5; // TRANSITION
|
2023-06-03 15:56:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|