This commit is contained in:
Meylis Gazakow 2022-05-03 15:08:22 +03:00
commit dfa13af002
3 changed files with 45 additions and 14 deletions

View File

@ -2590,6 +2590,17 @@ li {
font-size: 16px;
font-weight: 500;
line-height: 1.4;
color: #003197;
transition: all .3s linear;
-ms-transition: all .3s linear;
-moz-transition: all .3s linear;
-o-transition: all .3s linear;
-webkit-transition: all .3s linear;
position: relative;
}
.all_news:hover {
text-decoration: underline;
}
.news_box {
@ -2662,7 +2673,7 @@ li {
}
.news_box-item-title {
font-size: 16px;
font-size: 20px;
font-weight: 600;
line-height: 1.4;
color: var(--blue);
@ -2671,16 +2682,17 @@ li {
}
.news_box-item-date {
font-size: 14px;
font-size: 16px;
font-weight: 400;
line-height: 1.3;
margin: 10px 0;
font-family: 'Poppins', sans-serif;
color: rgba(0, 0, 0, .5);
}
.news_box-item-txt {
font-size: 14px;
font-size: 16px;
font-weight: 400;
line-height: 1.6;
letter-spacing: .5px;
@ -6033,10 +6045,6 @@ input::-webkit-calendar-picker-indicator {
-o-object-fit: contain;
}
.pay_btn {
margin: 20px auto 0;
}
/* Mobile User links end ================= */
/* News ========================= */
@ -6769,11 +6777,6 @@ input::-webkit-calendar-picker-indicator {
margin: 0;
}
.pay_btn {
font-size: 14px;
padding: 15px 50px;
}
/* News ========================= */
.news_box-item {

View File

@ -72,7 +72,21 @@ postPage = "news_post"
{% for post in posts %}
<div class="news_box-item wow fadeInUp" data-wow-duration=".5s" data-wow-delay=".1s">
<div class="news_box-item wow fadeInUp" data-wow-duration=".5s"
{% if loop.index > 4 %}
{% if loop.index - 3 < 10 %}
data-wow-delay=".{{ loop.index - 3 }}s"
{% else %}
data-wow-delay="{{ (loop.index - 3) / 10 }}s"
{% endif %}
{% else %}
{% if loop.index < 10 %}
data-wow-delay=".{{ loop.index }}s"
{% else %}
data-wow-delay="{{ loop.index / 10 }}s"
{% endif %}
{% endif %}
>
<div class="news_box-item-photo">
<img src="{{ post.featured_images[0].thumb(467,300,{'mode':'crop'}) }}" alt="news-photo">

View File

@ -29,7 +29,21 @@ postPage = "news_post"
<div class="news_box">
{% for post in posts %}
<div class="news_box-item wow fadeInUp" data-wow-duration=".5s" data-wow-delay=".2s">
<div class="news_box-item wow fadeInUp" data-wow-duration=".5s"
{% if loop.index > 4 %}
{% if loop.index - 3 < 10 %}
data-wow-delay=".{{ loop.index - 3 }}s"
{% else %}
data-wow-delay="{{ (loop.index - 3) / 10 }}s"
{% endif %}
{% else %}
{% if loop.index < 10 %}
data-wow-delay=".{{ loop.index }}s"
{% else %}
data-wow-delay="{{ loop.index / 10 }}s"
{% endif %}
{% endif %}
>
<div class="news_box-item-photo">
<img src="{{ post.featured_images[0].thumb(467,300,{'mode':'crop'}) }}" alt="news-photo">