0
Using the SASS solution as a referenceどのようにこれをLESSで行うのですか?lessを使用してすべてのhタグをターゲットにする
h1, h2, h3,
h4, h5, h6 {
@extend %headings !optional;
}
そして、そのようにそれを使用します。最終的に私は、将来的にこれをしたいと思います
.element > %headings {
color: red;
}
:
.something {
%headings { color: red; }
}
それがコンパイルなるように:
.something h1,
.something h2,
.something h3 { color: red; }