publik: improve styling of sidebar page template

This commit is contained in:
Frédéric Péters 2015-09-29 23:16:11 +02:00
parent 54346c1a29
commit 7ca8631bbf
2 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,14 @@
body.with-sidebar div#main-content {
width: 70%;
}
body.with-sidebar div#sidebar {
float: right;
width: 23%;
margin-right: 2%;
color: #666;
}
div.welcome {
border: 1px solid #e4e4e4;
background: #fcfcfc;

View File

@ -1,13 +1,20 @@
{% extends "combo/page_template.html" %}
{% load combo %}
{% block bodyargs %}class="with-sidebar"{% endblock %}
{% block combo-content %}
<div id="main-content">
<div id="page-content">
{% placeholder "content" %}
</div>
{% endblock %}
{% block after-main-content %}
<div id="sidebar">
<h2>Sidebar</h2>
{% show_menu 1 %}
<div class="sidebar-menu">
{% show_menu 1 %}
</div>
{% placeholder "sidebar" %}
</div>
{% endblock %}