Improve before and after variants (#5820)

* remove unused `withRule`

* ensure all ::before and ::after elements have content

* update --tw-content for the content plugin

* simplify `before` and `after` variants

* update tests, to reflect changes

* make new `format` and `wrap` API's private for now

* allow returning a format string from `addVariant` callback

* add `content: var(--tw-content)` for before/after variants

* update tests to add `content: var(--tw-content)`

* update changelog
This commit is contained in:
Robin Malfait 2021-10-18 18:11:34 +02:00 • committed by GitHub
parent f12c0e1fa5
commit 36c880abab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 69 additions and 63 deletions

View file

@ -968,5 +968,6 @@
will-change: transform;
}
.content-none {
content: none;
--tw-content: none;
content: var(--tw-content);
}