polishes forms styles on devise views

This commit is contained in:
Alberto Garcia Cabeza
2017-01-09 19:10:15 +01:00
parent ea70e0a5db
commit 508de35320
7 changed files with 31 additions and 21 deletions

View File

@@ -3,13 +3,13 @@
<% if current_page?(new_user_session_path) %>
<div class="row">
<div class="small-12 column">
<div class="margin">
<div class="margin-bottom text-center">
<strong><%= t("omniauth.info_sign_in") %></strong>
</div>
</div>
<% if feature? :twitter_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.twitter.name"), user_omniauth_authorize_path(:twitter),
title: t("omniauth.twitter.sign_in"),
class: "button-twitter button expanded" %>
@@ -17,7 +17,7 @@
<% end %>
<% if feature? :facebook_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.facebook.name"), user_omniauth_authorize_path(:facebook),
title: t("omniauth.facebook.sign_in"),
class: "button-facebook button expanded" %>
@@ -25,7 +25,7 @@
<% end %>
<% if feature? :google_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.google_oauth2.name"), user_omniauth_authorize_path(:google_oauth2),
title: t("omniauth.google_oauth2.sign_in"),
class: "button-google button expanded" %>
@@ -40,11 +40,13 @@
<% elsif current_page?(new_user_registration_path) %>
<div class="row">
<div class="small-12 column">
<p><%= t("omniauth.info_sign_up") %></p>
<div class="margin-bottom text-center">
<strong><%= t("omniauth.info_sign_up") %></strong>
</div>
</div>
<% if feature? :twitter_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.twitter.name"), user_omniauth_authorize_path(:twitter),
title: t("omniauth.twitter.sign_up"),
class: "button-twitter button expanded" %>
@@ -52,7 +54,7 @@
<% end %>
<% if feature? :facebook_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.facebook.name"), user_omniauth_authorize_path(:facebook),
title: t("omniauth.facebook.sign_up"),
class: "button-facebook button expanded" %>
@@ -60,15 +62,17 @@
<% end %>
<% if feature? :google_login %>
<div class="small-12 medium-4 column end">
<div class="small-12 medium-6 large-4 column end">
<%= link_to t("omniauth.google_oauth2.name"), user_omniauth_authorize_path(:google_oauth2),
title: t("omniauth.google_oauth2.sign_up"),
class: "button-google button expanded" %>
</div>
<% end %>
</div>
<hr/>
<div class="small-12 column auth-divider">
<span><%= t("omniauth.or_fill") %></span>
</div>
</div>
<% end %>
<% end %>