File tree 5 files changed +44
-5
lines changed
plugins/postcss-custom-media
5 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ module.exports = {
92
92
expect : 'import.expect.css' ,
93
93
result : 'import.result.css'
94
94
} ,
95
+ 'import:empty' : {
96
+ message : 'supports { importFrom: {} } usage' ,
97
+ options : {
98
+ importFrom : { }
99
+ }
100
+ } ,
95
101
'basic:export' : {
96
102
message : 'supports { exportTo: { customMedia: { ... } } } usage' ,
97
103
options : {
Original file line number Diff line number Diff line change 1
1
# Changes to PostCSS Custom Media
2
2
3
+ ### 7.0.3 (September 20, 2018)
4
+
5
+ - Fixed: Do not break on an empty ` importFrom ` object
6
+
3
7
### 7.0.2 (September 15, 2018)
4
8
5
9
- Fixed: An issue with re-assigning params as a non-string
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default function importCustomMediaFromSources(sources) {
78
78
const from = String ( opts . from || '' ) ;
79
79
80
80
// type of file being read from
81
- const type = ( opts . type || path . extname ( opts . from ) . slice ( 1 ) ) . toLowerCase ( ) ;
81
+ const type = ( opts . type || path . extname ( from ) . slice ( 1 ) ) . toLowerCase ( ) ;
82
82
83
83
return { type, from } ;
84
84
} ) . reduce ( async ( customMedia , source ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-custom-media" ,
3
- "version" : " 7.0.2 " ,
3
+ "version" : " 7.0.3 " ,
4
4
"description" : " Use Custom Media Queries in CSS" ,
5
5
"author" : " Jonathan Neal <jonathantneal@hotmail.com>" ,
6
6
"contributors" : [
30
30
"postcss" : " ^7.0.2"
31
31
},
32
32
"devDependencies" : {
33
- "@babel/core" : " ^7.0.1 " ,
33
+ "@babel/core" : " ^7.1.0 " ,
34
34
"@babel/plugin-syntax-dynamic-import" : " ^7.0.0" ,
35
- "@babel/preset-env" : " ^7.0 .0" ,
35
+ "@babel/preset-env" : " ^7.1 .0" ,
36
36
"babel-eslint" : " ^9.0.0" ,
37
37
"eslint" : " ^5.6.0" ,
38
38
"eslint-config-dev" : " ^2.0.0" ,
39
39
"postcss-tape" : " ^2.2.0" ,
40
40
"pre-commit" : " ^1.2.2" ,
41
- "rollup" : " ^0.65.2 " ,
41
+ "rollup" : " ^0.66.1 " ,
42
42
"rollup-plugin-babel" : " ^4.0.3"
43
43
},
44
44
"eslintConfig" : {
Original file line number Diff line number Diff line change
1
+ @media (--mq-a) {
2
+ body {
3
+ order : 1 ;
4
+ }
5
+ }
6
+
7
+ @media (--mq-a), (--mq-a) {
8
+ body {
9
+ order : 1 ;
10
+ }
11
+ }
12
+
13
+ @media not all and (--mq-a) {
14
+ body {
15
+ order : 2 ;
16
+ }
17
+ }
18
+
19
+ @media (--not-mq-a) {
20
+ body {
21
+ order : 1 ;
22
+ }
23
+ }
24
+
25
+ @media not all and (--not-mq-a) {
26
+ body {
27
+ order : 2 ;
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments