Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions app/assets/stylesheets/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
}
}

.action-button {
width: 100%;
width: 10em;
height: 2.3em;
min-width: 4em;
border: 0.2em;
border-radius: 0.9em;
background-color: $color-primary;
}

.form-footer {
.action-button {
min-width: 4em;
width: 100%;
width: 10em;
}
}

.form-label {
cursor: pointer;
font-weight: bold;
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/passwords/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'form-field' %>

<div class="form-footer">
<%= f.submit "Send me reset password instructions", class: 'login-button' %>
<%= f.submit "Send me reset password instructions", class: 'action-button' %>
</div>
<% end %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-field' %>

<div class="form-footer">
<%= f.submit "Sign up", class: 'login-button' %>
<%= f.submit "Sign up", class: 'action-button' %>
</div>
<% end %>
<%= render "devise/shared/links" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<% end -%>

<div class="form-footer">
<%= f.submit "Login", class: 'login-button' %>
<%= f.submit "Login", class: 'action-button' %>
</div>

<%= render "devise/shared/links" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/health_attributes/_form.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= f.text_field :name, class: "form-field" %>
<%= hidden_field_tag 'target_id', @target.id %>
<div class="form-footer">
<%= f.submit 'Save', class: 'button-primary' %>
<%= f.submit 'Save', class: 'action-button' %>
</div>
<% end %>
</section>
2 changes: 1 addition & 1 deletion app/views/projects/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


<div class="form-footer">
<%= f.submit 'Save', class: 'button-primary' %>
<%= f.submit 'Save', class: 'action-button' %>
</div>
<% end %>
</section>
2 changes: 1 addition & 1 deletion app/views/targets/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<%= hidden_field_tag 'project_id', @project.id %>

<div class="form-footer">
<%= f.submit 'Save', class: 'button-primary' %>
<%= f.submit 'Save', class: 'action-button' %>
</div>
<% end %>
<%= render partial: 'hints' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tasks/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<%= hidden_field_tag 'project_id', @project.id %>

<div class="form-footer">
<%= f.submit "Add Task", class: 'button-primary' %>
<%= f.submit "Add Task", class: 'action-button' %>
</div>
<% end %>
</section>