How to exclude particular class name in CSS selector?
The problem with your code is that you are selecting the .remode_hover that is a descendant of .remode_selected. So the first part of getting your code to work correctly is by removing that space .reMode_selected.reMode_hover:hover Then, in order to get the style to not work, you have to override the style set by the :hover.
https://stackoverflow.com/questions/16201948/how-to-exclude-particular-class-name-in-css-selector