Style fixes for when sidebar has no or partial content

This commit is contained in:
str4d
2015-05-29 22:18:02 +00:00
parent 1a29aeac54
commit c00f7739ff
3 changed files with 7 additions and 5 deletions

View File

@ -54,9 +54,10 @@
</div>
<main role="main" class="inner">
{% if self.content_nav() or self.lastupdated() or self.accuratefor() -%}
<aside class="sidebar">
{% if self.content_nav() -%}
<nav>
<nav{% if self.lastupdated() or self.accuratefor() %} class="top"{% endif %}>
{% block content_nav %}{% endblock %}
</nav>
{%- endif %}
@ -83,8 +84,9 @@
</div>
{%- endif %}
</aside>
{%- endif %}
<article class="content-inner">
<article class="content-inner{% if self.content_nav() or self.lastupdated() or self.accuratefor() %} two-col{% endif %}">
{% block content %}{% endblock %}
</article>
</main>

View File

@ -169,13 +169,13 @@ div#content .inner {
}
div#content .sidebar {
background: rgba(171, 204, 113, 0.6);
border-bottom: 2px solid #abcc71;
border-left: 2px solid #abcc71;
border-right: 2px solid #abcc71;
}
div#content .sidebar nav {
background: rgba(171, 204, 113, 0.6);
div#content .sidebar .top {
border-bottom: 2px solid #abcc71;
}

View File

@ -250,7 +250,7 @@ div#content .inner .sidebar {
width: 200px;
}
div#content .content-inner {
div#content .content-inner.two-col {
margin-left: 202px;
}