Add colors back to history
This commit is contained in:
parent
bf1d15574d
commit
08b234a070
2 changed files with 19 additions and 2 deletions
|
@ -30,9 +30,11 @@ def empty_calendar_cells_end(n):
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def up_down_icon(val):
|
def up_down_icon(val):
|
||||||
if val > 0:
|
if val > 0:
|
||||||
return remix("arrow-up-s")
|
return remix("arrow-up-s", "green w")
|
||||||
elif val < 0:
|
elif val < 0:
|
||||||
return remix("arrow-down-s")
|
return remix("arrow-down-s", "red w")
|
||||||
|
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
|
|
|
@ -219,6 +219,21 @@ footer {
|
||||||
}
|
}
|
||||||
[class^="ri-"] {
|
[class^="ri-"] {
|
||||||
font-weight: normal;
|
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,
|
h1,
|
||||||
|
|
Loading…
Reference in a new issue