css扩展语言通过变量声明媒体查询
scss
1 | $mobile: 'only screen and (max-device-width: 720px), |
Less
1 | @mobile: ~"only screen and (max-device-width: 720px), only screen and (-webkit-min-device-pixel-ratio: 1.5) and (max-width: 720px)"; |
postcss
1 | @custom-media --mobile only screen and (max-device-width: 720px), |