Pseudo selectors

Pseudo selectors and psuedo classes, such as :hover, :focus, :first-child, and ::before, are all supported with normal css syntax. Since kremling css strings are raw css that is appended to the DOM, you can expect everything to work like normal.

Examples

Note that the ampersand is not necessary if you're using kremling-loader.

const css = `
& .foo:hover {}

& .foo::before {}
`

results matching ""

    No results matching ""