ajout d'un decompte jusqu'a la date de l'evennement

This commit is contained in:
serveur
2026-10-17 23:32:39 +02:00
parent 453652af0f
commit 6fe5e4270c
5 changed files with 304 additions and 16 deletions
+62 -4
View File
@@ -54,15 +54,21 @@ body {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
/* Ligne du titre : titre à gauche, récapitulatif / statut à droite, puce de date en dessous (téléphone) ou à côté du titre (écran large) */
.topbar-row {
display: flex;
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 40px;
column-gap: 12px;
row-gap: 6px;
}
.topbar-row > h1 { grid-column: 1; grid-row: 1; }
.topbar-row > :not(h1):not(.edition) { grid-column: 2; grid-row: 1; }
.topbar h1 {
display: flex;
align-items: center;
min-height: 40px;
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.15rem;
@@ -92,6 +98,58 @@ body {
.menu a { flex: 0 0 auto; padding: 0 22px; }
}
/* Décompte de la prochaine édition (créé par assets/edition.js) */
.edition {
position: relative;
grid-column: 1 / -1;
grid-row: 2;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 2px 6px;
min-height: 36px;
margin-bottom: 6px;
padding: 5px 40px 5px 12px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 12px;
background: rgba(255, 255, 255, 0.14);
color: #fff;
font-size: 0.82rem;
line-height: 1.25;
cursor: pointer;
}
.edition-label { opacity: 0.8; }
.edition-texte { font-weight: 700; }
.edition[data-etat="vide"] .edition-texte { font-weight: 400; font-style: italic; opacity: 0.9; }
.edition[data-etat="jour"] { background: #fff; border-color: #fff; color: var(--accent); }
.edition[data-etat="jour"] .edition-texte { font-size: 1.05rem; }
.edition:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
/* Le vrai champ date recouvre la puce, invisible : on touche la puce, le calendrier s'ouvre */
.edition input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.edition-clear {
position: absolute;
z-index: 2;
right: 2px;
top: 50%;
transform: translateY(-50%);
width: 36px;
height: 36px;
border: none;
border-radius: 10px;
background: transparent;
color: inherit;
font-size: 0.95rem;
cursor: pointer;
}
.edition-clear:active { background: rgba(0, 0, 0, 0.12); }
@media (min-width: 600px) {
.topbar-row { grid-template-columns: auto 1fr auto; }
.topbar-row > :not(h1):not(.edition) { grid-column: 3; }
.edition { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 0; }
}
/* ---------- 3. Composants communs ---------- */
.card {