From 665c3690bb364b029e49b00eaf4ef715d691857e Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 6 Aug 2015 17:13:30 +1000 Subject: [PATCH] UX: move category below title in search --- .../javascripts/discourse/templates/full-page-search.hbs | 6 +++++- app/assets/stylesheets/common/base/search.scss | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs index 9ea1d65ca3c..b04d1e59374 100644 --- a/app/assets/javascripts/discourse/templates/full-page-search.hbs +++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs @@ -17,7 +17,11 @@ {{avatar result imageSize="tiny"}} {{topic-status topic=result.topic disableActions=true}}{{unbound result.topic.title}} - {{category-link result.topic.category}} + +
+ {{category-link result.topic.category}} + {{plugin-outlet "full-page-search-category"}} +
diff --git a/app/assets/stylesheets/common/base/search.scss b/app/assets/stylesheets/common/base/search.scss index 4bae38b14e8..75de8a32a84 100644 --- a/app/assets/stylesheets/common/base/search.scss +++ b/app/assets/stylesheets/common/base/search.scss @@ -4,6 +4,10 @@ max-width: inherit; } + .search-category { + margin-top: 3px; + } + margin-bottom: 28px; max-width: 675px; .topic { @@ -26,7 +30,7 @@ clear: both; color: scale-color($primary, $lightness: 40%); .date { - color: scale-color($primary, $lightness: 60%); + color: scale-color($primary, $lightness: 40%); } .search-highlight {