File tree Expand file tree Collapse file tree 5 files changed +77
-1
lines changed Expand file tree Collapse file tree 5 files changed +77
-1
lines changed Original file line number Diff line number Diff line change
1
+ : exports {
2
+ --small : --x__breakpoints__small ;
3
+ --medium : --x__breakpoints__medium ;
4
+ --large : --x__breakpoints__large ;
5
+ }
6
+
7
+ @custom-media --x__breakpoints__small (max-width : 30em );
8
+ @custom-media --x__breakpoints__medium (max-width : 60em );
9
+ @custom-media --x__breakpoints__large (max-width : 90em );
Original file line number Diff line number Diff line change
1
+ @custom-media --x__source__small (max-width : 30em );
2
+ @custom-media --x__source__medium (max-width : 60em );
3
+ @custom-media --x__source__large (max-width : 90em );
4
+
5
+ ._media-queries_source__red {
6
+ color : red;
7
+ }
8
+
9
+ @media (max-width : 30em ) {
10
+ ._media-queries_source__red {
11
+ color : maroon;
12
+ }
13
+ }
14
+
15
+ @media (max-width : 60em ) {
16
+ ._media-queries_source__red {
17
+ color : darkmagenta;
18
+ }
19
+ }
20
+
21
+ @media (max-width : 90em ) {
22
+ ._media-queries_source__red {
23
+ color : fuchsia;
24
+ }
25
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "--small" : " --x__source__small" ,
3
+ "--medium" : " --x__source__medium" ,
4
+ "--large" : " --x__source__large"
5
+ }
Original file line number Diff line number Diff line change
1
+ : imports ("./breakpoints.css" ) {
2
+ --i__breakpoints__small : --small ;
3
+ --i__breakpoints__medium : --medium ;
4
+ --i__breakpoints__large : --large ;
5
+ }
6
+
7
+ : exports {
8
+ --small : --x__source__small ;
9
+ --medium : --x__source__medium ;
10
+ --large : --x__source__large ;
11
+ }
12
+
13
+ @custom-media --x__source__small - - i__breakpoints__small;
14
+ @custom-media --x__source__medium - - i__breakpoints__medium;
15
+ @custom-media --x__source__large - - i__breakpoints__large;
16
+
17
+ .red {
18
+ color : red;
19
+ }
20
+
21
+ @media (--x__source__small) {
22
+ .red {
23
+ color : maroon;
24
+ }
25
+ }
26
+
27
+ @media (--x__source__medium) {
28
+ .red {
29
+ color : darkmagenta;
30
+ }
31
+ }
32
+
33
+ @media (--x__source__large) {
34
+ .red {
35
+ color : fuchsia;
36
+ }
37
+ }
Original file line number Diff line number Diff line change 1
1
@custom-media --small from "./breakpoints.css" ;
2
2
@custom-media --medium from "./breakpoints.css" ;
3
- @custom-media --large from "./breakpoints.css" ;
3
+ @custom-media --large ( min-width : 90 em ) ;
4
4
5
5
.red {
6
6
color : red;
You can’t perform that action at this time.
0 commit comments