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.
@tailwind screens
1 parent efc0488 commit 3a976a6Copy full SHA for 3a976a6
src/lib/substituteResponsiveAtRules.js
@@ -34,23 +34,23 @@ export default function(config) {
34
})
35
36
const hasScreenRules = finalRules.some(i => i.nodes.length !== 0)
37
+
38
if (!hasScreenRules) {
39
return
40
}
41
- const includesScreensExplicitly = css.some(
42
- rule => rule.type === 'atrule' && rule.params === 'screens'
43
- )
44
-
45
- if (!includesScreensExplicitly) {
46
- css.append(finalRules)
47
- return
48
- }
+ let includesScreensExplicitly = false
49
50
css.walkAtRules('tailwind', atRule => {
51
if (atRule.params === 'screens') {
52
atRule.replaceWith(finalRules)
+ includesScreensExplicitly = true
53
54
+ if (!includesScreensExplicitly) {
+ css.append(finalRules)
+ return
+ }
55
56
0 commit comments