diff options
author | Soreine <nicolas@gitbook.com> | 2016-10-19 01:06:44 +0200 |
---|---|---|
committer | Soreine <nicolas@gitbook.com> | 2016-10-19 01:06:44 +0200 |
commit | 1d877db5f005bba7aada170b9fc0dd6ea7ad5ae3 (patch) | |
tree | f9c6258d3e35cfc2c71f42402dad6854e0ef3033 /packages/gitbook-plugin-theme-default/less/Search.less | |
parent | 92678bb93f1e82b231282bfb98723d1eaa1b9319 (diff) | |
download | gitbook-1d877db5f005bba7aada170b9fc0dd6ea7ad5ae3.zip gitbook-1d877db5f005bba7aada170b9fc0dd6ea7ad5ae3.tar.gz gitbook-1d877db5f005bba7aada170b9fc0dd6ea7ad5ae3.tar.bz2 |
search: Clear search with Esc or button
Diffstat (limited to 'packages/gitbook-plugin-theme-default/less/Search.less')
-rw-r--r-- | packages/gitbook-plugin-theme-default/less/Search.less | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-theme-default/less/Search.less b/packages/gitbook-plugin-theme-default/less/Search.less index 38c1812..faa871f 100644 --- a/packages/gitbook-plugin-theme-default/less/Search.less +++ b/packages/gitbook-plugin-theme-default/less/Search.less @@ -11,7 +11,7 @@ margin-top: -1px; input, input:focus, input:hover { - width: 100%; + width: 90%; // 10% room for clear input X background: transparent; border: 1px solid transparent; box-shadow: none; @@ -22,6 +22,16 @@ } } +.Search-Clear { + width: 10%; + display: inline-block; + text-align: center; + font-size: 14px; + line-height: 22px; + color: @search-clear-color; + cursor: pointer; +} + .Search-MatchSpan { background: @search-highlight-color; |