fix language error when both .en and .fr

This commit is contained in:
hugogogo
2026-11-19 11:10:01 +01:00
parent 71a21cc0f3
commit 51d7aa1d2f
+4 -2
View File
@@ -34,12 +34,14 @@
* SWITCH LANGUAGE
*/
/* the :not() guards keep elements having both classes
(class="fr en") always visible */
#language {
&:not(:checked) ~ * .en {
&:not(:checked) ~ * .en:not(.fr) {
display: none;
}
&:checked ~ * .fr {
&:checked ~ * .fr:not(.en) {
display: none;
}
}