Skip to content

Commit 086abfc

Browse files
committed
body_content columns have padding with nested additional div layer
1 parent e3edae2 commit 086abfc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

core/app/views/shared/_content_page.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
if section[:title]
5151
section[:html] = "<h1 id='#{dom_id}'>#{section[:html]}</h1>"
5252
else
53-
section[:html] = "<section id='#{dom_id}'>#{section[:html]}</section>"
53+
section[:html] = "<section id='#{dom_id}'><div class='inner'>#{section[:html]}</div></section>"
5454
end
5555
else
5656
css << "no_#{dom_id}"

core/public/stylesheets/refinery/application.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ body {
77
}
88
#body_content_left {
99
float: left;
10-
width: 590px;
11-
padding-right: 10px;
10+
width: 600px;
1211
}
1312
#body_content_right {
1413
float: right;
15-
padding-left: 10px;
16-
width: 390px;
14+
width: 400px;
1715
}
16+
#body_content_left .inner {
17+
padding-right: 10px;
18+
}
19+
#body_content_right .inner {
20+
padding-left: 10px;
21+
}
1822
#body_content.no_body_content_left #body_content_right,
1923
#body_content.no_body_content_right #body_content_left {
2024
width: 100%;

0 commit comments

Comments
 (0)