Merge pull request #1910 from consul/filter-subnav

Filter subnav
This commit is contained in:
BertoCQ
2017-09-25 19:02:30 +02:00
committed by GitHub
2 changed files with 25 additions and 4 deletions

View File

@@ -205,19 +205,40 @@ a {
.menu.simple {
border-bottom: 1px solid $border;
margin-bottom: $line-height;
clear: both;
margin-bottom: $line-height / 2;
li {
padding-bottom: rem-calc(7);
margin-right: $line-height / 2;
@include breakpoint(medium) {
margin-right: $line-height * 1.5;
}
a {
color: $text-medium;
color: $text;
display: inline-block;
font-weight: bold;
position: relative;
text-align: left;
&:hover {
color: $link;
}
}
&.active {
border-bottom: 2px solid $brand;
color: $brand;
}
&:not(.active) {
margin-bottom: $line-height / 3;
}
}
h2 {
font-size: $base-font-size;
}
}

View File

@@ -3,7 +3,7 @@
<% @valid_filters.each do |filter| %>
<% if @current_filter == filter %>
<li class="active"><%= t("#{i18n_namespace}.filters.#{filter}") %></li>
<li class="active"><h2><%= t("#{i18n_namespace}.filters.#{filter}") %></h2></li>
<% else %>
<li><%= link_to t("#{i18n_namespace}.filters.#{filter}"),
current_path_with_query_params(filter: filter, page: 1) %></li>