Modern CSS
:not()
:not() allows selective exclusions while keeping selectors readable.
.button:not(.is_disabled) {
cursor: pointer;
} Guidance
- keep exclusions simple
- avoid giant exclusion chains
- prefer clarity over cleverness
Modern CSS
:not() allows selective exclusions while keeping selectors readable.
.button:not(.is_disabled) {
cursor: pointer;
}