From a1ed21cd171902b6305a03e974be17228425a455 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 3 Oct 2023 15:19:36 +0300 Subject: [PATCH] 0.0.165 upd style for a teg for news --- static/css/styles.css | 6 +++++- templates/pages/p_articles.html | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 632445f..1f4d8cb 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2413,9 +2413,13 @@ details[open] summary ~ *{ border-radius: 20px; } -.news_item>div{ +.news_item>a>div{ margin: 10px; } +.news_item>a{ + color: black; +} + .news_img>img{ object-fit: cover; diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index 4e3a6b1..32732cd 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -11,16 +11,18 @@
{% for art in articles %} - + - + {#
{{ art.text|safe }}
#} {% endfor %}