|
|
@ -332,6 +332,34 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加字体资源 |
|
|
|
|
|
|
|
.addFontRes(@name, @fontUrl) { |
|
|
|
|
|
|
|
@font-face { |
|
|
|
|
|
|
|
font-family: "@{name}"; |
|
|
|
|
|
|
|
src: url('@{fontUrl}iconfont.eot'); |
|
|
|
|
|
|
|
src: url('@{fontUrl}iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('@{fontUrl}iconfont.woff') format('woff'), /* chrome、firefox */ url('@{fontUrl}iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('@{fontUrl}iconfont.svg#svgFontName') format('svg'); /* iOS 4.1- */ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 激活字体 |
|
|
|
|
|
|
|
.activateFont(@fonts) { |
|
|
|
|
|
|
|
@baseProperty: { |
|
|
|
|
|
|
|
font-style: normal; |
|
|
|
|
|
|
|
-webkit-font-smoothing: antialiased; |
|
|
|
|
|
|
|
-webkit-text-stroke-width: 0.2px; |
|
|
|
|
|
|
|
-moz-osx-font-smoothing: grayscale; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.b-font when not ((length(@fonts) = 1) and (extract(@fonts, 1) = "bi")) { |
|
|
|
|
|
|
|
font-family: @fonts, "bi"; |
|
|
|
|
|
|
|
@baseProperty(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.b-font when ((length(@fonts) = 1) and (extract(@fonts, 1) = "bi")) { |
|
|
|
|
|
|
|
font-family: @fonts; |
|
|
|
|
|
|
|
@baseProperty(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 默认font |
|
|
|
// 默认font |
|
|
|
.font(@class,@content, @color: @color-bi-font-native) { |
|
|
|
.font(@class,@content, @color: @color-bi-font-native) { |
|
|
|
@fc: "\@{content}"; |
|
|
|
@fc: "\@{content}"; |
|
|
|