File tree Expand file tree Collapse file tree 6 files changed +22
-2
lines changed Expand file tree Collapse file tree 6 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 2
2
display : grid;
3
3
gap : 16px ;
4
4
5
- @media only screen and ( min-width : 891 px ) {
5
+ @media (-- min-m ) {
6
6
grid-template :
7
7
"menu content" auto /
8
8
200px auto;
Original file line number Diff line number Diff line change 151
151
border-radius : 4px ;
152
152
}
153
153
154
- @media (min-width : 640 px ) {
154
+ @media (-- min-s ) {
155
155
.new-token-form {
156
156
display : grid;
157
157
grid-template-columns : 1fr auto;
Original file line number Diff line number Diff line change
1
+ /* see https://github.com/postcss/postcss-custom-media */
2
+
3
+ /* breakpoints inspired by https://tailwindcss.com/docs/responsive-design */
4
+ @custom-media --min-s (min-width : 640px );
5
+ @custom-media --min-m (min-width : 768px );
6
+ @custom-media --min-l (min-width : 1024px );
7
+ @custom-media --min-xl (min-width : 1280px );
8
+ @custom-media --min-xxl (min-width : 1536px );
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const EmberApp = require ( 'ember-cli/lib/broccoli/ember-app' ) ;
4
+ const postcssCustomMedia = require ( 'postcss-custom-media' ) ;
4
5
5
6
const { USE_EMBROIDER } = process . env ;
6
7
@@ -29,6 +30,11 @@ module.exports = function (defaults) {
29
30
extension : 'module.css' ,
30
31
plugins : {
31
32
before : [ require ( 'postcss-nested' ) ] ,
33
+ after : [
34
+ postcssCustomMedia ( {
35
+ importFrom : `${ __dirname } /app/styles/breakpoints.css` ,
36
+ } ) ,
37
+ ] ,
32
38
} ,
33
39
} ,
34
40
fingerprint : {
Original file line number Diff line number Diff line change 122
122
"match-json" : " 1.3.3" ,
123
123
"normalize.css" : " 8.0.1" ,
124
124
"nyc" : " 15.1.0" ,
125
+ "postcss-custom-media" : " 8.0.0" ,
125
126
"postcss-nested" : " 5.0.6" ,
126
127
"prettier" : " 2.5.1" ,
127
128
"qunit" : " 2.17.2" ,
Original file line number Diff line number Diff line change @@ -11665,6 +11665,11 @@ postcss-color-rebeccapurple@^4.0.1:
11665
11665
postcss "^7.0.2"
11666
11666
postcss-values-parser "^2.0.0"
11667
11667
11668
+ postcss-custom-media@8.0.0:
11669
+ version "8.0.0"
11670
+ resolved "https://registry.yarnpkg.com/postcss-custom-media/-/postcss-custom-media-8.0.0.tgz#1be6aff8be7dc9bf1fe014bde3b71b92bb4552f1"
11671
+ integrity sha512-FvO2GzMUaTN0t1fBULDeIvxr5IvbDXcIatt6pnJghc736nqNgsGao5NT+5+WVLAQiTt6Cb3YUms0jiPaXhL//g==
11672
+
11668
11673
postcss-custom-media@^7.0.8:
11669
11674
version "7.0.8"
11670
11675
resolved "https://registry.yarnpkg.com/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz#fffd13ffeffad73621be5f387076a28b00294e0c"
You can’t perform that action at this time.
0 commit comments