@include mixin();
を変数に設定する方法はありますか? 私は特にそれを行うにはどのような方法を認識してないんだけど、あなただけのグラデーションの特定の種類に設定を乾燥させるためにしようとしている場合、あなたはそれのためのラッパーミックスインを書くことができ、このSassの変数を@mixinに設定していますか?
@mixin bg-gradient($fallback, $type, $positionX, $positionY, $from, $from-percent, $to, $to-percent){
background: $fallback;
background: -webkit-#{$type}-gradient($positionX $positionY, $from $from-percent, $to $to-percent);
background: -moz-#{$type}-gradient($positionX $positionY, $from $from-percent, $to $to-percent);
background: #{$type}-gradient($positionX $positionY, $from $from-percent, $to $to-percent);
}
$navBg: @include bg-gradient(#eee, radial, top, center, #999, 0%, #555, 100%);
body { $navBg; } // it gave me an error
Thnxソリューションと追加情報私は本当に感謝しています – FoxKllD