Browse Source

🐛 Fix .iconfont-size-under-12px not working (#20765)

Fix InputNumber and Other components icon size

close #20752
pull/20767/head
偏右 5 years ago
committed by GitHub
parent
commit
117495e28f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/pagination/style/index.less
  2. 5
      components/style/mixins/iconfont.less
  3. 2
      components/table/style/index.less

3
components/pagination/style/index.less

@ -110,9 +110,8 @@
position: relative;
.@{pagination-prefix-cls}-item-link-icon {
.iconfont-size-under-12px(12px);
color: @primary-color;
font-size: @font-size-sm;
letter-spacing: -1px;
opacity: 0;
transition: all 0.2s;

5
components/style/mixins/iconfont.less

@ -29,8 +29,7 @@
// for iconfont font size
// fix chrome 12px bug
.iconfont-size-under-12px(@size, @rotate: 0deg) {
.iconfont-size-under-12px(@size) {
display: inline-block;
@font-scale: unit(@size / 12px);
font-size: 12px;
font-size: @size;
}

2
components/table/style/index.less

@ -248,7 +248,7 @@
}
&-up + &-down {
margin-top: -0.42em;
margin-top: -0.3em;
}
}

Loading…
Cancel
Save