fix language error when both .en and .fr
This commit is contained in:
@@ -34,12 +34,14 @@
|
|||||||
* SWITCH LANGUAGE
|
* SWITCH LANGUAGE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* the :not() guards keep elements having both classes
|
||||||
|
(class="fr en") always visible */
|
||||||
#language {
|
#language {
|
||||||
&:not(:checked) ~ * .en {
|
&:not(:checked) ~ * .en:not(.fr) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:checked ~ * .fr {
|
&:checked ~ * .fr:not(.en) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user