From fc857ea6032412327db99338f55c313e9dfb8e09 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 26 Jan 2016 18:42:28 +0100 Subject: [PATCH] Adds styles for geozone on proposal show --- app/assets/stylesheets/layout.scss | 38 ++++++++++------------- app/assets/stylesheets/participation.scss | 1 - app/views/shared/_geozone.html.erb | 2 +- 3 files changed, 17 insertions(+), 24 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 586628556..7619683b3 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -605,34 +605,28 @@ footer { // 04. Tags // - - - - - - - - - - - - - - - - - - - - - - - - - -.tags, .tag-cloud { +.tags a , .tag-cloud a, .categories a, .geozone a { + background: #ececec; + border-radius: rem-calc(6); + color: $text; + display: inline-block; + font-size: $small-font-size; + margin-bottom: $line-height/3; + padding: $line-height/4 $line-height/3; + text-decoration: none; - a { - background: #ececec; - border-radius: rem-calc(6); - color: $text; - display: inline-block; - font-size: $small-font-size; - margin-bottom: $line-height/3; - padding: $line-height/4 $line-height/3; - text-decoration: none; - - &:hover { - background: #e0e0e0; - } + &:hover { + background: #e0e0e0; } } -.categories { +.categories a, .geozone a { + background: $highlight; + color: $link; - a { + &:hover { background: $highlight; - border-radius: rem-calc(6); - display: inline-block; - font-size: $small-font-size; - margin-bottom: $line-height/3; - padding: $line-height/4 $line-height/3; - text-decoration: none; + color: $link-hover; } } diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 87aed579d..4b4e3ec9c 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -521,7 +521,6 @@ .tags { display: block; - margin: rem-calc(24) 0; a { margin-right: rem-calc(6); diff --git a/app/views/shared/_geozone.html.erb b/app/views/shared/_geozone.html.erb index 7bfdd07a3..bdf5ce89a 100644 --- a/app/views/shared/_geozone.html.erb +++ b/app/views/shared/_geozone.html.erb @@ -1,3 +1,3 @@ - + <%= link_to geozone_name(geozonable), proposals_path(search: geozone_name(geozonable)) %>