diff --git a/static/search.js b/static/search.js index ebe9809a..198a3a27 100644 --- a/static/search.js +++ b/static/search.js @@ -459,8 +459,6 @@ var Search = Control.extend({ self.navigate($a.attr("href")); return; } - - self.clear(); }); } }, @@ -720,9 +718,6 @@ var Search = Control.extend({ }else{ window.location.href = href; } - - this.clear(); - } // ---- END HELPERS ---- // diff --git a/static/search.less b/static/search.less index d4309b53..eddf7e2c 100644 --- a/static/search.less +++ b/static/search.less @@ -53,11 +53,15 @@ &.has-value .search-icon-cancel{ display:block; } + @media screen and (max-width: @breakpoint) { + &.has-value{ + width: 200px; + } + } } - @media screen and (min-width: @breakpoint) { - display: block; - } + display: block; + } } .bottom-left{ @@ -72,7 +76,7 @@ left: 0; overflow-y: auto; padding: 2em 0; - + z-index: 1; .search-cancel{ color: @code-color; display: block;