2015-07-01 14:48:47 +08:00
|
|
|
.iconfont-mixin() {
|
|
|
|
display: inline-block;
|
2019-03-12 18:46:54 +08:00
|
|
|
color: @icon-color;
|
2015-07-01 14:48:47 +08:00
|
|
|
font-style: normal;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 0;
|
2015-07-01 14:48:47 +08:00
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: -0.125em; // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
2016-06-21 20:04:08 +08:00
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2018-08-14 14:45:04 +08:00
|
|
|
|
2018-09-17 14:53:21 +08:00
|
|
|
> * {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2018-08-14 14:45:04 +08:00
|
|
|
svg {
|
2018-09-14 10:58:03 +08:00
|
|
|
display: inline-block;
|
2018-08-14 14:45:04 +08:00
|
|
|
}
|
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-09-03 19:29:27 +08:00
|
|
|
display: none; // dont display old icon.
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
2018-08-09 12:07:27 +08:00
|
|
|
|
|
|
|
& &-icon {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-07-01 21:24:04 +08:00
|
|
|
}
|
2016-07-25 14:03:56 +08:00
|
|
|
|
|
|
|
// for iconfont font size
|
2019-12-23 18:33:08 +08:00
|
|
|
// fix chrome 12px bug
|
2020-01-08 16:31:25 +08:00
|
|
|
.iconfont-size-under-12px(@size) {
|
2016-07-25 14:03:56 +08:00
|
|
|
display: inline-block;
|
2020-01-08 16:31:25 +08:00
|
|
|
font-size: @size;
|
2016-07-25 14:03:56 +08:00
|
|
|
}
|