Skip to content

Commit 6a96412

Browse files
committed
do not wrap user @Responsive rules in an @layer
1 parent b307d4a commit 6a96412

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/lib/substituteResponsiveAtRules.js

-17
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@ export default function(config) {
3232
})
3333
})
3434

35-
// Find any `responsive` rules with no parent `layer` (these only come
36-
// from the user's CSS, Tailwind never generates things this way itself)
37-
// and wrap them with a default `layer` of `utilities`.
38-
css.walkAtRules('responsive', responsiveAtRule => {
39-
const [node] = responsiveAtRule.nodes
40-
if (node.type === 'atrule' && node.name === 'layer') {
41-
return
42-
}
43-
const nestedlayerAtRule = postcss.atRule({
44-
name: 'layer',
45-
params: 'utilities',
46-
})
47-
nestedlayerAtRule.prepend(responsiveAtRule.nodes)
48-
responsiveAtRule.removeAll()
49-
responsiveAtRule.prepend(nestedlayerAtRule)
50-
})
51-
5235
const {
5336
theme: { screens },
5437
separator,

0 commit comments

Comments
 (0)