diff --git a/app/assets/stylesheets/_variables.scss b/app/assets/stylesheets/_variables.scss index 168778d..9291d45 100644 --- a/app/assets/stylesheets/_variables.scss +++ b/app/assets/stylesheets/_variables.scss @@ -47,7 +47,9 @@ $blue: #5a9aa8; $purple: #6a5a8c; $gold: #FFD700; +$dark-blue: #046; $dark-gray: #232323; + $medium-gray: #2e2e2e; $light-blue: #F3F3FB; diff --git a/app/assets/stylesheets/components/_flashes.scss b/app/assets/stylesheets/components/_flashes.scss index b01d9c7..bb5d9d1 100644 --- a/app/assets/stylesheets/components/_flashes.scss +++ b/app/assets/stylesheets/components/_flashes.scss @@ -32,3 +32,34 @@ } } } + +/* + Error Messages +*/ + +div#errors { + @extend .flash.error; + @include span-columns(12); + margin-bottom: em(20); + + &:before { + height: 100%; + } + + strong { + @include span-columns(12); + margin-bottom: em(10); + } + + ul.errors { + @include span-columns(12); + + li { + margin-bottom: .5em; + + &:last-child { + margin-bottom: 0; + } + } + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/components/_forms.scss b/app/assets/stylesheets/components/_forms.scss index fd8e7bb..c67c203 100644 --- a/app/assets/stylesheets/components/_forms.scss +++ b/app/assets/stylesheets/components/_forms.scss @@ -101,26 +101,35 @@ form.dark { form.square { @include span-columns(12); + margin: em(20) 0; - &.small { - @include span-columns(6); - } - - &.medium { - @include span-columns(9); - } - - &.large { + .horizontal { @include span-columns(12); - } + margin-bottom: em(20); - > .field_with_errors:first-child, - > label { - @include span-columns(3); - } + &.small { + @include span-columns(6); + } - input { - @include span-columns(9); + &.medium { + @include span-columns(9); + } + + &.large { + @include span-columns(12); + } + + > .field_with_errors:first-child, + > label, + > .label { + @include span-columns(3); + padding: em(11) 0; + line-height: em(16); + } + + input { + @include span-columns(9); + } } .controls { diff --git a/app/assets/stylesheets/layout/_body.scss b/app/assets/stylesheets/layout/_body.scss index ea835c7..3acbb97 100644 --- a/app/assets/stylesheets/layout/_body.scss +++ b/app/assets/stylesheets/layout/_body.scss @@ -1,8 +1,8 @@ body { margin: 0; padding: 0; - background: lighten($blue, 10); - @include background-image(linear-gradient(lighten($blue, 10), $medium-gray)); + background: $dark-blue; + @include background-image(linear-gradient($dark-blue, $medium-gray)); } %container-padded { diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 9879035..38a4b65 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -53,7 +53,7 @@ class UsersController < ApplicationController if @user.valid? and @user.save @user.profile = Profile.new @user.profile.user = @user - @user.profile.save() + @user.profile.save redirect_to action: :show, id: @user.id save_session @user else diff --git a/app/views/articles/_article.html.erb b/app/views/articles/_article.html.erb index 41cc1dc..62c2346 100644 --- a/app/views/articles/_article.html.erb +++ b/app/views/articles/_article.html.erb @@ -10,7 +10,7 @@
- <%= f.label :username %>
- <%= f.text_field :username %>
-
- <%= f.label :raw_password, "Password" %>
- <%= f.password_field :raw_password %>
-
- <%= f.label :email %>
- <%= f.text_field :email %>
-
- <%= f.label :steamid %> (e.g. 0:1:23456789)
- <%= f.text_field :steamid %>
- <%= link_to "You can use this tool to find out", "/files/client/steamid_finder.exe" %>
-
- <%= f.label :birthdate %>
- <%= date_select :user, :birthdate, :order => [:year, :month, :day], :start_year => 1950 %>
-