div.timeline-framework {
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: max-content;
gap: 5px;
position: relative;
}
div.timeline-trunk {
content: '';
position: absolute;
top: 0;
bottom:0;
left: 50%;
width: 5px;
transform: translateX(-50%);
background-color: black;
}
div.timeline-branch {
position: relative;
display: flex;
justify-content: start;
justify-items: end;
align-items: center;
}
div.timeline-line {
position: relative;
display:flex;
flex-wrap:wrap;
background-color: black;
height: 2px;
min-width:100px;
}
div.timeline-text {
position: relative;
background-color: white;
border: 2px solid black;
border-radius: 5px;
max-width: 500px;
padding: 5%;
}
span.timeline-id {
position: relative;
margin-left: 10%;
margin-top: 2px;
font-size:small;
}
div.timeline-emptycell {
height: 3em;
}
@media only screen and (min-width: 768px) {
div.timeline-mobile-emptycell {
display: none;
}
div.timeline-branch:nth-child(4n+2) {
flex-direction: row-reverse;
justify-content: end;
}
div.timeline-branch:nth-child(4n) {
top: 3em;
}
}
@media only screen and (max-width: 768px) {
div.timeline-framework {
display: flex;
flex-wrap: wrap;
}
div.timeline-line {
min-width: 50px;
}
div.timeline-branch {
flex-direction: row !important;
}
div.timeline-trunk {
left: 0%;
}
}