master
Laurent 6 years ago
parent 11a8820298
commit 7834e35473
  1. BIN
      db.sqlite3
  2. BIN
      news/static/media/3a479183-e500-4eb4-b314-7c8283be48aa
  3. 24
      news/static/news/css/app.css
  4. 2
      news/templates/base.html
  5. 17
      news/templates/news/index.html

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

@ -7,6 +7,12 @@
src: url("../LibreBaskerville-Bold.otf") format("opentype"); src: url("../LibreBaskerville-Bold.otf") format("opentype");
} }
body {
background-color: #333;
font-size:18px;
margin: 0px;
padding: 0px;
}
header { header {
/* width: 100%; */ /* width: 100%; */
@ -36,11 +42,8 @@ nav {
margin-bottom: 24px; margin-bottom: 24px;
} }
body { .content {
background-color:#fff; background-color: #fff;
font-size:20px;
margin: 0px;
padding: 0px;
} }
article h1 { article h1 {
@ -192,10 +195,6 @@ article {
color: #ccc; color: #ccc;
} }
.content {
/* background-color: #eee; */
}
.body { .body {
padding: 0px 12px; padding: 0px 12px;
} }
@ -236,9 +235,14 @@ article {
.info { .info {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
border-bottom: 1px solid #ccc; /* border-bottom: 1px solid #ccc; */
/* margin-bottom: 6px; */ /* margin-bottom: 6px; */
} }
@media print, screen and (min-width: 40em) {
.info {
width: 500px;
}
}
.current { .current {
font-size: 14px; font-size: 14px;

@ -21,7 +21,7 @@
<!-- <div class="cell large-2 header"> <!-- <div class="cell large-2 header">
</div> --> </div> -->
<div class="cell large-8 large-offset-2 content"> <div class="cell large-6 large-offset-3 content">
<!-- Header --> <!-- Header -->
<header> <header>

@ -11,16 +11,17 @@
<!-- <div class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}"> --> <!-- <div class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}"> -->
<!-- A post -->
{% if post.style == 0 %}
<article> <article>
<div class="postintro lat_padding"> <div class="postintro lat_padding">
{{ post.date }} - {{ post.author.username }} {{ post.date }} - {{ post.author.username }}
</div> </div>
<!-- A post -->
{% if post.style == 0 %}
<div class="imgcontainer"> <div class="imgcontainer">
<img class="crop" src="{% static 'media/' %}{{ post.image_url }}"/> <img src="{% static 'media/' %}{{ post.image_url }}"/>
<div class="inside_image_top"> <div class="inside_image_top">
{% if post.url %}<a href="{{ post.url }}">{% endif %} {% if post.url %}<a href="{{ post.url }}">{% endif %}
<h1>{{ post.title }}</h1> <h1>{{ post.title }}</h1>
@ -45,7 +46,6 @@
</div> </div>
</article>
<!-- Quote --> <!-- Quote -->
{% elif post.style == 1 %} {% elif post.style == 1 %}
@ -63,7 +63,7 @@
</div> </div>
<div class="info"> <div class="info">
{{ post.date }} - {{ post.author.username }} - <a href="{% url 'news:post' post.id %}">{% if post.comment_set.count > 0 %}{{ post.comment_set.count }} comments{% else %}write comment{% endif %}</a> <a href="{% url 'news:post' post.id %}">{% if post.comment_set.count > 0 %}{{ post.comment_set.count }} comments{% else %}write comment{% endif %}</a>
</div> </div>
<!-- Some comments --> <!-- Some comments -->
<div class="comments"> <div class="comments">
@ -78,9 +78,6 @@
<!-- Picture no title no link --> <!-- Picture no title no link -->
{% elif post.style == 2 %} {% elif post.style == 2 %}
<article>
{{ post.date }} - {{ post.author.username }}
<div class="imgcontainer"> <div class="imgcontainer">
<img class="crop" src="{% static 'media/' %}{{ post.image_url }}"/> <img class="crop" src="{% static 'media/' %}{{ post.image_url }}"/>
</div> </div>
@ -95,9 +92,9 @@
{% endfor %} {% endfor %}
</div> </div>
</article>
{% endif %} {% endif %}
</article>
<!-- </div> --> <!-- </div> -->
{% endfor %} {% endfor %}

Loading…
Cancel
Save