baselinewidely| Class | CSS |
|---|---|
| gac:auto | grid-auto-columns: auto; |
| gac:max | grid-auto-columns: max-content; |
| gac:min | grid-auto-columns: min-content; |
Variants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:gac:max.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:gac:max | From 32rem up. |
| @sm:gac:max | From 40rem up. |
| @md:gac:max | From 48rem up. |
| @lg:gac:max | From 64rem up. |
| @xl:gac:max | From 80rem up. |
| @xxl:gac:max | From 96rem up. |
Containers
Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.
| @c:xs:gac:max | Container from 32rem up. |
| @c:sm:gac:max | Container from 40rem up. |
| @c:md:gac:max | Container from 48rem up. |
| @c:lg:gac:max | Container from 64rem up. |
| @c:xl:gac:max | Container from 80rem up. |
| @c:xxl:gac:max | Container from 96rem up. |
Media
Apply a class when the device or the page matches a condition, or on the first frame an element renders.
| @pc:gac:max | On a touch screen. |
| @prm:gac:max | With reduced motion on. |
| @st:gac:max | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:gac:max | On :hover. |
| f:gac:max | On :focus. |
| fv:gac:max | On :focus-visible. |
| a:gac:max | On :active. |
| d:gac:max | On :disabled. |
| fc:gac:max | On :first-child. |
| c:gac:max | On :checked. |
| e:gac:max | On :empty. |
| fw:gac:max | On :focus-within. |
| i:gac:max | On :invalid. |
| in:gac:max | On :indeterminate. |
| lc:gac:max | On :last-child. |
| nc:gac:max | On :nth-child. |
| r:gac:max | On :required. |
| ro:gac:max | On :read-only. |
| v:gac:max | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::gac:max | On ::after. |
| b::gac:max | On ::before. |
| p::gac:max | On ::placeholder. |
| s::gac:max | On ::selection. |