Skip to content

Commit

Permalink
Fix autoComplete style
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 22, 2015
1 parent 7909033 commit a9117da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions scripts/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ $(function () {
return <Select combobox style={{width: 260}}
onSelect={this.handleSelect}
optionLabelProp="text"
dropdownClassName="autoComplete"
dropdownMenuStyle={{maxHeight: 200, overflow: 'auto'}}
searchPlaceholder="搜索组件..."
filterOption={this.filterOption}>{this.getOptions()}</Select>;
Expand Down
16 changes: 8 additions & 8 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,26 @@ a.logo {
box-shadow: none;
}

#autoComplete .ant-select-dropdown {
#autoComplete input::-webkit-input-placeholder,
#autoComplete input::-moz-placeholder,
#autoComplete input:-ms-input-placeholder {
color: #CADCE3;
}

.autoComplete .ant-select-dropdown {
border: 0;
border-radius: 0;
box-shadow: 0 0 8px rgba(0,0,0,0.25);
}

#autoComplete .ant-component-decs {
.autoComplete .ant-component-decs {
font-size: 12px;
position: absolute;
top: 9px;
color: #aaa;
right: 16px;
}

#autoComplete input::-webkit-input-placeholder,
#autoComplete input::-moz-placeholder,
#autoComplete input:-ms-input-placeholder {
color: #CADCE3;
}

.nav {
width: 30%;
height: 80px;
Expand Down

0 comments on commit a9117da

Please sign in to comment.