1
在Sass中,我不得不链接三个独立的媒体查询来处理响应。它目前很长一段时间看起来像这样:缩短Sass中的媒体查询
@media (max-width: $tablet-portrait-width) and
(max-height: $tablet-portrait-height) and
(min-height: $landscape-min-height)
我想缩短查询,但我不确定如何。是否有可能使这更容易阅读?
使用的变量在设置页面中我做了定义,并有下列值:
$landscape-min-height: 200px;
$tablet-portrait-height: 1024px;
$tablet-portrait-width: 768px;