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?
PS: The outline was applied to specific checkboxes with a javascript function.
if (n !== -1) {
document.getElementById(id).style.outline = "1px solid";}