mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
update style for readonly selected option, close #2034
This commit is contained in:
parent
bdb583f56a
commit
138f751cee
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user