Skip to content

Commit baf4315

Browse files
committed
Fixed homepage partial template content and banner layout.
1 parent 2375bec commit baf4315

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
@@ -301,7 +301,8 @@ body.search,
301301
body.bookmarks,
302302
body.user,
303303
body.snippet-list,
304-
body.with-sidebar {
304+
body.with-sidebar,
305+
body.frontpage {
305306
#content {
306307
@media #{$small-up} {
307308
@include grid-column(12);
@@ -324,7 +325,7 @@ body.with-sidebar {
324325
}
325326

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

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)