Modern CSS

:not()

:not() allows selective exclusions while keeping selectors readable.

CSS code example
.button:not(.is_disabled) {
    cursor: pointer;
}

Guidance

  • keep exclusions simple
  • avoid giant exclusion chains
  • prefer clarity over cleverness