update style for readonly selected option, close #2034

This commit is contained in:
afc163 2016-06-14 23:09:35 +08:00
parent bdb583f56a
commit 138f751cee

View File

@ -283,6 +283,9 @@
overflow: hidden;
transition: padding .3s @ease-in-out;
padding: 0 20px 0 10px;
&__disabled {
padding: 0 10px;
}
}
.@{select-prefix-cls}-selection__choice__content {
@ -434,14 +437,6 @@
background-color: tint(@primary-color, 90%);
}
&-selected:not(&-disabled) {
&,
&:hover {
background-color: #f7f7f7;
font-weight: bold;
}
}
&-disabled {
color: #ccc;
cursor: not-allowed;
@ -453,6 +448,15 @@
}
}
&-selected {
&,
&:hover {
background-color: #f7f7f7;
font-weight: bold;
color: #666;
}
}
&-divider {
height: 1px;
margin: 1px 0;
@ -481,14 +485,14 @@
color: #ddd;
}
&-disabled:after {
display: none;
}
&-selected:after,
&-selected:hover:after {
color: @primary-color;
}
}
.@{select-prefix-cls}-dropdown-menu-item-disabled {
&:after {
display: none;
display: inline-block;
}
}
}