Refactor Select!

This commit is contained in:
Sergio Crisostomo 2018-03-27 09:58:27 +02:00
parent aaa96346f4
commit c9b86944ec
5 changed files with 647 additions and 672 deletions

View file

@ -25,23 +25,14 @@
border: 1px solid @border-color-base;
transition: all @transition-time @ease-in-out;
.@{select-prefix-cls}-arrow:nth-of-type(1) {
display: none;
cursor: pointer;
}
&:hover {
&:hover, &-focused {
.hover();
.@{select-prefix-cls}-arrow:nth-of-type(1) {
.@{select-prefix-cls}-arrow {
display: inline-block;
}
}
}
&-show-clear &-selection:hover .@{select-prefix-cls}-arrow:nth-of-type(2){
display: none;
}
&-arrow {
.inner-arrow();
}
@ -51,14 +42,9 @@
.active();
}
.@{select-prefix-cls}-arrow:nth-of-type(2) {
.@{select-prefix-cls}-arrow {
transform: rotate(180deg);
}
}
&:focus{
outline: 0;
.@{select-prefix-cls}-selection{
.active();
display: inline-block;
}
}
@ -66,7 +52,7 @@
.@{select-prefix-cls}-selection {
.disabled();
.@{select-prefix-cls}-arrow:nth-of-type(1) {
.@{select-prefix-cls}-arrow {
display: none;
}
@ -74,7 +60,7 @@
border-color: @border-color-base;
box-shadow: none;
.@{select-prefix-cls}-arrow:nth-of-type(2) {
.@{select-prefix-cls}-arrow {
display: inline-block;
}
}