From c2b9b0c85b1028995d5cd08b8ec70f9e0e7b1fd4 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 3 Oct 2023 15:14:53 +0300 Subject: [PATCH] 0.0.165 a teg for news --- static/css/styles.css | 12 +++++++++--- templates/pages/p_article.html | 18 ++---------------- templates/pages/p_articles.html | 16 +++++++++------- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 665c41d..632445f 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2523,7 +2523,7 @@ details[open] summary ~ *{ font-size: 17px; font-style: normal; font-weight: 600; - line-height: 26px; + line-height: 20px; } .self_news_header{ font-size: 24px; @@ -2535,8 +2535,14 @@ details[open] summary ~ *{ .self_news_description{ margin-bottom: 40px; } -.self_news_text>p>img{ - margin: 40px 3%; + +.self_news_text>p+img{ + text-align: center; +} + +.self_news_text>p>a{ + color: black; + text-decoration: underline; } .self_news_img{ diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index e1a5397..27e0bb5 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -13,23 +13,9 @@
{{ art.description }}
{{ art.text|safe }}
-
- {% for art in articles %} -
-
-
-
{{ art.name }}
-
- {{ art.description|truncatechars:400 }} -{#
#} -
-
-
-
- {#
{{ art.text|safe }}
#} - {% endfor %} -
+ + diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index 9381a45..4e3a6b1 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -11,14 +11,16 @@
{% for art in articles %} -
-
-
{{ art.name }}
- + {#
{{ art.text|safe }}
#} {% endfor %}