2015-07-01 14:48:47 +08:00
|
|
|
.iconfont-mixin() {
|
|
|
|
display: inline-block;
|
|
|
|
font-style: normal;
|
|
|
|
vertical-align: baseline;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
2015-11-14 00:00:40 +08:00
|
|
|
line-height: 1;
|
2016-06-21 20:04:08 +08:00
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2015-07-01 14:48:47 +08:00
|
|
|
&:before {
|
2015-07-13 17:21:56 +08:00
|
|
|
display: block;
|
2015-07-01 14:48:47 +08:00
|
|
|
font-family: "anticon" !important;
|
|
|
|
}
|
2015-07-01 21:24:04 +08:00
|
|
|
}
|
2016-07-25 14:03:56 +08:00
|
|
|
|
|
|
|
.iconfont-font(@content) {
|
|
|
|
font-family: 'anticon';
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
content: @content;
|
|
|
|
}
|
|
|
|
|
|
|
|
// for iconfont font size
|
|
|
|
// fix chrome 12px bug, support ie
|
|
|
|
.iconfont-size-under-12px(@size, @rotate: 0deg) {
|
|
|
|
display: inline-block;
|
2016-11-08 21:25:57 +08:00
|
|
|
@font-scale: unit(@size / 12px);
|
2017-10-18 17:16:14 +08:00
|
|
|
font-size: 12px;
|
2017-09-08 13:08:46 +08:00
|
|
|
// IE9
|
2017-01-11 21:45:09 +08:00
|
|
|
font-size: ~"@{size} \9"; // lesshint duplicateProperty: false
|
2016-07-25 14:03:56 +08:00
|
|
|
transform: scale(@font-scale) rotate(@rotate);
|
|
|
|
:root & {
|
2017-11-06 21:28:51 +08:00
|
|
|
font-size: @font-size-sm; // reset IE9 and above
|
2016-07-25 14:03:56 +08:00
|
|
|
}
|
|
|
|
}
|