1
は、次のことを考えてみましょう:入れ子のときはmixin括弧はオプションですか?
.flashing {
.flashKeyFrames(fade-in;{
0%, 100% {opacity: 1;}
50% {opacity: 0;}
});
.flashing(fade-in linear infinite alternate; 1s)
}
.flashKeyFrames(@name; @arguments) {
@-moz-keyframes @name { @arguments(); }
@-webkit-keyframes @name { @arguments(); }
@keyframes @name { @arguments(); }
}
.flashing(@arguments, @duration) {
-webkit-animation: @arguments;
-moz-animation: @arguments;
animation: @arguments;
-webkit-animation-duration: @duration;
-moz-animation-duration: @duration;
animation-duration: @duration;
}
は@arguments
後に必ずしもカッコは何ですか?私はミックスインとして使用すると括弧は省略可能だと思いましたか?だから私は@arguments
はmixinとして定義されていないと仮定しているが、それは何ですか?