Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements (#4624)

* Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements

* Rebuild fixtures
This commit is contained in:
Adam Wathan 2021-06-11 09:11:56 -04:00 • committed by GitHub
parent d6da12ff0c
commit cb2598ce33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 58 additions and 94 deletions

View file

@ -2,7 +2,7 @@ export default function () {
return function ({ config, addBase, addUtilities, variants }) {
if (config('mode') === 'jit') {
addBase({
'*': {
'*, ::before, ::after': {
'--tw-backdrop-blur': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-backdrop-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-backdrop-contrast': 'var(--tw-empty,/*!*/ /*!*/)',

View file

@ -2,7 +2,7 @@ import transformThemeValue from '../util/transformThemeValue'
let transformValue = transformThemeValue('boxShadow')
let shadowReset = {
'*': {
'*, ::before, ::after': {
'--tw-shadow': '0 0 #0000',
},
}

View file

@ -2,7 +2,7 @@ export default function () {
return function ({ config, addBase, addUtilities, variants }) {
if (config('mode') === 'jit') {
addBase({
'*': {
'*, ::before, ::after': {
'--tw-blur': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-contrast': 'var(--tw-empty,/*!*/ /*!*/)',

View file

@ -10,7 +10,7 @@ export default function () {
)
let ringReset = {
'*': {
'*, ::before, ::after': {
'--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
'--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),

View file

@ -2,7 +2,7 @@ export default function () {
return function ({ config, addBase, addUtilities, variants }) {
if (config('mode') === 'jit') {
addBase({
'*': {
'*, ::before, ::after': {
'--tw-translate-x': '0',
'--tw-translate-y': '0',
'--tw-rotate': '0',