fixes heading inside ul html issue

This commit is contained in:
decabeza
2017-08-09 18:33:09 +02:00
parent 411fb96ec7
commit 7becda96ed
3 changed files with 17 additions and 18 deletions

View File

@@ -216,9 +216,8 @@ a {
}
.menu.vertical {
background: #fff;
margin: $line-height 0;
padding: $line-height;
padding: $line-height 0;
li {
margin-bottom: $line-height;
@@ -416,6 +415,7 @@ header {
.menu {
&.is-dropdown-submenu {
background: #fff;
margin: 0;
margin-top: rem-calc(-24);
padding: 0;

View File

@@ -2,9 +2,9 @@
style="<%= results_type != :compatible ? 'display: none' : '' %>"
id="<%= results_type %>-container">
<h3 class="inline-block">
<h4 class="inline-block">
<%= title %>
</h3>
</h4>
<table id="budget-investments-<%= results_type %>" class="table-for-mobile">
<thead>

View File

@@ -37,21 +37,20 @@
<div class="row">
<div class="small-12 medium-3 large-2 column">
<div class="row">
<ul class="menu vertical no-margin-top no-padding-top">
<h3>
<%= t("budgets.results.heading_selection_title") %>
</h3>
<h3 class="margin-bottom">
<%= t("budgets.results.heading_selection_title") %>
</h3>
<ul class="menu vertical no-margin-top no-padding-top">
<% @budget.headings.order('id ASC').each do |heading| %>
<li>
<%= link_to heading.name,
budget_results_path(@budget, heading_id: heading.to_param),
class: heading.to_param == @heading.to_param ? 'active' : '' %>
</li>
<% end %>
</ul>
</div>
<% @budget.headings.order('id ASC').each do |heading| %>
<li>
<%= link_to heading.name,
budget_results_path(@budget, heading_id: heading.to_param),
class: heading.to_param == @heading.to_param ? 'active' : '' %>
</li>
<% end %>
</ul>
</div>
<span class="float-right"><%= link_to t("budgets.results.show_all_link"), "#", class: "js-toggle-link button hollow margin-bottom", data: {'toggle-selector' => '.js-discarded', 'toggle-text' => t("budgets.results.hide_discarded_link")} %></span>