fix open animation

pull/210/merge
yiminghe 10 years ago
parent 23fce559b0
commit 3ec73ec965

@ -27,13 +27,13 @@ function animate(node, show, transitionName, done) {
const animation = { const animation = {
enter(node, done) { enter(node, done) {
animate(node, false, 'slideDown', done); return animate(node, false, 'slideDown', done);
}, },
leave(node, done) { leave(node, done) {
animate(node, true, 'slideUp', done); return animate(node, true, 'slideUp', done);
}, },
appear(node, done) { appear(node, done) {
animate(node, false, 'slideDown', done); return animate(node, false, 'slideDown', done);
}, },
}; };

@ -46,7 +46,7 @@
right: 8px; right: 8px;
line-height: 1; line-height: 1;
margin-top: -5px; margin-top: -5px;
.iconfont-size-under-12px(8px); font-size: 8px;
* { * {
display: none; display: none;
@ -72,10 +72,12 @@
.transition(all .3s @ease-in-out); .transition(all .3s @ease-in-out);
&:hover { &:hover {
.hover; border-color: tint(@primary-color, 20%);
} }
&:active { &:active {
.active; border-color: tint(@primary-color, 20%);
outline: 0;
box-shadow: 0 0 0 2px tint(@primary-color, 80%);
} }
} }
@ -114,19 +116,19 @@
} }
&-lg { &-lg {
.ant-select-selection--single { .@{select-prefix-cls}-selection--single {
height: 32px; height: 32px;
.ant-select-selection__rendered { .@{select-prefix-cls}-selection__rendered {
line-height: 30px; line-height: 30px;
} }
} }
.ant-select-selection--multiple { .@{select-prefix-cls}-selection--multiple {
min-height: 32px; min-height: 32px;
.ant-select-selection__rendered { .@{select-prefix-cls}-selection__rendered {
li { li {
height: 24px; height: 24px;
.ant-select-selection__choice__content { .@{select-prefix-cls}-selection__choice__content {
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
} }
@ -136,23 +138,23 @@
} }
&-sm { &-sm {
.ant-select-selection--single { .@{select-prefix-cls}-selection--single {
height: 22px; height: 22px;
.ant-select-selection__rendered { .@{select-prefix-cls}-selection__rendered {
line-height: 20px; line-height: 20px;
} }
} }
.ant-select-selection--multiple { .@{select-prefix-cls}-selection--multiple {
min-height: 22px; min-height: 22px;
.ant-select-selection__rendered { .@{select-prefix-cls}-selection__rendered {
li { li {
height: 14px; height: 14px;
.ant-select-selection__choice__content { .@{select-prefix-cls}-selection__choice__content {
line-height: 14px; line-height: 14px;
position: relative; position: relative;
top: -3px; top: -3px;
} }
.ant-select-selection__choice__remove { .@{select-prefix-cls}-selection__choice__remove {
position: relative; position: relative;
top: -4px; top: -4px;
} }
@ -240,7 +242,7 @@
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
.iconfont-size-under-12px(8px); font-size: 8px;
padding: 0 0 0 4px; padding: 0 0 0 4px;
position: relative; position: relative;
top: -1px; top: -1px;
@ -258,10 +260,7 @@
&-open { &-open {
.@{select-prefix-cls}-arrow { .@{select-prefix-cls}-arrow {
.ie-rotate(2); .ie-rotate(2);
-ms-transform: rotate(180deg); transform: rotate(180deg);
&:before {
.rotate(180deg);
}
} }
.@{select-prefix-cls}-selection { .@{select-prefix-cls}-selection {
.active(); .active();

Loading…
Cancel
Save