loko/streetup/projects/static/projects/timeline.css
2026-07-22 14:48:40 +02:00

107 lines
2 KiB
CSS

.timeline {
display: flex;
align-items: flex-start; /* Aligner les cercles correctement */
overflow-x: auto;
padding: 20px;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
margin-right: 30px;
}
.step:last-child {
margin-right: 0;
padding-left: 3px;
padding-right: 3px;
}
/* Ligne entre les cercles */
.step::after {
content: "";
position: absolute;
width: 30px;
height: 5px;
background-color: #ccc;
top: 15px; /* Ajuste la position de la ligne */
left: 100%;
/* transform: translateX(15px); */
}
.step:last-child::after {
display: none;
}
/* Style des cercles */
.circle {
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
color: white;
background-color: #ccc;
}
.past .circle {
background-color: #ccc;
}
.current .circle {
background-color: #febf00;
}
.future {
display: none;
}
/* Cercle d'action supplémentaire */
.action {
background-color: #0d6efd !important;
cursor: pointer;
}
.action:hover {
background-color: #073c8b !important;
}
.action.to_be_corrected {
background-color: #fc4848 !important;
}
.action.to_be_corrected:hover {
background-color: #8b1d07 !important;
}
/* Labels uniquement sur le dernier élément et nextStep */
.steplabel {
font-size: 12px;
text-align: center;
max-width: 80px;
color: #333;
}
/* Spacer invisible pour aligner tous les cercles */
.spacer {
height: 17px; /* Compense la hauteur du label */
visibility: hidden;
}
/* Ligne en pointillé après le next step si ce n'est pas le dernier élément */
.next-step-dashed::after {
content: "";
position: absolute;
width: 30px;
height: 5px;
background: repeating-linear-gradient(90deg,#ccc 0 8px,#fff0 0 11px); /*5px red then 2px transparent -> repeat this!*/
top: 15px;
left: 100%;
display: block !important; /* Force l'affichage */
}