mixin の少ない関数を異なるパラメーターで 2 回呼び出しますが、結果は同じで、最初のパラメーターによって作成されます。例があります:
入力:
.font-face (@fontName, @fontFileName)
{
@font-face {
font-family: @fontName;
src: url("../../fonts/@{fontFileName}.eot");
src: url("../../fonts/@{fontFileName}.eot?#iefix") format("embedded-opentype"),
url("../../fonts/@{fontFileName}.woff") format("woff"),
url("../../fonts/@{fontFileName}.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
}
.font-face ("BMitra", "BMitra");
.font-face ("BMitraBold", "BMitraBold");
出力:
@font-face {
font-family: "BMitra";
src: url("../../fonts/BMitra.eot");
src: url("../../fonts/BMitra.eot?#iefix") format("embedded-opentype"), url("../../fonts/BMitra.woff") format("woff"), url("../../fonts/BMitra.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "BMitra";
src: url("../../fonts/BMitra.eot");
src: url("../../fonts/BMitra.eot?#iefix") format("embedded-opentype"), url("../../fonts/BMitra.woff") format("woff"), url("../../fonts/BMitra.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
どうしたの?ASP .Net MVC 3.0 アプリケーションで dotless を使用しています。