tailwindcss-pseudo-elements
Advanced tools
Comparing version 1.0.0 to 1.1.0
const pseudoElements = require('./pseudo-elements') | ||
module.exports = function({addVariant}) { | ||
module.exports = function({addVariant, e}) { | ||
const escape = e || x => x | ||
pseudoElements.forEach(pseudo => { | ||
addVariant(pseudo, ({modifySelectors, separator}) => { | ||
modifySelectors(({className}) => { | ||
return `.${pseudo}${separator}${className}::${pseudo}` | ||
return `.${escape(`${pseudo}${separator}${className}`)}::${pseudo}}` | ||
}) | ||
@@ -9,0 +10,0 @@ }) |
{ | ||
"name": "tailwindcss-pseudo-elements", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "TailwindCSS Plugin that adds variants of pseudo elements.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3288
6
28
1