Fix select style

pull/184/head
afc163 10 years ago
parent 583d885b40
commit 36030e269b

@ -33,12 +33,6 @@
color: #666;
font-size: @font-size-base;
ul, li {
margin: 0;
padding: 0;
list-style: none;
}
> ul > li > a {
padding: 0;
background-color: #fff;
@ -261,25 +255,68 @@
}
}
.@{select-prefix-cls}-selection--single + .@{select-prefix-cls}-dropdown {
.@{select-prefix-cls}-dropdown-menu-item-selected {
&-open {
.@{select-prefix-cls}-arrow {
.ie-rotate(2);
-ms-transform: rotate(180deg);
&:before {
.rotate(180deg);
}
}
.@{select-prefix-cls}-selection {
.active();
}
}
&-combobox {
.@{select-prefix-cls}-arrow {
display: none;
}
.@{select-prefix-cls}-search--inline {
height: 100%;
float: none;
}
.@{select-prefix-cls}-search__field__placeholder {
left: 10px;
cursor: text;
}
.@{select-prefix-cls}-search__field__wrap {
width: 100%;
height: 100%;
}
.@{select-prefix-cls}-search__field {
padding: 0 10px;
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
.@{select-prefix-cls}-selection__rendered {
padding: 0;
height: 100%;
}
}
}
.@{select-prefix-cls}-dropdown {
&--single &-menu-item-selected {
background-color: tint(@primary-color, 90%);
.selected_icon();
}
}
.@{select-prefix-cls}-selection--multiple + .@{select-prefix-cls}-dropdown {
.@{select-prefix-cls}-dropdown-menu-item {
&--multiple &-menu-item {
padding: 7px 33px 7px 16px;
}
.@{select-prefix-cls}-dropdown-menu-item-selected {
&--multiple &-menu-item-selected {
.selected_icon();
}
}
&-dropdown {
&-hidden {
display: none;
}
background-color: white;
border: 1px solid #d9d9d9;
box-shadow: @overlay-shadow;
@ -302,16 +339,11 @@
max-height: 250px;
overflow: auto;
> li {
margin: 0;
padding: 0;
}
&-item-group-list {
margin: 0;
padding: 0;
> li.@{select-prefix-cls}-dropdown-menu-item {
> .@{select-prefix-cls}-dropdown-menu-item {
padding-left: 24px;
}
}
@ -322,7 +354,7 @@
padding: 8px 16px;
}
li&-item {
&-item {
position: relative;
display: block;
padding: 7px 16px;
@ -364,15 +396,14 @@
}
}
}
}
&-dropdown-container-open, &-open {
&-container-open, &-open {
.@{select-prefix-cls}-dropdown {
display: block;
}
}
&-search--dropdown {
.@{select-prefix-cls}-search--dropdown {
display: block;
padding: 4px;
.@{select-prefix-cls}-search__field__placeholder {
@ -393,45 +424,4 @@
display: none;
}
}
&-open {
.@{select-prefix-cls}-arrow {
.ie-rotate(2);
-ms-transform: rotate(180deg);
&:before {
.rotate(180deg);
}
}
.@{select-prefix-cls}-selection {
.active();
}
}
&-combobox {
.@{select-prefix-cls}-arrow {
display: none;
}
.@{select-prefix-cls}-search--inline {
height: 100%;
float: none;
}
.@{select-prefix-cls}-search__field__placeholder {
left: 10px;
cursor: text;
}
.@{select-prefix-cls}-search__field__wrap {
width: 100%;
height: 100%;
}
.@{select-prefix-cls}-search__field {
padding: 0 10px;
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
.@{select-prefix-cls}-selection__rendered {
padding: 0;
height: 100%;
}
}
}

Loading…
Cancel
Save