« Modèle:Pays test » : différence entre les versions
Apparence
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
/* Hide radio buttons */ | |||
.infobox-radio { | |||
display: none; | |||
} | |||
/* Style labels as buttons */ | |||
.infobox-label { | |||
cursor: pointer; | |||
padding: 5px 15px; | |||
border: 1px solid #ccc; | |||
background: #eee; | |||
margin-right: 5px; | |||
display: inline-block; | |||
} | |||
/* Style the container */ | |||
.infobox-container { | |||
border: 1px solid #ccc; | |||
padding: 10px; | |||
margin-top: 10px; | |||
background: #f9f9f9; | |||
text-align: center; | |||
} | |||
/* Hide both panels by default */ | |||
.infobox-panel { | |||
display: none; | |||
} | |||
/* Show the selected panel */ | |||
#panel1:checked ~ .infobox-container #content1, | |||
#panel2:checked ~ .infobox-container #content2 { | |||
display: block; | |||
} | |||
Version du 2 avril 2025 à 10:52
/* Hide radio buttons */ .infobox-radio {
display: none;
}
/* Style labels as buttons */ .infobox-label {
cursor: pointer; padding: 5px 15px; border: 1px solid #ccc; background: #eee; margin-right: 5px; display: inline-block;
}
/* Style the container */ .infobox-container {
border: 1px solid #ccc; padding: 10px; margin-top: 10px; background: #f9f9f9; text-align: center;
}
/* Hide both panels by default */ .infobox-panel {
display: none;
}
/* Show the selected panel */
- panel1:checked ~ .infobox-container #content1,
- panel2:checked ~ .infobox-container #content2 {
display: block;
}