summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-12-05 10:59:33 +0000
committerdakkar <dakkar@thenautilus.net>2024-12-05 10:59:33 +0000
commitddb54852061860c9f863d454d0388bd94fe117a8 (patch)
tree2aa5c13c6afdd42d1bd267164d1d20495eccebc8
parenthandle missing temperatures (diff)
downloadHomePanel-ddb54852061860c9f863d454d0388bd94fe117a8.tar.gz
HomePanel-ddb54852061860c9f863d454d0388bd94fe117a8.tar.bz2
HomePanel-ddb54852061860c9f863d454d0388bd94fe117a8.zip
style the new overground lines
-rw-r--r--forecast.html.tt9
1 files changed, 9 insertions, 0 deletions
diff --git a/forecast.html.tt b/forecast.html.tt
index 56beb56..cdcf3ab 100644
--- a/forecast.html.tt
+++ b/forecast.html.tt
@@ -21,6 +21,9 @@
'base',now,
'normalize',1).format_duration(dur);
END;
+ MACRO overground_bg(colour) BLOCK;
+ %]background: linear-gradient(to bottom, [% colour %] 0% 25%, #fff 25% 75%, [% colour %] 75% 100%);[%
+ END;
-%]
<html>
<head>
@@ -99,6 +102,12 @@
.piccadilly { background-color: #0019A8; color: #fff; }
.victoria { background-color: #039BE5; color: #fff; }
.waterloo-city { background-color: #76D0BD; color: #fff; }
+ .liberty { [% overground_bg('#5b5f63') %]; }
+ .lioness { [% overground_bg('#fab220') %]; }
+ .mildmay { [% overground_bg('#4a8cd2') %]; }
+ .suffragette { [% overground_bg('#42bb57') %]; }
+ .weaver { [% overground_bg('#cb3091') %]; }
+ .windrush { [% overground_bg('#ee252b') %]; }
div.tube table { font-size: 75% }