fixes styles for poll subnav

This commit is contained in:
decabeza
2017-10-19 12:23:14 +02:00
parent 8be8bb07f9
commit 78fa77b28d
2 changed files with 27 additions and 17 deletions

View File

@@ -214,6 +214,8 @@ a {
margin-bottom: $line-height / 2;
li {
font-size: $base-font-size;
margin-bottom: 0;
margin-right: $line-height / 2;
@include breakpoint(medium) {

View File

@@ -1,21 +1,29 @@
<div class="row">
<div class="row margin-top">
<div class="small-12 column">
<ul class="tabs">
<li class="tabs-title">
<%= link_to t("polls.show.results_menu"),
poll_results_path(@poll),
class: (controller_name == "polls" && action_name == "results" ? "is-active" : "") %>
</li>
<li class="tabs-title">
<%= link_to t("polls.show.stats_menu"),
poll_stats_path(@poll),
class: (controller_name == "polls" && action_name == "stats" ? "is-active" : "") %>
</li>
<li class="tabs-title is-active">
<%= link_to t("polls.show.info_menu"),
poll_path(@poll),
class: (controller_name == "polls" && action_name == "show" ? "is-active" : "") %>
</li>
<ul class="menu simple clear">
<% if controller_name == "polls" && action_name == "results" %>
<li class="active">
<h2><%= t("polls.show.results_menu") %></h2>
</li>
<% else %>
<li><%= link_to t("polls.show.results_menu"), poll_results_path(@poll) %></li>
<% end %>
<% if controller_name == "polls" && action_name == "stats" %>
<li class="active">
<h2><%= t("polls.show.stats_menu") %></h2>
</li>
<% else %>
<li><%= link_to t("polls.show.stats_menu"), poll_stats_path(@poll) %></li>
<% end %>
<% if controller_name == "polls" && action_name == "show" %>
<li class="active">
<h2><%= t("polls.show.info_menu") %></h2>
</li>
<% else %>
<li><%= link_to t("polls.show.info_menu"), poll_path(@poll) %></li>
<% end %>
</ul>
</div>
</div>