【发布时间】:2019-04-06 19:23:57
【问题描述】:
我正在尝试根据 this 标准化我的 scss 上的设备尺寸:
/** Extra small devices (phones, 600px and down) */
$extra-small-evices: "screen and (max-width: 600px)",
/** Small devices (portrait tablets and large phones, 601px to 768px) */
$small-devices = 'screen and (min-width: 601px) and (max-width: 768px)',
/** Medium devices (landscape tablets, 769px to 991px) */
$medium-devices = 'screen and (min-width: 769px) and (max-width: 991px)',
/** Large devices (laptops/desktops, 992px to 1200px) */
$large-devices = 'screen and (min-width: 992px) and (max-width: 1200px)',
/** Extra large devices (large laptops and desktops, 1201px and up) */
$extra-large-devices = 'screen and (min-width: 1201px)'
在此之后,少说我想创建一个目标是小型设备和中型设备的媒体查询:
@media $small-devices,
@media $medium-devices{
....
}
但我在@media $small-devices, 行收到以下错误:
[scss] 媒体查询预期
环境:Visual Studio 代码、nodejs、angular 6、gulp、
有谁知道怎么解决这个问题?
【问题讨论】: