We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efb473 commit c488e5cCopy full SHA for c488e5c
1 file changed
index.js
@@ -113,14 +113,11 @@ module.exports = (opts = {}) => {
113
return {
114
AtRuleExit: {
115
media(atrule) {
116
- if (
117
- !atrule.params.includes('dark') &&
118
- !atrule.params.includes('light')
119
- ) {
+ let params = atrule.params
+ if (!params.includes('dark') && !params.includes('light')) {
120
return
121
}
122
123
- let params = atrule.params
124
let fixedSelector = params.includes('dark') ? dark : light
125
let nodeSelector = `:not(${params.includes('dark') ? light : dark})`
126
0 commit comments