update design for now datelistitem
This commit is contained in:
parent
f6e0d8d956
commit
262ea2c2ef
|
@ -596,7 +596,6 @@ class DiffusionPage(Publication):
|
||||||
|
|
||||||
now = tz.now()
|
now = tz.now()
|
||||||
if diff.start <= now <= diff.end:
|
if diff.start <= now <= diff.end:
|
||||||
print('now!', diff)
|
|
||||||
item.css_class = ' now'
|
item.css_class = ' now'
|
||||||
item.now = True
|
item.now = True
|
||||||
|
|
||||||
|
|
|
@ -240,12 +240,12 @@ ul.list, .list > ul {
|
||||||
|
|
||||||
|
|
||||||
.date_list_item.now {
|
.date_list_item.now {
|
||||||
font-size: 1.2em;
|
padding: 0.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date_list_item img.now {
|
.date_list_item img.now {
|
||||||
width: 1.3em;
|
width: 1.3em;
|
||||||
vertical-align: middle;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -257,7 +257,8 @@ ul.list, .list > ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.content > .date_list .date_list_item:nth-child(2n+1) {
|
.content > .date_list .date_list_item:nth-child(2n+1),
|
||||||
|
.date_list_item.now {
|
||||||
box-shadow: inset 0em 0em 3em rgba(0, 124, 226, 0.1);
|
box-shadow: inset 0em 0em 3em rgba(0, 124, 226, 0.1);
|
||||||
background-color: rgba(0, 124, 226, 0.05);
|
background-color: rgba(0, 124, 226, 0.05);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ is just a bit different.
|
||||||
<time datetime="{{ item.date }}">
|
<time datetime="{{ item.date }}">
|
||||||
{% if item.now %}
|
{% if item.now %}
|
||||||
<img src="{% static "aircox/images/play.png" %}"
|
<img src="{% static "aircox/images/play.png" %}"
|
||||||
title="{% trans "happening now!" %}"
|
title="{% trans "on air" %}"
|
||||||
alt="{% trans "happening now!" %}" class="now">
|
alt="{% trans "on air" %}" class="now">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ item.date|date:date_format }}
|
{{ item.date|date:date_format }}
|
||||||
</time>
|
</time>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user