You can not. You will have to manually reset each of them. If you need to switch between the main differences, for example, when the user clicks on an element, you can remove them from the element itself and put them in a class. So:
#search-box {
color:blue;
}
Becomes as follows:
#search-box {
color:red;
}
#search-box.focused {
color:blue;
}
Now that you need to make radical changes to the display of an element, add or remove a class .focused.
source
share