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