@content
メディアクエリを簡素化するために、ミックスイン内で使用しています。ネストされたクラス内で最初の mixin を使用すると、出力が泡立ち、クラスがネストされます。2 番目の例はまったく機能しません (エラーはありません)。ネストが正しく機能していないようです。
これはうまくいきます
// Everything larger than a landscape tablet but less than or equal to the desktop
@mixin desktop-only {
@media only screen and (min-width : $mq-tablet-landscape + 1) and (max-width : $mq-desktop) {
@content;
}
.lt-ie9
{
@content;
}
}
これは動作しません
@mixin ie8 {
.lt-ie9
{
@content;
}
}