-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remoção do .coffee, inclusão do mixin
- Loading branch information
Showing
11 changed files
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
@import "mixins/all-mixin"; | ||
|
||
.new_user { | ||
margin-top: 85px; | ||
.label, .checkbox { | ||
color: white; | ||
} | ||
|
||
section { | ||
@include border-opacity(#ffffff, 0.35); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@mixin border-opacity($color, $opacity: 0.3) { | ||
border: 1px solid rgba($color, $opacity); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,40 @@ | ||
<h2>Log in</h2> | ||
<section class="section has-text-white has-text-centered"> | ||
<h2 class="is-size-3 has-text-weight-bold">Log in</h2> | ||
</section> | ||
|
||
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | ||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<section class="section"> | ||
<div class="field"> | ||
<%= f.label :email, class: "label" %> | ||
<p class="control has-icons-left"> | ||
<%= f.email_field :email, autofocus: true, placeholder: "Email", class: "input" %> | ||
<span class="icon is-small is-left"> | ||
<i class="fas fa-envelope"></i> | ||
</span> | ||
</p> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :password %><br /> | ||
<%= f.password_field :password, autocomplete: "current-password" %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :password, class: "label" %> | ||
<p class="control has-icons-left"> | ||
<%= f.password_field :password, placeholder: "Email", autocomplete: "off", class: "input" %> | ||
<span class="icon is-small is-left"> | ||
<i class="fas fa-lock"></i> | ||
</span> | ||
</p> | ||
</div> | ||
|
||
<% if devise_mapping.rememberable? -%> | ||
<div class="field"> | ||
<%= f.check_box :remember_me %> | ||
<%= f.label :remember_me %> | ||
</div> | ||
<% end -%> | ||
<% if devise_mapping.rememberable? -%> | ||
<div class="field"> | ||
<%= f.check_box :remember_me %> | ||
<%= f.label :remember_me, class: "checkbox" %> | ||
</div> | ||
<% end -%> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Log in" %> | ||
</div> | ||
<div class="actions"> | ||
<%= f.submit "Log in", class: "button is-success" %> | ||
</div> | ||
</section> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |