ant-design/components/style/mixins/iconfont.less
包子熊 67024893ce Hotfix/icon issue (#12016)
* fix progress icon

* remove IconDisplay fields.js

* update progress test snapshot

* fix form item circle filled

* update form-item test snapshot

* fix close icon in upload item list

* fix alert icon theme

* update alert test snapshot

* fix time picker clear icon

* fix test snapshot

* fix rotate icon in the header

* update test snapshot

* update new tree test snapshot

* fix icon position

* fix old icon and new icon both display

* fix card actions icon position
2018-09-03 19:29:27 +08:00

38 lines
909 B
Plaintext

.iconfont-mixin() {
display: inline-block;
font-style: normal;
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-align: center;
text-transform: none;
line-height: 1;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
svg {
display: block;
}
&:before {
display: none; // dont display old icon.
}
& &-icon {
display: block;
}
}
// for iconfont font size
// fix chrome 12px bug, support ie
.iconfont-size-under-12px(@size, @rotate: 0deg) {
display: inline-block;
@font-scale: unit(@size / 12px);
font-size: 12px;
// IE9
font-size: ~"@{size} \9"; // lesshint duplicateProperty: false
transform: scale(@font-scale) rotate(@rotate);
:root & {
font-size: @font-size-sm; // reset IE9 and above
}
}