1
0
Fork 0

Fix news layout

This commit is contained in:
Dece 2017-08-17 17:24:02 +02:00
parent dd000c3ce3
commit 1b0016ca6f
4 changed files with 25 additions and 25 deletions

View file

@ -61,7 +61,7 @@ DATABASES = {
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/ # https://docs.djangoproject.com/en/1.7/topics/i18n/
LANGUAGE_CODE = 'fr-FR' LANGUAGE_CODE = 'en-UK'
TIME_ZONE = 'Europe/Paris' TIME_ZONE = 'Europe/Paris'
USE_I18N = True USE_I18N = True
USE_L10N = True USE_L10N = True

View file

@ -1,22 +1,17 @@
#news article .title { .article .header .title {
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
} }
#news article .author, .article .content {
#news article .date { text-align: justify;
font-style: oblique;
} }
#news hr { hr {
border-color: #929292 -moz-use-text-color -moz-use-text-color; border-color: #929292 -moz-use-text-color -moz-use-text-color;
border-right: 0px none; border-right: 0px none;
border-style: solid none none; border-style: solid none none;
border-width: 1px 0px 0px; border-width: 1px 0px 0px;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 20px; margin-top: 20px;
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
} }

View file

@ -12,17 +12,26 @@
<section id="news"> <section id="news">
{% for article in articles %} {% for article in articles %}
<article> <article class="article">
<p class="article_header"> <div class="header">
<span class="title">{{ article.title }}</span> <div class="title">
<span class="author">{{ article.author }}</span>, {{ article.title }}
</div>
<div class="subtitle">
By <span class="author">{{ article.author }}</span>,
<span class="date">{{ article.date }}</span> <span class="date">{{ article.date }}</span>
</p> </div>
</div>
<div class="content">
{% autoescape off %} {% autoescape off %}
{{ article.content }} {{ article.content }}
{% endautoescape %} {% endautoescape %}
</div>
</article> </article>
{% if not forloop.last %}<hr />{% endif %} {% if not forloop.last %}
<hr />
{% endif %}
{% endfor %} {% endfor %}
</section> </section>

View file

@ -17,7 +17,6 @@ body {
} }
/* Header */ /* Header */
header { header {
@ -32,7 +31,6 @@ header img {
} }
/* Nav bar */ /* Nav bar */
nav { nav {
@ -57,7 +55,6 @@ nav .link:nth-child(4):hover { background-color: #ab9df2; }
nav .link:nth-child(5):hover { background-color: #78dce8; } nav .link:nth-child(5):hover { background-color: #78dce8; }
/* Content */ /* Content */
#content { #content {
@ -89,8 +86,7 @@ nav .link:nth-child(5):hover { background-color: #78dce8; }
} }
/* Extras */
/* Extra */
.grayscale { .grayscale {
/* Firefox 10+ (& Android) */ /* Firefox 10+ (& Android) */