Browse Source

fix select style

pull/704/head
afc163 9 years ago
parent
commit
a1f0e58fce
  1. 8
      style/components/select.less
  2. 2
      style/mixins/compatibility.less

8
style/components/select.less

@ -237,7 +237,7 @@
&:hover { &:hover {
padding: 0 20px 0 10px; padding: 0 20px 0 10px;
.@{select-prefix-cls}-selection__choice__remove { .@{select-prefix-cls}-selection__choice__remove {
transform: scale(0.75); transform: scale(0.67);
opacity: 1; opacity: 1;
} }
} }
@ -254,12 +254,12 @@
.@{select-prefix-cls}-selection__choice__remove { .@{select-prefix-cls}-selection__choice__remove {
.iconfont-mixin(); .iconfont-mixin();
color: #919191; color: #999;
line-height: 20px; line-height: 20px;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
.iconfont-size-under-12px(8px); .iconfont-size-under-12px(12px);
position: absolute; position: absolute;
right: 4px; right: 4px;
padding: 0 0 0 8px; padding: 0 0 0 8px;
@ -268,7 +268,7 @@
transition: opacity @duration, transform @duration; transition: opacity @duration, transform @duration;
transform-origin: 50%; transform-origin: 50%;
&:hover { &:hover {
color: #333; color: #404040;
} }
&:before { &:before {

2
style/mixins/compatibility.less

@ -32,7 +32,7 @@
.iconfont-size-under-12px(@size, @rotate: 0deg) { .iconfont-size-under-12px(@size, @rotate: 0deg) {
display: inline-block; display: inline-block;
@font-scale: unit(@size/@font-size-base); @font-scale: unit(@size/@font-size-base);
font-size: @font-scale; font-size: @font-size-base;
font-size: ~"@{size} \9"; // ie8-9 font-size: ~"@{size} \9"; // ie8-9
transform: scale(@font-scale) rotate(@rotate); transform: scale(@font-scale) rotate(@rotate);
.ie-rotate-via-degrees(@rotate); .ie-rotate-via-degrees(@rotate);

Loading…
Cancel
Save