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;