From 4c47eab608c7c8b6fac9eadcd131875802f73065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 5 Jul 2021 02:56:39 +0200 Subject: [PATCH] Move search summary styles to a stylesheet --- app/assets/stylesheets/participation.scss | 8 ++++++++ app/views/debates/index.html.erb | 2 +- app/views/proposals/index.html.erb | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 66e93edf1..1382fe970 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1019,6 +1019,14 @@ } } +.search-results-summary { + background: $highlight; + margin-bottom: $line-height; + margin-top: -$line-height; + padding-bottom: $line-height; + padding-top: $line-height; +} + // 05. Featured // ------------ diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb index 24142020b..a4e347537 100644 --- a/app/views/debates/index.html.erb +++ b/app/views/debates/index.html.erb @@ -10,7 +10,7 @@
<% if @search_terms || @advanced_search_terms %> -
+
<% if @search_terms || @advanced_search_terms %> diff --git a/app/views/proposals/index.html.erb b/app/views/proposals/index.html.erb index 8ec111379..016c93fd7 100644 --- a/app/views/proposals/index.html.erb +++ b/app/views/proposals/index.html.erb @@ -15,7 +15,7 @@ params[:retired].present?, params[:selected].present? ].any? %> -
+
<% if @search_terms || @advanced_search_terms %>