Skip to content

Commit

Permalink
do not wrap user @responsive rules in an @layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Sep 4, 2020
1 parent b4b9dcf commit df439a6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/lib/substituteResponsiveAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,6 @@ export default function(config) {
})
})

// Find any `responsive` rules with no parent `layer` (these only come
// from the user's CSS, Tailwind never generates things this way itself)
// and wrap them with a default `layer` of `utilities`.
css.walkAtRules('responsive', responsiveAtRule => {
const [node] = responsiveAtRule.nodes
if (node.type === 'atrule' && node.name === 'layer') {
return
}
const nestedlayerAtRule = postcss.atRule({
name: 'layer',
params: 'utilities',
})
nestedlayerAtRule.prepend(responsiveAtRule.nodes)
responsiveAtRule.removeAll()
responsiveAtRule.prepend(nestedlayerAtRule)
})

const {
theme: { screens },
separator,
Expand Down

0 comments on commit df439a6

Please sign in to comment.