Skip to content

Commit

Permalink
body_content columns have padding with nested additional div layer
Browse files Browse the repository at this point in the history
  • Loading branch information
caplod committed Feb 25, 2011
1 parent e3edae2 commit 086abfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/app/views/shared/_content_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if section[:title]
section[:html] = "<h1 id='#{dom_id}'>#{section[:html]}</h1>"
else
section[:html] = "<section id='#{dom_id}'>#{section[:html]}</section>"
section[:html] = "<section id='#{dom_id}'><div class='inner'>#{section[:html]}</div></section>"
end
else
css << "no_#{dom_id}"
Expand Down
12 changes: 8 additions & 4 deletions core/public/stylesheets/refinery/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ body {
}
#body_content_left {
float: left;
width: 590px;
padding-right: 10px;
width: 600px;
}
#body_content_right {
float: right;
padding-left: 10px;
width: 390px;
width: 400px;
}
#body_content_left .inner {
padding-right: 10px;
}
#body_content_right .inner {
padding-left: 10px;
}
#body_content.no_body_content_left #body_content_right,
#body_content.no_body_content_right #body_content_left {
width: 100%;
Expand Down

0 comments on commit 086abfc

Please sign in to comment.