mirror of https://github.com/vector-im/riot-web
make filter feed transparent when not focussed
parent
15d3774665
commit
1c4093eb0f
|
@ -18,6 +18,10 @@ limitations under the License.
|
||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
|
&.mx_SearchBox_blurred:not(:hover) {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_SearchBox_closeButton {
|
.mx_SearchBox_closeButton {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-image: url('$(res)/img/icons-close.svg');
|
background-image: url('$(res)/img/icons-close.svg');
|
||||||
|
|
|
@ -140,7 +140,7 @@ module.exports = createReactClass({
|
||||||
this.props.placeholder;
|
this.props.placeholder;
|
||||||
const className = this.props.className || "";
|
const className = this.props.className || "";
|
||||||
return (
|
return (
|
||||||
<div className="mx_SearchBox mx_textinput">
|
<div className={classNames("mx_SearchBox", "mx_textinput", {"mx_SearchBox_blurred": this.state.blurred})}>
|
||||||
<input
|
<input
|
||||||
key="searchfield"
|
key="searchfield"
|
||||||
type="text"
|
type="text"
|
||||||
|
|
Loading…
Reference in New Issue