forked from fixin.me/fixin.me
Style 'Sign in' view
This commit is contained in:
parent
b5c0a6a120
commit
74381494ea
@ -22,12 +22,29 @@ body {
|
|||||||
margin: 0 0.5em;
|
margin: 0 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
border: 1px solid;
|
||||||
|
border-radius: 0.2em;
|
||||||
|
border-color: #cccccc;
|
||||||
|
font-size: 0.9em;
|
||||||
|
padding: 0.1em 0.4em;
|
||||||
|
}
|
||||||
|
input[type=checkbox] {
|
||||||
|
height: 1em;
|
||||||
|
margin: 0;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
input:focus:not([type=checkbox]) {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.application-menu {
|
.application-menu {
|
||||||
height: 2.1em;
|
height: 2.1em;
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
}
|
}
|
||||||
.application-menu a {
|
.application-menu a, input[type=submit] {
|
||||||
border: 0.1em solid;
|
border: 1px solid;
|
||||||
|
background-color: #ffffff;
|
||||||
border-color: #a0a0a0;
|
border-color: #a0a0a0;
|
||||||
border-radius: 0.2em;
|
border-radius: 0.2em;
|
||||||
color: #a0a0a0;
|
color: #a0a0a0;
|
||||||
@ -37,7 +54,10 @@ body {
|
|||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
padding: 0.6em;
|
padding: 0.6em;
|
||||||
}
|
}
|
||||||
.application-menu a:hover {
|
.application-menu a:hover,
|
||||||
|
.application-menu a:focus-visible,
|
||||||
|
input[type=submit]:hover,
|
||||||
|
input[type=submit]:focus-visible {
|
||||||
background-color: #009ade;
|
background-color: #009ade;
|
||||||
border-color: #009ade;
|
border-color: #009ade;
|
||||||
color: white;
|
color: white;
|
||||||
@ -94,3 +114,21 @@ a:not(:hover) {
|
|||||||
.flash button:hover {
|
.flash button:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field + .field, .field + .actions {
|
||||||
|
margin-top: 0.8em;
|
||||||
|
}
|
||||||
|
form label {
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.9em;
|
||||||
|
padding-right: 0.25em;
|
||||||
|
text-align: right;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
form input[type=submit] {
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
font-size: 0.9em;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>FixinMe</title>
|
<title>fixin.me</title>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= csp_meta_tag %>
|
<%= csp_meta_tag %>
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
<h2>Log in</h2>
|
<h2 style="text-align:center;"><%= t :sign_in %></h2>
|
||||||
|
|
||||||
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<%= f.label :email %><br />
|
<%= f.label t(:email) -%>
|
||||||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
<%= f.email_field :email, size: 32, autofocus: true, autocomplete: "email" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<%= f.label :password %><br />
|
<%= f.label t(:password) -%>
|
||||||
<%= f.password_field :password, autocomplete: "current-password" %>
|
<%= f.password_field :password, size: 32, autocomplete: "current-password" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if devise_mapping.rememberable? %>
|
<% if devise_mapping.rememberable? %>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
<%= f.label t(:remember_me) -%>
|
||||||
<%= f.check_box :remember_me %>
|
<%= f.check_box :remember_me %>
|
||||||
<%= f.label :remember_me %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<%= f.submit "Log in" %>
|
<%= f.submit t(:sign_in) %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
en:
|
en:
|
||||||
|
email: "E-mail"
|
||||||
|
password: "Password"
|
||||||
|
register: "Register"
|
||||||
|
remember_me: "Remember me"
|
||||||
sign_in: "Sign in"
|
sign_in: "Sign in"
|
||||||
sign_out: "Sign out"
|
sign_out: "Sign out"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user