This repository was archived by the owner on Apr 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const selectorParser = require('postcss-selector-parser')
14
14
const resolveConfig = require ( 'tailwindcss/resolveConfig' )
15
15
const escape = require ( 'tailwindcss/lib/util/escapeClassName' ) . default
16
16
const evaluateTailwindFunctions = require ( 'tailwindcss/lib/lib/evaluateTailwindFunctions' ) . default
17
+ const substituteScreenAtRules = require ( 'tailwindcss/lib/lib/substituteScreenAtRules' ) . default
17
18
const parseObjectStyles = require ( 'tailwindcss/lib/util/parseObjectStyles' ) . default
18
19
const transformThemeValue = require ( 'tailwindcss/lib/util/transformThemeValue' ) . default
19
20
const prefixSelector = require ( 'tailwindcss/lib/util/prefixSelector' ) . default
@@ -1153,6 +1154,7 @@ module.exports = (pluginOptions = {}) => {
1153
1154
}
1154
1155
} ,
1155
1156
evaluateTailwindFunctions ( context . tailwindConfig ) ,
1157
+ substituteScreenAtRules ( context . tailwindConfig ) ,
1156
1158
] ) . process ( root , { from : undefined } )
1157
1159
} ,
1158
1160
env . DEBUG &&
Original file line number Diff line number Diff line change 4
4
'Segoe UI Symbol' , 'Noto Color Emoji' ;
5
5
color : # 3b82f6 ;
6
6
}
7
+ @media (min-width : 1024px ) {
8
+ .screen-test {
9
+ color : purple;
10
+ }
11
+ }
7
12
.apply-test {
8
13
margin-top : 1.5rem ;
9
14
--tw-bg-opacity : 1 ;
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ test('it works', () => {
50
50
font-family: theme('fontFamily.sans');
51
51
color: theme('colors.blue.500');
52
52
}
53
+ @screen lg {
54
+ .screen-test {
55
+ color: purple;
56
+ }
57
+ }
53
58
.apply-test {
54
59
@apply mt-6 bg-pink-500 hover:font-bold focus:hover:font-bold sm:bg-green-500 sm:focus:even:bg-pink-200;
55
60
}
You can’t perform that action at this time.
0 commit comments