checkbox clickable et modification des textes

This commit is contained in:
Pierre Marx
2025-09-04 14:34:54 -04:00
parent 5bfdb286db
commit ec0ea73e35
3 changed files with 148 additions and 116 deletions

View File

@@ -408,8 +408,11 @@ body {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
height: 18px;
width: 18px;
left: 0;
top: 1px;
z-index: 1;
}
/* Checkbox personnalisée */
@@ -427,14 +430,21 @@ body {
flex-shrink: 0;
}
/* Checkbox cochée */
.checkbox-label input[type="checkbox"]:checked ~ ::before {
/* Checkbox cochée - fond violet */
.checkbox-label input[type="checkbox"]:checked + span::before {
content: '';
position: absolute;
left: 0;
top: 1px;
width: 18px;
height: 18px;
background: #667eea;
border-color: #667eea;
border: 2px solid #667eea;
border-radius: 4px;
}
/* Icône de check */
.checkbox-label input[type="checkbox"]:checked ~ ::after {
.checkbox-label input[type="checkbox"]:checked + span::after {
content: '';
position: absolute;
left: 6px;