leather 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/stylesheets/devise.css.scss +26 -22
- data/app/views/devise/passwords/edit.html.erb +15 -17
- data/app/views/devise/passwords/new.html.erb +10 -12
- data/app/views/devise/registrations/new.html.erb +19 -21
- data/app/views/devise/sessions/new.html.erb +19 -21
- data/lib/leather/version.rb +1 -1
- metadata +3 -3
@@ -12,22 +12,24 @@ html, body {
|
|
12
12
|
height: 100%;
|
13
13
|
}
|
14
14
|
|
15
|
-
.devise-gradient-bg {
|
16
|
-
@include gradient-vertical($devise-bg-gradient-start, $devise-bg-gradient-end);
|
17
|
-
background-attachment: fixed !important;
|
18
|
-
}
|
19
|
-
|
20
15
|
.devise_sessions, .devise_registrations, .devise_passwords {
|
21
16
|
&.new, &.create {
|
22
17
|
@extend .devise-gradient-bg;
|
18
|
+
@extend .devise-box;
|
23
19
|
}
|
24
20
|
}
|
25
21
|
.devise_passwords.edit {
|
26
22
|
@extend .devise-gradient-bg;
|
23
|
+
@extend .devise-box;
|
27
24
|
}
|
28
25
|
|
29
26
|
.text-white { color: $white; }
|
30
27
|
|
28
|
+
.devise-gradient-bg {
|
29
|
+
@include gradient-vertical($devise-bg-gradient-start, $devise-bg-gradient-end);
|
30
|
+
background-attachment: fixed !important;
|
31
|
+
}
|
32
|
+
|
31
33
|
.devise-welcome {
|
32
34
|
@extend .text-center;
|
33
35
|
@extend .text-white;
|
@@ -50,24 +52,26 @@ html, body {
|
|
50
52
|
}
|
51
53
|
|
52
54
|
.devise-box {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
55
|
+
form {
|
56
|
+
@include border-top-radius($border-radius-base);
|
57
|
+
@include border-bottom-radius($border-radius-base);
|
58
|
+
border: 1px solid $white;
|
59
|
+
background: $white;
|
60
|
+
box-shadow: 1px 1px 3px $gray-dark;
|
61
|
+
padding: 40px 40px 20px;
|
62
|
+
border-top: 6px solid $devise-box-border-color;
|
63
|
+
#error_explanation {
|
64
|
+
@extend .alert;
|
65
|
+
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
|
66
|
+
h2 {
|
67
|
+
margin-top: 0;
|
68
|
+
font-size: 15px;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
.actions {
|
72
|
+
@extend .text-center;
|
73
|
+
padding-top: 30px;
|
66
74
|
}
|
67
|
-
}
|
68
|
-
.actions {
|
69
|
-
@extend .text-center;
|
70
|
-
padding-top: 30px;
|
71
75
|
}
|
72
76
|
}
|
73
77
|
|
@@ -2,26 +2,24 @@
|
|
2
2
|
<%= render "devise/shared/welcome", subtitle: "Change your password." %>
|
3
3
|
<div class="row">
|
4
4
|
<div class="col-md-6 col-md-offset-3">
|
5
|
-
|
6
|
-
<%=
|
7
|
-
|
8
|
-
<%= f.hidden_field :reset_password_token %>
|
5
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
6
|
+
<%= devise_error_messages! %>
|
7
|
+
<%= f.hidden_field :reset_password_token %>
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
<div class="form-group" >
|
10
|
+
<%= f.label :password, "New password" %>
|
11
|
+
<%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control" %>
|
12
|
+
</div>
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
<div class="form-group" >
|
15
|
+
<%= f.label :password_confirmation, "Confirm new password" %>
|
16
|
+
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
|
17
|
+
</div>
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
</div>
|
19
|
+
<div class="actions">
|
20
|
+
<%= f.submit "Send instructions", class: "btn btn-default" %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
25
23
|
<%= render "devise/shared/links" %>
|
26
24
|
</div>
|
27
25
|
</div>
|
@@ -2,20 +2,18 @@
|
|
2
2
|
<%= render "devise/shared/welcome", subtitle: "Reset your password." %>
|
3
3
|
<div class="row">
|
4
4
|
<div class="col-md-6 col-md-offset-3">
|
5
|
-
|
6
|
-
<%=
|
7
|
-
<%= devise_error_messages! %>
|
5
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
6
|
+
<%= devise_error_messages! %>
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
<div class="form-group" >
|
9
|
+
<%= f.label :email, "Email address" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
|
+
</div>
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
</div>
|
13
|
+
<div class="actions">
|
14
|
+
<%= f.submit "Send instructions", class: "btn btn-default" %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
19
17
|
<%= render "devise/shared/links" %>
|
20
18
|
</div>
|
21
19
|
</div>
|
@@ -2,30 +2,28 @@
|
|
2
2
|
<%= render "devise/shared/welcome", subtitle: "Set up your new account today." %>
|
3
3
|
<div class="row">
|
4
4
|
<div class="col-md-6 col-md-offset-3">
|
5
|
-
|
6
|
-
<%=
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</div>
|
5
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
6
|
+
<%= devise_error_messages! %>
|
7
|
+
|
8
|
+
<div class="form-group" >
|
9
|
+
<%= f.label :email, "Email address" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
|
+
</div>
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<div class="form-group">
|
14
|
+
<%= f.label :password %>
|
15
|
+
<%= f.password_field :password, autocomplete: "off", class: "form-control" %>
|
16
|
+
</div>
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
<div class="form-group">
|
19
|
+
<%= f.label :password_confirmation, "Confirm your password" %>
|
20
|
+
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
|
21
|
+
</div>
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
</div>
|
23
|
+
<div class="actions">
|
24
|
+
<%= f.submit "Create my account", class: "btn btn-default" %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
29
27
|
<%= render "devise/shared/links" %>
|
30
28
|
</div>
|
31
29
|
</div>
|
@@ -2,30 +2,28 @@
|
|
2
2
|
<%= render "devise/shared/welcome", subtitle: "Sign in to your account." %>
|
3
3
|
<div class="row">
|
4
4
|
<div class="col-md-6 col-md-offset-3">
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div class="form-group">
|
13
|
-
<%= f.label :password %>
|
14
|
-
<%= f.password_field :password, autocomplete: "off", class: "form-control" %>
|
15
|
-
</div>
|
5
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
6
|
+
<div class="form-group">
|
7
|
+
<%= f.label :email, "Email address" %>
|
8
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
9
|
+
</div>
|
16
10
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
</div>
|
22
|
-
<% end -%>
|
11
|
+
<div class="form-group">
|
12
|
+
<%= f.label :password %>
|
13
|
+
<%= f.password_field :password, autocomplete: "off", class: "form-control" %>
|
14
|
+
</div>
|
23
15
|
|
24
|
-
|
25
|
-
|
16
|
+
<% if devise_mapping.rememberable? -%>
|
17
|
+
<div>
|
18
|
+
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
|
19
|
+
<span class="pull-right"><%= link_to "Forgot your password?", new_password_path(resource_name) %></span>
|
26
20
|
</div>
|
27
|
-
<% end
|
28
|
-
|
21
|
+
<% end -%>
|
22
|
+
|
23
|
+
<div class="actions">
|
24
|
+
<%= f.submit "Sign in", class: "btn btn-default" %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
29
27
|
<%= render "devise/shared/links" %>
|
30
28
|
</div>
|
31
29
|
</div>
|
data/lib/leather/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
segments:
|
176
176
|
- 0
|
177
|
-
hash:
|
177
|
+
hash: 1505680980325842506
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
none: false
|
180
180
|
requirements:
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
segments:
|
185
185
|
- 0
|
186
|
-
hash:
|
186
|
+
hash: 1505680980325842506
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
189
|
rubygems_version: 1.8.24
|