Pseudo Selectors

Hacss supports the following pseudo selectors.

Pseudo-elements

Note: Pseudo-elements cannot be applied to context.

Pseudo-classes

:intersection() Pseudo-class

The :intersection() pseudo-class allows styles to be applied conditionally when some other class is added to the same element.

For example:

<span class=":intersection(err){color:red;}">Phone Number</span><br>
<span class="err :intersection(err){color:red;}">Phone Number</span>

Phone Number
Phone Number

Hacss
Overview Getting Started Guides Basement GitHub