diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-20 14:11:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-20 14:11:46 +0200 |
commit | 9b6efdb7df4a93b9d40b567053830c9194c0d473 (patch) | |
tree | 9c5a4ce4c5447e2587077bfb78bbc0d1601619c2 | |
parent | a300fcdacd9296a13e293f15d047b94dd7f55bed (diff) |
do not strike through cancelled trains, mark them yellow-ish instead
-rw-r--r-- | public/default.css | 8 | ||||
-rw-r--r-- | templates/clean.html.ep | 9 |
2 files changed, 8 insertions, 9 deletions
diff --git a/public/default.css b/public/default.css index 2ddb687..c7159a4 100644 --- a/public/default.css +++ b/public/default.css @@ -175,15 +175,12 @@ div.displayclean li .dest { overflow: hidden; } -div.displayclean li .cancelled { - text-decoration: line-through; - text-decoration-color: red; - -moz-text-decoration-color: red; +div.displayclean li.cancelled { + background-color: #ffe7d0; } div.displayclean li .countdown { color: #000000; - background-color: #f8f8f8; font-size: 3em; position: absolute; right: 5px; @@ -234,7 +231,6 @@ div.displayclean li .countdown .platform { div.displayclean li .time { color:#000000; - background-color: #f8f8f8; font-size:2.4em; position:absolute; right:5px; diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 8ee8173..0bbdf54 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -16,13 +16,16 @@ % my $extraclasses = q{}; % if ($departure->{is_cancelled}) { % $extraclasses .= ' cancelled'; + <li class="cancelled"> +% } +% else { + <li> % } - <li> % my $linetype = q{}; % if ( $departure->{train_type} eq 'S' ) { % $linetype = 'sbahn'; % } - <span class="line <%= $linetype %> <%= $extraclasses %>"> + <span class="line <%= $linetype %>"> % if ($departure->{train_type} and $departure->{train_no}) { %= $departure->{train_type} % } @@ -143,7 +146,7 @@ <span class="dest <%= $extraclasses %>"> %= $departure->{destination} </span> - <span class="countdown"> + <span class="countdown <%= $extraclasses %>"> % if ($departure->{delay} and not $departure->{is_cancelled}) { % if ($show_realtime) { % if ($departure->{delay} > 0) { |