From 446ac8e6978cec1ad8cad7821e91093ed348ef8e Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 21 Nov 2017 16:14:40 +0300 Subject: [PATCH] upd --- blog/static/css/new.css | 138 +++++++++++++-------------- blog/templates/blog/base.html | 56 +++++------ blog/templates/blog/post_detail.html | 38 ++++---- 3 files changed, 113 insertions(+), 119 deletions(-) diff --git a/blog/static/css/new.css b/blog/static/css/new.css index 7ba10b5..8de3c91 100644 --- a/blog/static/css/new.css +++ b/blog/static/css/new.css @@ -1,4 +1,3 @@ - a { color: #4a809a; } @@ -10,17 +9,16 @@ .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; } .close { color: #FFFFFF; + font-size: 30px; position: absolute; right: -25px; text-decoration: none; top: -25px; - font-size: 30px; } #content { margin: 10px 0 0 0; @@ -38,18 +36,18 @@ margin-right: 10px; } .dialog { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: rgba(0,0,0,0.8); - z-index: 99999; - -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; - transition: opacity 400ms ease-in; + -webkit-transition: opacity 400ms ease-in; + background: rgba(0,0,0,0.8); + bottom: 0; display: none; + left: 0; pointer-events: none; + position: fixed; + right: 0; + top: 0; + transition: opacity 400ms ease-in; + z-index: 99999; } .dialog:target { @@ -58,18 +56,18 @@ } .dialog1 { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: rgba(0,0,0,0.8); - z-index: 99999; - -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; - transition: opacity 400ms ease-in; + -webkit-transition: opacity 400ms ease-in; + background: rgba(0,0,0,0.8); + bottom: 0; display: none; + left: 0; pointer-events: none; + position: fixed; + right: 0; + top: 0; + transition: opacity 400ms ease-in; + z-index: 99999; } .dialog1:target { @@ -78,24 +76,19 @@ } .dialog > div { - width: 17em; - position: relative; + background: #fff; margin: 15% auto; padding: 10px; + position: relative; text-align: center; - //border-radius: 10px; - background: #fff; + width: 17em; } - .dialog span {line-height: 50px} - .dialog input {width: 100px; margin: 5px} - input#button-search { - background: url('https://touchit.com.ua/static/images/icons/search-25.png') no-repeat center center; - border: none; - - cursor: pointer; - //margin-top: 10px; - width: 32px; - height: 32px; + .dialog span { + line-height: 50px + } + .dialog input { + margin: 5px + width: 100px; } h2 { font-size: 26.25px; @@ -110,14 +103,21 @@ height: 50px; } input[name="search"] { - border: 1px solid #CCCCCC; border-radius: 4px; + border: 1px solid #CCCCCC; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset; color: #333333; font-size: 14px; padding: 6px 12px; - width: 200px; vertical-align: top; + width: 200px; + } + input#button-search { + background: url('https://touchit.com.ua/static/images/icons/search-25.png') no-repeat center center; + border: none; + cursor: pointer; + height: 32px; + width: 32px; } #logo { color: #FFFFFF; @@ -137,23 +137,26 @@ margin-right: 10px; } #pagination { - font-size: 16px; - list-style: none; - //text-align: center; + font-size: 16px; + list-style: none; } #pagination a { - display: inline-block; - padding: 2 1; text-decoration:none; - //text-align: center; + display: inline-block; + padding: 2 1; text-decoration:none; + } + #plus { + display: none; + } + div.post { + font-size: 16px; } - div.post { font-size: 16px;} .post { + 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); box-sizing: border-box; - background: #FFFFFF; color: #1a1a1a; display: block; - font-family: 'Open Sans' + font-family: 'Open Sans'; font-weight: 300; line-height: 26px; margin: 0 0 10px 0; @@ -165,15 +168,13 @@ margin: 5px 0 10px 0; } .post-header a { - text-decoration: none; color: #000; + text-decoration: none; } .post-header a:hover { color: #4a809a; } - .right { - float: right; - } + #posts { box-sizing: border-box; display: block; @@ -181,16 +182,17 @@ padding-right: 250px; width: 100%; } + .right { + float: right; + } #search { + display: block; float: right; font-size: 100%; - display: block; height: 50px; } #search-form { margin: 10px 10px 0 10px; - //vertical-align: top; - } .sidemenu { box-sizing: border-box; @@ -199,8 +201,8 @@ width: 240px; } .sidemenu h2 { - font-size: 16px; color: #666666; + font-size: 16px; margin: 0 0 10px 0; } .sidemenu ul { @@ -211,8 +213,8 @@ margin: 5px 0 10px; } textarea{ - width: 90%; margin:5px 10px; + width: 90%; } //button[name="action"] {display: block; float: right; margin: 1px;} //table { @@ -220,19 +222,17 @@ //border-collapse: collapse;} //td {padding: 2 10;} tr:hover td { - background-color: rgba(41, 128, 185, 0.1); - } - - #plus {display: none;} - @media screen and (max-width: 900px) { - #posts {padding: 0} - #header {width: 100%;} - //.sidemenu {background: #F7F7F8;} - #search, .sidemenu {display: none} - #plus {color: #FFF; float: right; - font-size: 25px; - display: block; - //height: 30px; - margin: 12px; + background-color: rgba(41, 128, 185, 0.1); + } + @media screen and (max-width: 900px) { + #posts {padding: 0} + #header {width: 100%;} + #search, .sidemenu {display: none} + #plus { + color: #FFF; + float: right; + font-size: 25px; + display: block; + margin: 12px; } } diff --git a/blog/templates/blog/base.html b/blog/templates/blog/base.html index 2e217cd..3c7d96a 100644 --- a/blog/templates/blog/base.html +++ b/blog/templates/blog/base.html @@ -37,28 +37,29 @@

Последние

- -
-
-

Теги

- + +
+
+

Теги

{% for tag in cloud %} - {{ tag.name }} - {% endfor %} - -
- + {{ tag.name }} + {% endfor %} + - + {% endcomment %} + + + diff --git a/blog/templates/blog/post_detail.html b/blog/templates/blog/post_detail.html index b183187..f248146 100644 --- a/blog/templates/blog/post_detail.html +++ b/blog/templates/blog/post_detail.html @@ -4,31 +4,29 @@
-

{{ post.title }}

- - {% if post.published_date %} -
{{ post.published_date}}
- {% endif %} - {% if post.tags.names %} +

{{ post.title }}

+ {% if post.published_date %} +
{{ post.published_date}}
+ {% endif %} + {% if post.tags.names %}
{% for tag in post.tags.names %} {{ tag }} - {% endfor %} + {% endfor %}
{% endif %} -

{{ post.text|safe|linebreaksbr }}

- -
-
- x - Удалить пост "{{ post.title }}"? -
{% csrf_token %} - - - -
-
-
+

{{ post.text|safe|linebreaksbr }}

+
+
+ x + Удалить пост "{{ post.title }}"? +
{% csrf_token %} + + + +
+
+
{% endblock %}