create new "empty" variant

this will generate classes like the following:

```css
.empty\:hidden:empty {
  display: none
}
```
This commit is contained in:
Andrew 2021-01-06 12:19:21 -06:00
parent 46bdf401f4
commit d552e20096

View File

@ -133,6 +133,7 @@ const defaultVariantGenerators = (config) => ({
last: generatePseudoClassVariant('last-child', 'last'),
odd: generatePseudoClassVariant('nth-child(odd)', 'odd'),
even: generatePseudoClassVariant('nth-child(even)', 'even'),
empty: generatePseudoClassVariant('empty'),
})
function prependStackableVariants(atRule, variants, stackableVariants) {