From 3013b260923da3f27f452a9060f400737564f5ed Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 24 Jul 2014 14:38:19 +0200 Subject: improve look of search on mobile, save space in top bar --- core/css/icons.css | 3 +++ core/css/mobile.css | 16 +++++++++++----- core/img/actions/search-white.png | Bin 0 -> 309 bytes core/img/actions/search-white.svg | 5 +++++ 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 core/img/actions/search-white.png create mode 100644 core/img/actions/search-white.svg (limited to 'core') diff --git a/core/css/icons.css b/core/css/icons.css index 508fe700ae7..b3a9454b565 100644 --- a/core/css/icons.css +++ b/core/css/icons.css @@ -128,6 +128,9 @@ .icon-search { background-image: url('../img/actions/search.svg'); } +.icon-search-white { + background-image: url('../img/actions/search-white.svg'); +} .icon-settings { background-image: url('../img/actions/settings.svg'); diff --git a/core/css/mobile.css b/core/css/mobile.css index 6e2172ddbb7..21090d08cb7 100644 --- a/core/css/mobile.css +++ b/core/css/mobile.css @@ -31,16 +31,22 @@ /* compress search box on mobile, expand when focused */ .searchbox input[type="search"] { - width: 15%; - -webkit-transition: width 100ms; - -moz-transition: width 100ms; - -o-transition: width 100ms; - transition: width 100ms; + width: 0; + cursor: pointer; + background-color: transparent; + background-image: url('../img/actions/search-white.svg'); + -webkit-transition: all 100ms; + -moz-transition: all 100ms; + -o-transition: all 100ms; + transition: all 100ms; } .searchbox input[type="search"]:focus, .searchbox input[type="search"]:active { width: 155px; max-width: 50%; + cursor: text; + background-color: #fff; + background-image: url('../img/actions/search.svg'); } /* do not show display name on mobile when profile picture is present */ diff --git a/core/img/actions/search-white.png b/core/img/actions/search-white.png new file mode 100644 index 00000000000..9812c44a3d6 Binary files /dev/null and b/core/img/actions/search-white.png differ diff --git a/core/img/actions/search-white.svg b/core/img/actions/search-white.svg new file mode 100644 index 00000000000..9b312d0460d --- /dev/null +++ b/core/img/actions/search-white.svg @@ -0,0 +1,5 @@ + + + + + -- cgit v1.2.3