summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-12 20:19:36 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-12 20:19:36 +0100
commit1671666d06cab9cecdee6753ec68ceea47fdc7cd (patch)
treef88cc54dcda5c5826c41c9ab2b1ec6aca1802d51
parent13fdbdc798fea6184f1183f7944c7d30580c00ff (diff)
fix load icon alignment in stop list
-rw-r--r--sass/src/common/index.scss7
-rw-r--r--templates/_checked_in.html.ep4
2 files changed, 6 insertions, 5 deletions
diff --git a/sass/src/common/index.scss b/sass/src/common/index.scss
index 89e1b7b..b66c425 100644
--- a/sass/src/common/index.scss
+++ b/sass/src/common/index.scss
@@ -40,12 +40,13 @@ a.tablerow {
padding-top: 1em;
padding-bottom: 1em;
border-bottom: 1px solid rgba(0,0,0,0.12);
- span {
- display: inline-block;
- }
.material-icons {
+ vertical-align: bottom;
margin-bottom: 0.2em;
}
+ span {
+ display: inline-block;
+ }
}
.pagination {
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index d2439ee..2b6ac90 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -222,7 +222,7 @@
<span>
% if ($station->[1]{load}{SECOND}) {
% my ($first, $second) = load_icon($station->[1]{load});
- <i class="material-icons tiny" aria-hidden="true" style="padding-right: 0.5em; vertical-align: bottom;"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true" style="vertical-align: bottom;"><%= $second %></i>
+ <i class="material-icons tiny" aria-hidden="true"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true"><%= $second %></i>
% }
% if ($station->[2] and $station->[2] eq 'cancelled') {
entfällt
@@ -337,7 +337,7 @@
<span>
% if ($station->[1]{load}{SECOND}) {
% my ($first, $second) = load_icon($station->[1]{load});
- <i class="material-icons tiny" aria-hidden="true" style="padding-right: 0.5em; vertical-align: bottom;"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true" style="vertical-align: bottom;"><%= $second %></i>
+ <i class="material-icons tiny" aria-hidden="true"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true"><%= $second %></i>
% }
% if ($station->[2] and $station->[2] eq 'cancelled') {
entfällt