Different padding for one- and two-column view

This commit is contained in:
str4d
2015-05-30 03:16:39 +00:00
parent 7b592736dd
commit fa7cfd9fe4
2 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,7 @@
<h1>{{ self.title() }}</h1>
</div>
<main role="main" class="inner">
<main role="main" class="inner{% if self.content_nav() or self.sidebar() or self.lastupdated() or self.accuratefor() %} two-col{% endif %}">
{% if self.content_nav() or self.sidebar() or self.lastupdated() or self.accuratefor() -%}
<aside class="sidebar">
{% if self.content_nav() -%}

View File

@ -240,7 +240,11 @@ div#content .aside:first-child {
*/
div#content .inner {
padding:0 10%;
padding: 0 20%;
}
div#content .inner.two-col {
padding: 0 15% 0 10%;
}
div#content .inner .sidebar {