File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
template/src/components/example Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const postcssApplyRuleSets = {
55
55
font-size: var(--h1-mobile-font-size);
56
56
line-height: var(--h1-mobile-line-height);
57
57
58
- @media (min-width: var(-- tablet-min-width) ) {
58
+ @media (-- tablet-min-width) {
59
59
font-size: var(--h1-font-size);
60
60
line-height: var(--h1-line-height);
61
61
}
@@ -74,6 +74,11 @@ const postcssApplyRuleSets = {
74
74
` ,
75
75
} ;
76
76
77
+ const postcssCustomMediaExtensions = {
78
+ // var(--tablet-min-width) did not work
79
+ '--tablet-min-width' : `(min-width: ${ theme . global . tabletMinWidth } )` ,
80
+ } ;
81
+
77
82
const postCSSLoaderOptions = {
78
83
ident : 'postcss' , // https://webpack.js.org/guides/migrating/#complex-options
79
84
plugins : loader => [
@@ -98,6 +103,9 @@ const postCSSLoaderOptions = {
98
103
applyRule : {
99
104
sets : postcssApplyRuleSets ,
100
105
} ,
106
+ customMedia : {
107
+ extensions : postcssCustomMediaExtensions ,
108
+ } ,
101
109
} ,
102
110
} ) ,
103
111
] ,
Original file line number Diff line number Diff line change 31
31
32
32
.appLogo {
33
33
animation : spin infinite 20s linear;
34
- height : 80px ;
34
+ height : 50px ;
35
+
36
+ @media (--tablet-min-width) {
37
+ height : 80px ;
38
+ }
35
39
}
36
40
37
41
You can’t perform that action at this time.
0 commit comments