|
|
@ -332,8 +332,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@defaultFontName: 'fineui'; |
|
|
|
// 添加字体资源 |
|
|
|
// 添加字体资源 |
|
|
|
.addFontRes(@name, @fontUrl) { |
|
|
|
.addFontRes(@name: @defaultFontName, @fontUrl: @fontUrl) { |
|
|
|
@font-face { |
|
|
|
@font-face { |
|
|
|
font-family: "@{name}"; |
|
|
|
font-family: "@{name}"; |
|
|
|
src: url('@{fontUrl}iconfont.eot'); |
|
|
|
src: url('@{fontUrl}iconfont.eot'); |
|
|
@ -342,7 +343,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 激活字体 |
|
|
|
// 激活字体 |
|
|
|
.activateFont(@fonts) { |
|
|
|
.activateFont(@fonts: false) { |
|
|
|
@baseProperty: { |
|
|
|
@baseProperty: { |
|
|
|
font-style: normal; |
|
|
|
font-style: normal; |
|
|
|
-webkit-font-smoothing: antialiased; |
|
|
|
-webkit-font-smoothing: antialiased; |
|
|
@ -350,8 +351,13 @@ |
|
|
|
-moz-osx-font-smoothing: grayscale; |
|
|
|
-moz-osx-font-smoothing: grayscale; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
.b-font { |
|
|
|
.b-font when (@fonts = false){ |
|
|
|
font-family: @fonts; |
|
|
|
font-family: @defaultFontName; |
|
|
|
|
|
|
|
@baseProperty(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.b-font when not (@fonts = false){ |
|
|
|
|
|
|
|
font-family: @fonts, @defaultFontName; |
|
|
|
@baseProperty(); |
|
|
|
@baseProperty(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|