From ddb54852061860c9f863d454d0388bd94fe117a8 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 5 Dec 2024 10:59:33 +0000 Subject: style the new overground lines --- forecast.html.tt | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -%] @@ -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% } -- cgit v1.2.3