User Search Widget polish

Had some UI bugs, looks better now
pull/10616/head
Alex P 2016-11-30 17:15:08 -08:00
parent 9d20adda8a
commit a67d92aa06
3 changed files with 10 additions and 37 deletions

View File

@ -157,7 +157,7 @@ const SearchBar = React.createClass({
<input <input
type="text" type="text"
className="form-control" className="form-control"
placeholder="Filter Hosts" placeholder="Filter by Hostname..."
ref="searchInput" ref="searchInput"
onChange={this.handleChange} onChange={this.handleChange}
/> />

View File

@ -142,44 +142,11 @@ body {
position: relative; position: relative;
width: 100%; width: 100%;
z-index: 1; z-index: 1;
background-color: $g2-kevlar;
border-color: $g5-pepper;
color: $g17-whisper;
border-radius: 4px;
padding-left: 34px; padding-left: 34px;
border-radius: 4px !important;
&:focus { &:focus + .input-group-addon {
border-color: $c-pool !important;
color: $c-pool; color: $c-pool;
&::-webkit-input-placeholder {
color: $c-pool;
}
&::-moz-placeholder {
color: $c-pool;
}
&:-ms-input-placeholder {
color: $c-pool;
}
&:-moz-placeholder {
color: $c-pool;
}
& + .input-group-addon {
color: $c-pool;
}
}
&::-webkit-input-placeholder {
color: $g11-sidewalk;
}
&::-moz-placeholder {
color: $g11-sidewalk;
}
&:-ms-input-placeholder {
color: $g11-sidewalk;
}
&:-moz-placeholder {
color: $g11-sidewalk;
} }
} }
.input-group-addon { .input-group-addon {
@ -187,10 +154,11 @@ body {
text-align: center; text-align: center;
line-height: 38px; line-height: 38px;
position: absolute; position: absolute;
color: $g10-wolf;
top: 0; top: 0;
left: 0; left: 0;
height: 100%; height: 100%;
z-index: 2; z-index: 4;
border: 0; border: 0;
width: 40px; width: 40px;
background-color: transparent; background-color: transparent;

View File

@ -100,6 +100,11 @@
border-color: $g5-pepper !important; border-color: $g5-pepper !important;
color: $g15-platinum !important; color: $g15-platinum !important;
&::-webkit-input-placeholder { color: $g10-wolf; }
&::-moz-placeholder { color: $g10-wolf; }
&:-ms-input-placeholder { color: $g10-wolf; }
&:-moz-placeholder { color: $g10-wolf; }
&:hover { &:hover {
border-color: $g6-smoke !important; border-color: $g6-smoke !important;
} }