From 326d3256d218323031b2b87d31ae313e73f5d2cd Mon Sep 17 00:00:00 2001 From: Ofer Lehr Date: Mon, 8 Dec 2014 08:58:25 +0200 Subject: better looking search suggestion - fixes bug that hides the suggestions behind the input bar - suggestion items are now highlighted on hover - better positioning - larger font size for search bar suggestions --- res/css/partials/input-bar.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'res/css/partials/input-bar.scss') diff --git a/res/css/partials/input-bar.scss b/res/css/partials/input-bar.scss index 913c7e48..11a821bb 100644 --- a/res/css/partials/input-bar.scss +++ b/res/css/partials/input-bar.scss @@ -56,25 +56,26 @@ } .suggestion{ + position: relative; color: $dark-grey; max-height: 580px; overflow-y: scroll; font-size: $h3-size; list-style-type: none; width: inherit; - position: relative; margin-top: 6px; border: 1px solid $mid-grey; @include rz-box-sizing-border; background: white; - // this box should have a shadow but we need a js solution to hide it before its appears - @include rz-box-shadow(0px, 1px, 6px, 0px, rgba(0,0,0,0.3) ); + z-index: 100; + @include rz-box-shadow(0px, 3px, 6px, 0px, rgba(0,0,0,0.3) ); } .suggestion-item { padding: 6px 0px 6px 18px; } -.suggestion .selected { +.suggestion-item.selected, .suggestion-item:hover { padding-left: 16px; background-color: $light-grey; border-left: 2px solid $cyan; -- cgit v1.3.1