Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
styles looking decent
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieay committed Jul 15, 2016
1 parent 96e6c09 commit 37c21b9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Expand Up @@ -33,5 +33,6 @@
@import 'components/slabs';
@import 'components/striped-table';
@import 'components/sign-up';
@import 'components/profile';

@import 'junk_drawer';
5 changes: 0 additions & 5 deletions app/assets/stylesheets/components/_forms.scss
Expand Up @@ -3,11 +3,6 @@ input[disabled] {
color: lighten($color-gray-dark, 50%);
}

input,
input[type="text"] {
border-radius: $border-radius;
}

.time-input {
float: left;
width: 33%;
Expand Down
12 changes: 12 additions & 0 deletions app/assets/stylesheets/components/_profile.scss
@@ -0,0 +1,12 @@
.profile-wrapper {
@include span-columns(8);
@include shift(2);
border: 1px solid $color-gray-neutral;
margin-top: .5em;
padding-left: 1em;
padding-right: 1em;

form {
max-width: none;
}
}
4 changes: 3 additions & 1 deletion app/views/users/edit.html.erb
@@ -1,4 +1,5 @@
<div class="usa-grid">
<div class="profile-wrapper">
<h1>Profile</h1>

<%= simple_form_for @user, method: :put do |f| %>
Expand All @@ -22,6 +23,7 @@
</p>
<%= f.input :credit_card_form_url %>
<%= f.submit 'Update', class: 'usa-button usa-button-outline' %>
<%= f.submit class: 'usa-button usa-button-outline' %>
<% end %>
</div>
</div>
5 changes: 3 additions & 2 deletions config/locales/simple_form.en.yml
Expand Up @@ -3,7 +3,7 @@ en:
"yes": 'Yes'
"no": 'No'
required:
mark: ''
html: '<span class="usa-additional_text">Required</span>'
error_notification:
default_message: "Please review the problems below:"
labels:
Expand Down Expand Up @@ -38,6 +38,7 @@ en:
auction:
create: "Create"
update: "Update"
submit:
user:
update: "Update"
bid:
create: "Place bid"

0 comments on commit 37c21b9

Please sign in to comment.