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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
6 deletions
-
components/pagination/style/index.less
-
components/style/mixins/iconfont.less
-
components/table/style/index.less
|
@ -110,9 +110,8 @@ |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
.@{pagination-prefix-cls}-item-link-icon { |
|
|
.@{pagination-prefix-cls}-item-link-icon { |
|
|
.iconfont-size-under-12px(12px); |
|
|
|
|
|
|
|
|
|
|
|
color: @primary-color; |
|
|
color: @primary-color; |
|
|
|
|
|
font-size: @font-size-sm; |
|
|
letter-spacing: -1px; |
|
|
letter-spacing: -1px; |
|
|
opacity: 0; |
|
|
opacity: 0; |
|
|
transition: all 0.2s; |
|
|
transition: all 0.2s; |
|
|
|
@ -29,8 +29,7 @@ |
|
|
|
|
|
|
|
|
// for iconfont font size |
|
|
// for iconfont font size |
|
|
// fix chrome 12px bug |
|
|
// fix chrome 12px bug |
|
|
.iconfont-size-under-12px(@size, @rotate: 0deg) { |
|
|
.iconfont-size-under-12px(@size) { |
|
|
display: inline-block; |
|
|
display: inline-block; |
|
|
@font-scale: unit(@size / 12px); |
|
|
font-size: @size; |
|
|
font-size: 12px; |
|
|
|
|
|
} |
|
|
} |
|
|
|
@ -248,7 +248,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-up + &-down { |
|
|
&-up + &-down { |
|
|
margin-top: -0.42em; |
|
|
margin-top: -0.3em; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|