2014-11-18 22:15:01 +01:00
|
|
|
@root-path: '../resources';
|
|
|
|
|
|
|
|
|
|
|
|
.font (@name, @weight, @style, @file)
|
|
|
|
when (@weight = normal)
|
|
|
|
and (@style = normal) {
|
|
|
|
|
|
|
|
|
|
|
|
@font-path: '@{root-path}/@{file}';
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: @name;
|
|
|
|
font-weight: @weight;
|
|
|
|
font-style: @style;
|
|
|
|
src: url(@font-path);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.font (@name, @weight, @style, @file)
|
|
|
|
when (@weight = bold)
|
|
|
|
and (@style = normal) {
|
|
|
|
|
|
|
|
|
|
|
|
@font-path: '@{root-path}/@{file}';
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: @name;
|
|
|
|
font-weight: @weight;
|
|
|
|
font-style: @style;
|
|
|
|
src: url(@font-path);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.font (@name, @weight, @style, @file)
|
|
|
|
when (@weight = normal)
|
|
|
|
and (@style = italic) {
|
|
|
|
|
|
|
|
|
|
|
|
@font-path: '@{root-path}/@{file}';
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: @name;
|
|
|
|
font-weight: @weight;
|
|
|
|
font-style: @style;
|
|
|
|
src: url(@font-path);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.font (@name, @weight, @style, @file)
|
2016-06-07 20:39:54 +02:00
|
|
|
when (@weight = bold)
|
|
|
|
and (@style = italic) {
|
2014-11-18 22:15:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
@font-path: '@{root-path}/@{file}';
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: @name;
|
|
|
|
font-weight: @weight;
|
|
|
|
font-style: @style;
|
|
|
|
src: url(@font-path);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|