私は@extend規則に少し問題を抱えている、これは私が(H1に焦点)得たものである:SASS/SCSS @extendルールセレクタ
.content-header {
// CSS properties
h1 {
// CSS properties
}
}
.box-header {
// CSS properties
h1 {
@extend .content-header h1; // My selector problem!
// And his own CSS properties
}
}
だから、それは次のようになります。
.content-header h1, .box-header h1 {
/* Happily sharing the same CSS properties */
}
しかし、それは@extend
のようではない、これを与えることなく他の方法はh1
クラスを与えることですか?
私はそれを開いてみましょう!どうもありがとうございます! ;) –