| Class | Description | |
|---|---|---|
flexSets the flex shorthand via --flex. E.g. 1 1 auto. CSS Rules Usage
The .flex
class is flagged as a value-driven selector.
The variable --flex is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .flex | Sets the flex shorthand via --flex. E.g. 1 1 auto. |
flex-1Sets flex: 1 1 0%. Item grows and shrinks equally. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .flex-1 | Sets flex: 1 1 0%. Item grows and shrinks equally. |
flex-autoSets flex: 1 1 auto. Grows and shrinks based on content size. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .flex-auto | Sets flex: 1 1 auto. Grows and shrinks based on content size. |
flex-initialSets flex to 0 1 auto, preventing the element from growing but allowing it to shrink. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .flex-initial | Sets flex to 0 1 auto, preventing the element from growing but allowing it to shrink. |
flex-noneSets flex: none. Item will not grow or shrink. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .flex-none | Sets flex: none. Item will not grow or shrink. |