mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
117495e28f
Fix InputNumber and Other components icon size close #20752
36 lines
719 B
Plaintext
36 lines
719 B
Plaintext
.iconfont-mixin() {
|
|
display: inline-block;
|
|
color: @icon-color;
|
|
font-style: normal;
|
|
line-height: 0;
|
|
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.
|
|
}
|
|
|
|
& &-icon {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
// for iconfont font size
|
|
// fix chrome 12px bug
|
|
.iconfont-size-under-12px(@size) {
|
|
display: inline-block;
|
|
font-size: @size;
|
|
}
|