Skip to content

Commit e6ec93a

Browse files
committed
Fixed homepage partial template content and banner layout.
1 parent 55cc528 commit e6ec93a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

djangosnippets/static/scss/main.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ body.search,
300300
body.bookmarks,
301301
body.user,
302302
body.snippet-list,
303-
body.with-sidebar {
303+
body.with-sidebar,
304+
body.frontpage {
304305
#content {
305306
@media #{$small-up} {
306307
@include grid-column(12);
@@ -323,7 +324,7 @@ body.with-sidebar {
323324
}
324325

325326
body.frontpage, {
326-
#content, #sidebar {
327+
#content.main, #sidebar.main {
327328
@media #{$small-up} {
328329
@include grid-column(12, $last-column: true);
329330
}

djangosnippets/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959

6060
<div id="base-container">
6161
<h1>{% block content_header %}{% endblock %}</h1>
62-
<div id="content">
62+
<div id="content" class="main">
6363
{% block content %}
6464
{% endblock %}
6565
</div>
66-
<div id="sidebar">
66+
<div id="sidebar" class="main">
6767
{% block sidebar %}
6868
{% endblock %}
6969
</div>

0 commit comments

Comments
 (0)