From dcdf214fd15244fd41cc22cfc068c0b6ee421069 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 27 Aug 2015 00:22:36 +0200 Subject: [PATCH] More compact search page Signed-off-by: Dmitriy Zaporozhets --- app/assets/stylesheets/pages/search.scss | 6 +++--- app/views/search/_category.html.haml | 2 +- app/views/search/show.html.haml | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/pages/search.scss b/app/assets/stylesheets/pages/search.scss index bdaa17ac339..eee0e342c31 100644 --- a/app/assets/stylesheets/pages/search.scss +++ b/app/assets/stylesheets/pages/search.scss @@ -1,7 +1,7 @@ .search-results { .search-result-row { - border-bottom: 1px solid #EEE; - padding-bottom: 10px; - margin-bottom: 10px; + border-bottom: 1px solid #DDD; + padding-bottom: 15px; + margin-bottom: 15px; } } diff --git a/app/views/search/_category.html.haml b/app/views/search/_category.html.haml index a75cd7bd809..d637abfa76b 100644 --- a/app/views/search/_category.html.haml +++ b/app/views/search/_category.html.haml @@ -1,4 +1,4 @@ -%ul.nav.nav-pills.search-filter +%ul.nav.nav-tabs.search-filter - if @project %li{class: ("active" if @scope == 'blobs')} = link_to search_filter_path(scope: 'blobs') do diff --git a/app/views/search/show.html.haml b/app/views/search/show.html.haml index 60f9e9ac9de..35b23ceb9d7 100644 --- a/app/views/search/show.html.haml +++ b/app/views/search/show.html.haml @@ -1,7 +1,6 @@ - page_title @search_term = render 'search/form' -%hr +%br - if @search_term = render 'search/category' - %hr = render 'search/results'