Fixes some classes for foundation 6

This commit is contained in:
Alberto Garcia Cabeza
2016-02-29 13:52:31 +01:00
parent 3752f3a53b
commit 5615f19ba9
7 changed files with 19 additions and 15 deletions

View File

@@ -368,7 +368,6 @@ header {
}
.subnavigation {
padding-bottom: $line-height;
@media (min-width: $small-breakpoint) {
background: white;
@@ -1056,11 +1055,19 @@ table {
// 13. Social
// - - - - - - - - - - - - - - - - - - - - - - - - -
.button.button-twitter,
.button.button-facebook,
.button.button-google {
height: $line-height*2;
line-height: $line-height*2;
padding: 0;
position: relative;
}
.button.button-twitter {
background: #45B0E3;
&:before {
background: #40A2D1;
content: "f";
font-family: "icons" !important;
font-size: rem-calc(24);
@@ -1100,7 +1107,6 @@ table {
background: #3B5998;
&:before {
background: #354F88;
content: "A";
font-family: "icons" !important;
font-size: rem-calc(24);
@@ -1140,7 +1146,6 @@ table {
background: #DE4C34;
&:before {
background: #CE3E26;
content: "B";
font-family: "icons" !important;
font-size: rem-calc(24);

View File

@@ -856,7 +856,6 @@
color: $warning-color;
font-size: $small-font-size;
line-height: rem-calc(24);
padding-top: rem-calc(6);
a {
color: $warning-color;

View File

@@ -3,30 +3,30 @@
<% if current_page?(new_user_session_path) %>
<% if feature? :twitter_login %>
<%= link_to t("omniauth.twitter.sign_in"), user_omniauth_authorize_path(:twitter), class: "button-twitter button radius expand" %>
<%= link_to t("omniauth.twitter.sign_in"), user_omniauth_authorize_path(:twitter), class: "button-twitter button expanded" %>
<% end %>
<% if feature? :facebook_login %>
<%= link_to t("omniauth.facebook.sign_in"), user_omniauth_authorize_path(:facebook), class: "button-facebook button radius expand" %>
<%= link_to t("omniauth.facebook.sign_in"), user_omniauth_authorize_path(:facebook), class: "button-facebook button expanded" %>
<% end %>
<% if feature? :google_login %>
<%= link_to t("omniauth.google_oauth2.sign_in"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button radius expand" %>
<%= link_to t("omniauth.google_oauth2.sign_in"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button expanded" %>
<% end %>
<hr/>
<% elsif current_page?(new_user_registration_path) %>
<% if feature? :twitter_login %>
<%= link_to t("omniauth.twitter.sign_up"), user_omniauth_authorize_path(:twitter), class: "button-twitter button radius expand" %>
<%= link_to t("omniauth.twitter.sign_up"), user_omniauth_authorize_path(:twitter), class: "button-twitter button expanded" %>
<% end %>
<% if feature? :facebook_login %>
<%= link_to t("omniauth.facebook.sign_up"), user_omniauth_authorize_path(:facebook), class: "button-facebook button radius expand" %>
<%= link_to t("omniauth.facebook.sign_up"), user_omniauth_authorize_path(:facebook), class: "button-facebook button expanded" %>
<% end %>
<% if feature? :google_login %>
<%= link_to t("omniauth.google_oauth2.sign_up"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button radius expand" %>
<%= link_to t("omniauth.google_oauth2.sign_up"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button expanded" %>
<% end %>
<hr/>

View File

@@ -17,7 +17,7 @@
<div class="small-12 medium-8 large-5 column small-centered margin-top">
<h1>
<%= link_to root_path do %>
<%= image_tag('header_logo_madrid.png', class: 'show-for-medium-up float-left', size: '96x96', alt: t("layouts.header.logo")) %>
<%= image_tag('header_logo_madrid.png', class: 'show-for-medium float-left', size: '96x96', alt: t("layouts.header.logo")) %>
<%= t("layouts.header.open_gov", open: "#{t('layouts.header.open')}").html_safe %>
<% end %>
</h1>

View File

@@ -8,7 +8,7 @@
<%= link_to t("pages.opendata.go_old"), t("layouts.header.external_link_opendata_url"), target: "_blank", class: "button" %>
</div>
<div class="show-for-medium-up small-12 medium-5 column text-center">
<div class="show-for-medium small-12 medium-5 column text-center">
<%= image_tag("icon_home.png", size: "330x240", alt:"", role:"presentation") %>
</div>
</div>

View File

@@ -12,7 +12,7 @@
</ul>
</div>
<div class="show-for-medium-up medium-9 column text-center">
<div class="show-for-medium medium-9 column text-center">
<%= image_tag("map.jpg", usemap: "#map") %>
</div>

View File

@@ -3,7 +3,7 @@
<%= t("devise_views.users.registrations.edit.back_link") %>
<% end %>
<h1><%= t("devise_views.users.registrations.edit.edit") %></h1>
<h2><%= t("devise_views.users.registrations.edit.edit") %></h2>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>