From 7548b0492deb1d602548264cb913e377ecc63e4c Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Thu, 9 Jun 2016 12:59:55 +0200 Subject: [PATCH] Adds more styles to budget pages --- app/assets/stylesheets/participation.scss | 27 +++++++++++++++++++ app/views/budgets/ballots/_ballot.html.erb | 5 +--- .../budgets/investments/_header.html.erb | 2 +- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 0293bad31..c5a4bf3fd 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1076,6 +1076,33 @@ } } } + + a { + text-decoration: underline; + + &.button { + background: white; + color: $brand; + margin-bottom: rem-calc(3); + text-decoration: none; + } + } + + .social-share-button a { + color: white; + + &.social-share-button-twitter:hover { + color: #40A2D1; + } + + &.social-share-button-facebook:hover { + color: #354F88; + } + + &.social-share-button-google_plus:hover { + color: #CE3E26; + } + } } .progress-votes { diff --git a/app/views/budgets/ballots/_ballot.html.erb b/app/views/budgets/ballots/_ballot.html.erb index 5187c5eaa..5189de92b 100644 --- a/app/views/budgets/ballots/_ballot.html.erb +++ b/app/views/budgets/ballots/_ballot.html.erb @@ -1,9 +1,6 @@
- <%= link_to :back, class: "back" do %> - - <%= t("shared.back") %> - <% end %> + <%= render 'shared/back_link' %>

<%= t("budgets.ballots.show.title") %>

diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb index d03214a1a..4aa0b35f4 100644 --- a/app/views/budgets/investments/_header.html.erb +++ b/app/views/budgets/investments/_header.html.erb @@ -10,7 +10,7 @@ <% end %> <% if can? :show, @ballot %> - <%= link_to t("budget.investments.header.check_ballot"), ballot_path, class: "button float-right" %> + <%= link_to t("budget.investments.header.check_ballot"), budget_ballot_path(@budget, @ballot), class: "button float-right" %> <% end %>