From 1ba4fdd3e1553c271b07c9692e185b00ce95a470 Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Tue, 30 Jul 2013 14:12:47 -0400 Subject: [PATCH] refine grid + remove styling attributes from content id --- app/assets/stylesheets/common.css.scss | 16 ++++------------ app/views/layouts/site.html.erb | 2 +- app/views/user/new.html.erb | 4 ++-- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 45e644895..edf6eb85f 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -73,6 +73,10 @@ abbr, acronym { .col11 { float:left; width:91.6666%; } .col12 { width:100%; } + +.pad1 { padding: $lineheight/2; } +.pad2 { padding: $lineheight; } + /* Default rules for the body of every page */ * { @@ -1014,7 +1018,6 @@ ul.results-list li { border-bottom: 1px solid #ccc; } /* Rules for the main content area */ #content { - padding: $lineheight; position: relative; } @@ -1032,12 +1035,9 @@ ul.results-list li { border-bottom: 1px solid #ccc; } .site-welcome, .user-new { .content-heading { - text-align: center; } #content { - max-width: 700px; - margin: auto; } } @@ -2271,14 +2271,6 @@ a.button { background-position: -300px 0; } - .pad1 { - padding: 10px; - } - - .pad2 { - padding: 20px; - } - .start-mapping { background: #EB6F67; color: #FFF; diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index a0e894e46..863bb8d69 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -153,7 +153,7 @@ <%= yield :heading %> <% end %> -
+
<%= yield %>
diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 7d5439d6f..1368dfe19 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -2,7 +2,7 @@

<%= t 'user.new.title' %>

<% end %> -<%= form_for :user, :url => { :action => 'create' }, :html => { :class => 'col6' } do %> +<%= form_for :user, :url => { :action => 'create' }, :html => { :class => 'col6 pad2' } do %> <%= error_messages_for 'user' %> <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %> @@ -70,7 +70,7 @@ <% end %> -
+

<%= t 'user.new.about.header' %>

<%= t 'user.new.about.html' %>
-- 2.43.2