Is there a way to have several selectors associated with a pseudo-class?
In other words, I want to make it so if an anchor, image, or button are hovered or focused on, they'll have a special border around them.
I tried this (shot in the dark):
(a,button,img):hover, (a,button,img):focus { border: 2px dashed black; } But Webstorm doesn't like it, and it doesn't activate.
I know that this works:
a:hover, a:focus { border: 2px dashed black; } But I'd like to be able to have it to apply to other selectors as well, without needing to repeat myself many times to apply it to all of them.
*(which I think is not quite what you want). Otherwise, pre-processors are your best bet.