misc: adapt sidebar to native gadjo sidebar (#22440)

This commit is contained in:
Frédéric Péters 2018-03-12 12:07:31 +01:00
parent 39ef627bab
commit 1ebdb33a2d
4 changed files with 12 additions and 32 deletions

View File

@ -2,18 +2,9 @@ div#meta {
margin-bottom: 1em; margin-bottom: 1em;
} }
div#sidebar {
width: 20em;
float: left;
}
div#page-content {
padding-left: 22em;
min-height: 5em;
}
div.page-options label { div.page-options label {
display: block; display: block;
font-weight: bold;
} }
div.placeholder { div.placeholder {
@ -372,5 +363,5 @@ span.extra-info {
} }
img.page-picture { img.page-picture {
max-width: 95%; max-width: 100%;
} }

View File

@ -15,12 +15,11 @@
<a href="{% url 'combo-manager-page-view' pk=object.id %}">{% trans 'Page' %} - {{object.title }}</a> <a href="{% url 'combo-manager-page-view' pk=object.id %}">{% trans 'Page' %} - {{object.title }}</a>
{% endblock %} {% endblock %}
{% block content %} {% block sidebar %}
<aside id="sidebar">
<div id="sidebar">
<div class="page-options"> <div class="page-options">
<h2>{% trans 'Parameters' %}</h2> <h3>{% trans 'Parameters' %}</h3>
<p> <p>
<label>{% trans 'Title:' %}</label> <label>{% trans 'Title:' %}</label>
@ -71,7 +70,10 @@
</div> </div>
</div> <!-- #sidebar --> </aside>
{% endblock %} {# sidebar #}
{% block content %}
<div id="page-content"> <div id="page-content">

View File

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

View File

@ -1,8 +1,6 @@
{% extends "combo/page_template.html" %} {% extends "combo/page_template.html" %}
{% load combo i18n %} {% load combo i18n %}
{% block bodyargs %}{{ block.super }} class="with-sidebar"{% endblock %}
{% block combo-content %} {% block combo-content %}
<div id="page-content"> <div id="page-content">
{% trans "Content" as name %} {% trans "Content" as name %}
@ -10,9 +8,9 @@
</div> </div>
{% endblock %} {% endblock %}
{% block after-main-content %} {% block sidebar %}
<div id="sidebar"> <aside id="sidebar">
{% trans "Sidebar" as name %} {% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %} {% placeholder "sidebar" name=name %}
</div> </aside>
{% endblock %} {% endblock %}