baselinewidelyThe same values work with gce & gcs, as in gcs:5.
Variants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:gc-s:4.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:gc-s:4 | From 32rem up. |
| @sm:gc-s:4 | From 40rem up. |
| @md:gc-s:4 | From 48rem up. |
| @lg:gc-s:4 | From 64rem up. |
| @xl:gc-s:4 | From 80rem up. |
| @xxl:gc-s:4 | 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:gc-s:4 | Container from 32rem up. |
| @c:sm:gc-s:4 | Container from 40rem up. |
| @c:md:gc-s:4 | Container from 48rem up. |
| @c:lg:gc-s:4 | Container from 64rem up. |
| @c:xl:gc-s:4 | Container from 80rem up. |
| @c:xxl:gc-s:4 | 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:gc-s:4 | On a touch screen. |
| @prm:gc-s:4 | With reduced motion on. |
| @st:gc-s:4 | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:gc-s:4 | On :hover. |
| f:gc-s:4 | On :focus. |
| fv:gc-s:4 | On :focus-visible. |
| a:gc-s:4 | On :active. |
| d:gc-s:4 | On :disabled. |
| fc:gc-s:4 | On :first-child. |
| c:gc-s:4 | On :checked. |
| e:gc-s:4 | On :empty. |
| fw:gc-s:4 | On :focus-within. |
| i:gc-s:4 | On :invalid. |
| in:gc-s:4 | On :indeterminate. |
| lc:gc-s:4 | On :last-child. |
| nc:gc-s:4 | On :nth-child. |
| r:gc-s:4 | On :required. |
| ro:gc-s:4 | On :read-only. |
| v:gc-s:4 | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::gc-s:4 | On ::after. |
| b::gc-s:4 | On ::before. |
| p::gc-s:4 | On ::placeholder. |
| s::gc-s:4 | On ::selection. |