Adds sub navigation menu

This commit is contained in:
Alberto Garcia Cabeza
2015-08-17 12:31:05 +02:00
parent 8c6081c163
commit 9f1f64cc3a
4 changed files with 53 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ header {
min-height: rem-calc(480); min-height: rem-calc(480);
&.results { &.results {
min-height: rem-calc(192); min-height: rem-calc(216);
} }
h1 { h1 {
@@ -276,6 +276,35 @@ header {
} }
} }
.subnavigation {
background: white;
border-bottom: 1px solid white;
clear: both;
a {
color: $link;
font-size: rem-calc(14);
font-weight: bold;
&.active {
color: $text;
&:after {
bottom: -17px;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
border-top-color: #fff;
border-width: 8px;
margin-left: -8px;
}
}
}
}
// 05. Footer // 05. Footer
// - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@@ -35,6 +35,21 @@
<%= render 'devise/menu/login_items' %> <%= render 'devise/menu/login_items' %>
<%= render 'shared/admin_login_items' %> <%= render 'shared/admin_login_items' %>
</section> </section>
<section class="subnavigation row text-center">
<div class="small-12 medium-3 column end">
<%= link_to t("layouts.header.welcome"), root_path, class: "active" %>
</div>
<div class="small-12 medium-3 column end">
<%= link_to t("layouts.header.news"), "#" %>
</div>
<div class="small-12 medium-3 column end">
<%= link_to t("layouts.header.debates"), debates_path %>
</div>
<div class="small-12 medium-3 column end">
<%= link_to t("layouts.header.initiatives"), "#" %>
</div>
</section>
</nav> </nav>
</div> </div>

View File

@@ -15,6 +15,10 @@ en:
language: Site language language: Site language
administration: Administration administration: Administration
moderation: Moderation moderation: Moderation
welcome: Welcome
news: News
debates: Debates
initiatives: Initiatives
footer: footer:
copyright: "Ayuntamiento de Madrid, 2015. All rights reserved" copyright: "Ayuntamiento de Madrid, 2015. All rights reserved"
form: form:

View File

@@ -15,6 +15,10 @@ es:
language: Idioma de la página language: Idioma de la página
administration: Administar administration: Administar
moderation: Moderar moderation: Moderar
welcome: Portada
news: Novedades
debates: Debates
initiatives: Iniciativas
footer: footer:
copyright: "Ayuntamiento de Madrid, %{year}. Todos los derechos reservados" copyright: "Ayuntamiento de Madrid, %{year}. Todos los derechos reservados"
form: form: