I'm combining three classes on elements
base, base_green, base_blue
I'm using this to add hover effect only to base
class (without base_green
)
.base:not(.base_green):hover {
background-color: #E2E2E2;
}
How can I achive that with two classes?
meaning that, if element has base base_green
or base base_blue
, do not add hover effect on it
eg. something like this (doesn't work ofc)
.base:not(.base_green):not(.base_blue):hover {
background-color: #E2E2E2;
}
EDIT:
Thank you all for answers, my initial solution works fine
I had a typo in that concatenated sausage of :not
selectors in my css file
/facepalm
I'll leave question as it is, maybe someone finds it useful