From dfe6c2ad567068808dcf806851200d57253ca268 Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 5 Nov 2017 01:54:32 +0300 Subject: [PATCH] css --- blog/static/css/new.css | 19 +++++++++++-------- blog/templates/blog/base.html | 9 +++++++-- blog/templates/blog/post_list.html | 27 +++++++++++++-------------- 3 files changed, 31 insertions(+), 24 deletions(-) diff --git a/blog/static/css/new.css b/blog/static/css/new.css index 4eda498..cfbce16 100644 --- a/blog/static/css/new.css +++ b/blog/static/css/new.css @@ -6,14 +6,22 @@ a { font-family: 'Open Sans', sans-serif; } + .block { + background: #FFFFFF; + box-shadow: 0 0.005em 0.01em 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12); + //display: block; + margin: 0 0 10px 0; + padding: 15px; + } #content { margin: 10px 0 0 0; } - .date { + .date, .tag { color: #999999; + display: inline-block; font-size: 12px; letter-spacing: 1px; - //float: left; + margin-right: 10px; } input#button-search { background: url('https://touchit.com.ua/static/images/icons/search-25.png') no-repeat center center; @@ -95,14 +103,9 @@ a { } .sidemenu { - box-shadow: 0 0.005em 0.01em 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12); box-sizing: border-box; - background: #FFFFFF; - display: block; float: left; - //margin-left: 10px; margin-left: -240px; - padding: 15px; width: 240px; } .sidemenu h2 { @@ -126,4 +129,4 @@ a { padding: 6px 12px; width: 200px; vertical-align: top; - } \ No newline at end of file + } diff --git a/blog/templates/blog/base.html b/blog/templates/blog/base.html index 23d68e3..73fa3e9 100644 --- a/blog/templates/blog/base.html +++ b/blog/templates/blog/base.html @@ -6,6 +6,7 @@ + @@ -22,20 +23,24 @@
{% block content %} {% endblock %} +
+Hop hey
+

Меню

-
+

Последние

+
diff --git a/blog/templates/blog/post_list.html b/blog/templates/blog/post_list.html index b5ac4e6..241fb98 100644 --- a/blog/templates/blog/post_list.html +++ b/blog/templates/blog/post_list.html @@ -2,23 +2,22 @@ {% load pagination_tags %} {% block content %} -
+
{% for post in posts %} -
-
-

{{ post.title }}

-
{{ post.published_date}}
+
+
+

{{ post.title }}

+
{{ post.published_date}}
+ {% if post.tags.names %} +
+ + {% for tag in post.tags.names %} + {{ tag }} + {% endfor %} +
+{% endif %}
{{ post.text|safe|linebreaksbr|truncatewords:80 }}
-

-{% if post.tags.names %} - Tags: - {% for tag in post.tags.names %} - {{ tag }} - {% endfor %} -{% endif %} -

-
{% endfor %}