You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
719 B

10 years ago
.iconfont-mixin() {
display: inline-block;
color: @icon-color;
10 years ago
font-style: normal;
line-height: 0;
10 years ago
text-align: center;
text-transform: none;
vertical-align: -0.125em; // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
> * {
line-height: 1;
}
svg {
display: inline-block;
}
&::before {
display: none; // dont display old icon.
10 years ago
}
6 years ago
& &-icon {
display: block;
}
}
// for iconfont font size
// fix chrome 12px bug
.iconfont-size-under-12px(@size) {
display: inline-block;
font-size: @size;
}