@@ -105,8 +105,8 @@ postcssCustomMedia({
105105
106106Multiple sources can be passed into this option, and they will be parsed in the
107107order they are received. JavaScript files, JSON files, functions, and objects
108- will need to namespace custom media using the ` customProperties ` or
109- ` custom-properties ` key.
108+ will need to namespace custom media using the ` customMedia ` or
109+ ` custom-media ` key.
110110
111111``` js
112112postcssCustomMedia ({
@@ -118,9 +118,9 @@ postcssCustomMedia({
118118 customMedia: { ' --small-viewport' : ' (max-width: 30em)' }
119119 },
120120 () => {
121- const customProperties = { ' --small-viewport' : ' (max-width: 30em)' };
121+ const customMedia = { ' --small-viewport' : ' (max-width: 30em)' };
122122
123- return { customProperties };
123+ return { customMedia };
124124 }
125125 ]
126126});
@@ -140,8 +140,8 @@ postcssCustomMedia({
140140
141141Multiple destinations can be passed into this option, and they will be parsed
142142in the order they are received. JavaScript files, JSON files, and objects will
143- need to namespace custom media using the ` customProperties ` or
144- ` custom-properties ` key.
143+ need to namespace custom media using the ` customMedia ` or
144+ ` custom-media ` key.
145145
146146``` js
147147const cachedObject = { customMedia: {} };
@@ -153,8 +153,8 @@ postcssCustomMedia({
153153 ' and/then/this.mjs' , // export const customMedia = { '--small-viewport': '(max-width: 30em)' } }
154154 ' and/then/that.json' , // { "custom-media": { "--small-viewport": "(max-width: 30em)" } }
155155 cachedObject,
156- customProperties => {
157- customProperties // { '--small-viewport': '(max-width: 30em)' }
156+ customMedia => {
157+ customMedia // { '--small-viewport': '(max-width: 30em)' }
158158 }
159159 ]
160160});
0 commit comments