Commit 1f38a56f authored by mmequignon's avatar mmequignon Committed by Jamesie Pic

[IMP] blog-memopol - Modification de la sidebar et intégration avec le bloc content

parent 3a9f370f
......@@ -7,7 +7,7 @@ import os
AUTHOR = u'Memopol Team'
SITENAME = u'Memopol Project'
SITEURL = 'http://www.memopol.org/'
SITESUBTITLE= 'Bridging the gap between politics and citizens'
SITETITLE= 'Bridging the gap between politics and citizens'
PATH = 'content'
......
......@@ -32,11 +32,57 @@ $line-height-base: 1.7;
$font-size-h1: 3rem;
$font-size-h2: 2.25rem;
$font-size-h3: 1.75rem;
$font-size-h4: 2rem;
$font-size-h5: 1.67rem;
$font-size-h6: 1.2rem;
$font-size-h4: 1.25rem;
$font-size-h5: 1.25rem;
$font-size-h6: 1rem;
$headings-color: $brand-primary;
nav.nav{
margin-top: 1em;
}
div.row article div p img{
max-width:100%;
}
.blue{
color: #487ED6;
}
.row.layout {
display: table;
}
aside.sidebar {
float: none;
display: table-cell;
vertical-align: top;
background: #333333;
color: #dbdbdb;
text-align: center;
width: 25%;
position: fixed;
height: 100%;
}
.content{
width:75%;
position: absolute;
left:25%;
overflow: hidden;
margin: 1em;
}
aside{
position: fixed;
}
aside a{
color: #dbdbdb;
}
aside a h3{
color: #dbdbdb;
}
h1 {
padding-top: 2rem;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -23,19 +23,20 @@
<body id="index" class="{% block body_class %}{% endblock %}">
<div class="container-fluid">
<div class="row">
<aside class="col-lg-3 col-md-4">
<div class="row layout">
<aside class="sidebar">
<nav class="nav">
<a href="{{ SITEURL }}">
{% if SITELOGO %}
<img src="{{ SITELOGO }}" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
{% else %}
<img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
{% endif %}
</a>
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
<a href="{{ SITEURL }}">
<img src="http://pub.yourlabs.org/memopol-lightgrey.png" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
</a>
<a href="{{ SITEURL }}">
<h3>
<span class="blue">MEMO</span>IRE
<span class="blue">POL</span>ITIQUE
</h3>
</a>
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
{% if SITETITLE %}<p>{{ SITETITLE }}</p>{% endif %}
<ul class="nav nav-pills nav-stacked collapse">
{% for cat, articles in categories %}
......@@ -56,7 +57,7 @@
</nav>
</aside>
<main class="col-lg-9 col-md-8">
<main class="content">
{% if MAIN_MENU %}
<nav>
<a href="{{ SITEURL }}">{{ _('Home') }}</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment