Improve history plot with empty segments
This commit is contained in:
parent
55923e7709
commit
ee4e6b7ceb
3 changed files with 50 additions and 45 deletions
|
@ -21,8 +21,9 @@
|
|||
{% spaceless %}
|
||||
{% for y in history.years reversed %}
|
||||
{% for date in y.d reversed %}
|
||||
{% ifchanged %}
|
||||
{% if date %}
|
||||
<tr>
|
||||
<tr {% if not date.month.month|divisibleby:"2" %}class="even"{% endif %}>
|
||||
<td class="icon">
|
||||
<span class="ri-{% if date.sum > 0 %}arrow-up-s-line green{% elif date.sum < 0 %}arrow-down-s-line red{% endif %}"></span>
|
||||
</td>
|
||||
|
@ -67,6 +68,7 @@
|
|||
<td colspan="6" class="empty"></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endifchanged %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endspaceless %}
|
||||
|
|
|
@ -66,6 +66,9 @@ table.full-width col.bar {
|
|||
.plot tr.empty {
|
||||
height: 0.5rem;
|
||||
}
|
||||
.plot tr.even {
|
||||
background: #eeeeff;
|
||||
}
|
||||
|
||||
@media (width < 720px) {
|
||||
.plot .bar {
|
||||
|
|
|
@ -25,7 +25,7 @@ tr {
|
|||
height: 2rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
tbody tr:nth-of-type(even) {
|
||||
.table tbody tr:nth-of-type(even) {
|
||||
background: #eeeeff;
|
||||
}
|
||||
td,
|
||||
|
|
Loading…
Reference in a new issue