diff --git a/static/css/styles.css b/static/css/styles.css index 1f4d8cb..6121793 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -471,7 +471,7 @@ footer>div { header .header-first { float: left; - margin-top: 5px; + margin-top: 13px; } .header-first>div{ @@ -2406,7 +2406,7 @@ details[open] summary ~ *{ } .news_item { - width: 30%; + width: 413px; margin-bottom: 2%; background-color: white; filter: drop-shadow(-1px 4px 10px rgba(198, 199, 203, 0.20)) drop-shadow(0px -1px 10px rgba(198, 199, 203, 0.20)); @@ -2416,6 +2416,9 @@ details[open] summary ~ *{ .news_item>a>div{ margin: 10px; } +.news_item>div{ + margin: 10px; +} .news_item>a{ color: black; } @@ -2556,6 +2559,12 @@ details[open] summary ~ *{ } +.previous_next_news{ + display: flex; + justify-content: space-between; + margin-top: 30px; +} + diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index abc4c69..e1b3508 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -241,7 +241,7 @@ +{# arts_top предыдущая новость // arts_down следующая #} + + + + + +
+ {% for item in arts_top %} + +
+ +
+
{{ item.name }}
+
+ {{ item.description|truncatechars:100 }} +
+
+
+
+ + {#
{{ art.text|safe }}
#} + {% endfor %} + +
+ +
+
{{ art.name }}
+
+ {{ art.description|truncatechars:100 }} +
+
+ +
+ + {% for item in arts_down %} + +
+ +
+
{{ item.name }}
+
+ {{ item.description|truncatechars:100 }} +
+
+
+
+ + {#
{{ art.text|safe }}
#} + {% endfor %} + +
+