Adds social icons on header

This commit is contained in:
Alberto Garcia Cabeza
2015-10-01 12:56:50 +02:00
parent a39df80112
commit 355079f205
5 changed files with 54 additions and 33 deletions

View File

@@ -763,30 +763,6 @@ footer {
opacity: .75; opacity: .75;
margin-top: rem-calc(24); margin-top: rem-calc(24);
padding-top: rem-calc(12); padding-top: rem-calc(12);
.social {
margin-top: rem-calc(24);
text-align: center;
@media (min-width: $small-breakpoint) {
margin-top: 0;
text-align: right;
}
a {
font-size: rem-calc(24);
margin: 0 rem-calc(12);
text-decoration: none;
@media (min-width: $small-breakpoint) {
font-size: rem-calc(18);
}
&:last-child {
margin-right: 0;
}
}
}
} }
// 06. Tags // 06. Tags
@@ -1423,6 +1399,37 @@ table {
} }
} }
.social {
margin-top: rem-calc(24);
text-align: center;
@media (min-width: $small-breakpoint) {
margin-top: 0;
text-align: right;
}
a {
font-size: rem-calc(24);
line-height: rem-calc(24);
margin: 0 rem-calc(12);
text-decoration: none;
vertical-align: middle;
&:hover {
opacity: .5;
text-decoration: none;
}
@media (min-width: $small-breakpoint) {
font-size: rem-calc(18);
}
&:last-child {
margin-right: 0;
}
}
}
.share-supported { .share-supported {
.social-share-button { .social-share-button {

View File

@@ -51,13 +51,13 @@
</div> </div>
<div class="small-12 medium-2 column social"> <div class="small-12 medium-2 column social">
<%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("layouts.footer.twitter") do %> <%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
<i class="icon-twitter"></i> <i class="icon-twitter"></i>
<% end %> <% end %>
<%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("layouts.footer.facebook") do %> <%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("social.facebook") do %>
<i class="icon-facebook"></i> <i class="icon-facebook"></i>
<% end %> <% end %>
<%= link_to "http://diario.madrid.es/blog/category/gobiernoabierto/", target: "_blank", title: t("layouts.footer.blog") do %> <%= link_to "http://diario.madrid.es/blog/category/gobiernoabierto/", target: "_blank", title: t("social.blog") do %>
<i class="icon-blog"></i> <i class="icon-blog"></i>
<% end %> <% end %>
</div> </div>

View File

@@ -6,6 +6,18 @@
<%= link_to t("layouts.header.participation"), root_path, class: ("selected" unless current_page?("/transparency") || current_page?("/opendata")) %>&nbsp;| <%= link_to t("layouts.header.participation"), root_path, class: ("selected" unless current_page?("/transparency") || current_page?("/opendata")) %>&nbsp;|
<%= link_to t("layouts.header.external_link_transparency"), "/transparency", class: ("selected" if current_page?("/transparency")) %>&nbsp;| <%= link_to t("layouts.header.external_link_transparency"), "/transparency", class: ("selected" if current_page?("/transparency")) %>&nbsp;|
<%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %> <%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %>
&nbsp;|&nbsp;
<div class="social inline-block">
<%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
<i class="icon-twitter"></i>
<% end %>
<%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("social.facebook") do %>
<i class="icon-facebook"></i>
<% end %>
<%= link_to "http://diario.madrid.es/blog/category/gobiernoabierto/", target: "_blank", title: t("social.blog") do %>
<i class="icon-blog"></i>
<% end %>
</div>
</div> </div>
</div> </div>
</section> </section>

View File

@@ -49,9 +49,6 @@ en:
conditions: "Terms of use" conditions: "Terms of use"
more_info: "More information" more_info: "More information"
accessibility: "Accessibility" accessibility: "Accessibility"
twitter: "Twitter"
facebook: "Facebook"
blog: "Blog"
application: application:
ie_title: "This site is not optimized for your browser" ie_title: "This site is not optimized for your browser"
ie: ie:
@@ -59,6 +56,10 @@ en:
For a better experience we recommend use %{chrome} or %{firefox}." For a better experience we recommend use %{chrome} or %{firefox}."
chrome: "Google Chrome" chrome: "Google Chrome"
firefox: "Firefox" firefox: "Firefox"
social:
twitter: "Twitter"
facebook: "Facebook"
blog: "Blog"
form: form:
error: error error: error
errors: errors errors: errors

View File

@@ -49,9 +49,6 @@ es:
conditions: "Condiciones de uso" conditions: "Condiciones de uso"
more_info: "Más información" more_info: "Más información"
accessibility: "Accesibilidad" accessibility: "Accesibilidad"
twitter: "Twitter"
facebook: "Facebook"
blog: "Blog"
application: application:
ie_title: "Esta web no está optimizada para tu navegador" ie_title: "Esta web no está optimizada para tu navegador"
ie: ie:
@@ -59,6 +56,10 @@ es:
Para una mejor experiencia te recomendamos utilizar %{chrome} o %{firefox}." Para una mejor experiencia te recomendamos utilizar %{chrome} o %{firefox}."
chrome: "Google Chrome" chrome: "Google Chrome"
firefox: "Firefox" firefox: "Firefox"
social:
twitter: "Twitter"
facebook: "Facebook"
blog: "Blog"
form: form:
error: error error: error
errors: errores errors: errores