css: adjust alignment in Select & AutoComplete, close: #5088

This commit is contained in:
Benjy Cui 2017-02-28 14:30:00 +08:00
parent dd86e33283
commit c01f24750a
3 changed files with 7 additions and 5 deletions

View File

@ -106,7 +106,6 @@ ReactDOM.render(<Complete />, mountNode);
.global-search.ant-select-auto-complete .ant-input { .global-search.ant-select-auto-complete .ant-input {
height: 40px; height: 40px;
padding: 11px 12px;
} }
.global-search.ant-select-auto-complete .ant-select-selection__placeholder { .global-search.ant-select-auto-complete .ant-select-selection__placeholder {

View File

@ -55,7 +55,7 @@
} }
.@{input-prefix-cls} { .@{input-prefix-cls} {
border: @border-width-base @border-style-base @border-color-base; padding-left: 6px;
&:focus, &:focus,
&:hover { &:hover {
.hover; .hover;

View File

@ -351,6 +351,9 @@
} }
&-combobox { &-combobox {
.@{select-prefix-cls}-selection__rendered {
margin-left: 6px;
}
.@{select-prefix-cls}-arrow { .@{select-prefix-cls}-arrow {
display: none; display: none;
} }
@ -422,20 +425,20 @@
padding: 0; padding: 0;
> .@{select-prefix-cls}-dropdown-menu-item { > .@{select-prefix-cls}-dropdown-menu-item {
padding-left: 24px; padding-left: 15px;
} }
} }
&-item-group-title { &-item-group-title {
color: @text-color-secondary; color: @text-color-secondary;
line-height: 1.5; line-height: 1.5;
padding: 8px 16px; padding: 8px 7px;
} }
&-item { &-item {
position: relative; position: relative;
display: block; display: block;
padding: 7px 16px; padding: 7px;
font-weight: normal; font-weight: normal;
color: @text-color; color: @text-color;
white-space: nowrap; white-space: nowrap;