Skip to content

Commit

Permalink
create new "empty" variant
Browse files Browse the repository at this point in the history
this will generate classes like the following:

```css
.empty\:hidden:empty {
  display: none
}
```
  • Loading branch information
browner12 committed Jan 6, 2021
1 parent 46bdf40 commit d552e20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/substituteVariantsAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d552e20

Please sign in to comment.