1
I持って、次のSASS:@media
.branded
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)
@media screen and (orientation:portrait)
background-image: url("../img/fbc/citroen_640x960.jpg")
@media screen and (orientation:landscape)
background-image: url("../img/fbc/citroen_960x640.jpg")
background-size: 50%
と、それは以下のCSSに解析されます。
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.branded {
background-size: 50%;
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) and screen and (orientation:portrait) {
.branded {
background-image: url("../img/fbc/citroen_640x960.jpg");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) and screen and (orientation:landscape) {
.branded {
background-image: url("../img/fbc/citroen_960x640.jpg");
}
}
私はそれが動作していない見て、私は、この行のエラーを取得:
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) and screen and (orientation:landscape) {
なぜそれがあり、そしてどのように来るSASSパーサーがエラーでCSSを作成しますか?それは私の間違いかSASSesですか?