vendredi 1 mai 2015

Can conditional CSS style be based on other CSS style?

My checkboxes change label color when checked. It's defined in my stylesheet like this:

:checked + label {color: white;}

However, some of my checkboxes have an outline style.

outline = "1px solid"

I want these outlined checkboxes to change to the color blue instead of white.

:checked (AND CHECKBOX HAS OUTLINE) + label {color: blue;}

Is there a way to do this in my stylesheet?




Aucun commentaire:

Enregistrer un commentaire