Add colors back to history

This commit is contained in:
Edgar P. Burkhart 2024-01-03 18:29:14 +01:00
parent bf1d15574d
commit 08b234a070
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 19 additions and 2 deletions

View File

@ -30,9 +30,11 @@ def empty_calendar_cells_end(n):
@register.simple_tag
def up_down_icon(val):
if val > 0:
return remix("arrow-up-s")
return remix("arrow-up-s", "green w")
elif val < 0:
return remix("arrow-down-s")
return remix("arrow-down-s", "red w")
return ""
@register.simple_tag

View File

@ -219,6 +219,21 @@ footer {
}
[class^="ri-"] {
font-weight: normal;
&.green,
&.red {
color: white;
&.green {
background: var(--green);
}
&.red {
background: var(--red);
}
border-radius: var(--radius);
height: 1.5rem;
width: 1.5rem;
line-height: 1.5rem;
}
}
h1,