From 6f74f8ab8a1b7277e7bcb222d419e054f29ddc81 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Mon, 14 Mar 2016 14:17:49 +0100 Subject: [PATCH] Fixes debates votes styles --- app/assets/stylesheets/participation.scss | 4 ++-- app/views/debates/_votes.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 182c52863..bc6aa3694 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -70,7 +70,7 @@ line-height: rem-calc(48); vertical-align: super; - span { + span.percentage { color: white; display: inline-block; font-size: rem-calc(16); @@ -730,7 +730,7 @@ @media (min-width: $small-breakpoint) { .like, .unlike { - span { + span.percentage { display: block; line-height: $line-height/2; } diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb index 054696478..a4fd722ee 100644 --- a/app/views/debates/_votes.html.erb +++ b/app/views/debates/_votes.html.erb @@ -4,7 +4,7 @@ <%= link_to vote_debate_path(debate, value: 'yes'), class: "like #{voted_classes[:in_favor]}", title: t('votes.agree'), method: "post", remote: true do %> - <%= votes_percentage('likes', debate) %> + <%= votes_percentage('likes', debate) %> <% end %> @@ -13,7 +13,7 @@
<%= link_to vote_debate_path(debate, value: 'no'), class: "unlike #{voted_classes[:against]}", title: t('votes.disagree'), method: "post", remote: true do %> - <%= votes_percentage('dislikes', debate) %> + <%= votes_percentage('dislikes', debate) %> <% end %>