CssRule
A class which can be used to create type-safe CSS rules that can be applied to a StyleScope instance.
A CSS rule can consist of an optional media query, zero or more pseudo-classes, and an optional trailing pseudo-element.
For example, this class enables:
CssStyle {
hover { ... } // Creates CssRule(this, ":hover") under the hood
(hover + after) { ... } // Creates CssRule(this, ":hover::after)
(Breakpoint.MD + hover) { ... } // Creates ":hover" style within a medium-sized media query
}It's not expected for an end user to use this class directly. It's provided for libraries that want to provide additional extension properties to the StyleScope class (like hover and after)
Inheritors
Types
A composite CSS rule that is a chain of subparts which is terminated - it cannot grow any further but can only be invoked at this point.
A composite CSS rule that is a chain of subparts and still open to accepting more pseudo-classes and/or a pseudo-element.
A CSS rule that represents an attribute selector.
A CSS rule that represents a pseudo-class selector.
A CSS rule that represents a pseudo-element selector.