From d6600fc006060699f9e79593e2698e21b2acd081 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 6 Jun 2019 21:15:00 +0200 Subject: use material icons for wagon order display --- public/static/fonts/MaterialIcons-Regular.eot | Bin 0 -> 143258 bytes public/static/fonts/MaterialIcons-Regular.ttf | Bin 0 -> 128180 bytes public/static/fonts/MaterialIcons-Regular.woff | Bin 0 -> 57620 bytes public/static/fonts/MaterialIcons-Regular.woff2 | Bin 0 -> 44300 bytes public/static/material-icons.css | 36 ++++++++++++++++++++++++ templates/layouts/default.html.ep | 1 + templates/wagenreihung.html.ep | 18 ++++++------ 7 files changed, 46 insertions(+), 9 deletions(-) create mode 100644 public/static/fonts/MaterialIcons-Regular.eot create mode 100644 public/static/fonts/MaterialIcons-Regular.ttf create mode 100644 public/static/fonts/MaterialIcons-Regular.woff create mode 100644 public/static/fonts/MaterialIcons-Regular.woff2 create mode 100644 public/static/material-icons.css diff --git a/public/static/fonts/MaterialIcons-Regular.eot b/public/static/fonts/MaterialIcons-Regular.eot new file mode 100644 index 0000000..70508eb Binary files /dev/null and b/public/static/fonts/MaterialIcons-Regular.eot differ diff --git a/public/static/fonts/MaterialIcons-Regular.ttf b/public/static/fonts/MaterialIcons-Regular.ttf new file mode 100644 index 0000000..7015564 Binary files /dev/null and b/public/static/fonts/MaterialIcons-Regular.ttf differ diff --git a/public/static/fonts/MaterialIcons-Regular.woff b/public/static/fonts/MaterialIcons-Regular.woff new file mode 100644 index 0000000..b648a3e Binary files /dev/null and b/public/static/fonts/MaterialIcons-Regular.woff differ diff --git a/public/static/fonts/MaterialIcons-Regular.woff2 b/public/static/fonts/MaterialIcons-Regular.woff2 new file mode 100644 index 0000000..9fa2112 Binary files /dev/null and b/public/static/fonts/MaterialIcons-Regular.woff2 differ diff --git a/public/static/material-icons.css b/public/static/material-icons.css new file mode 100644 index 0000000..7b120b3 --- /dev/null +++ b/public/static/material-icons.css @@ -0,0 +1,36 @@ +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + src: url(/static/v15/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ + src: local('Material Icons'), + local('MaterialIcons-Regular'), + url(/static/v15/fonts/MaterialIcons-Regular.woff2) format('woff2'), + url(/static/v15/fonts/MaterialIcons-Regular.woff) format('woff'), + url(/static/v15/fonts/MaterialIcons-Regular.ttf) format('truetype'); +} + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 20px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + + /* Support for IE. */ + font-feature-settings: 'liga'; +} diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 2c59b82..7b689be 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -19,6 +19,7 @@ % my $av = 'v15'; # asset version %= stylesheet "/static/${av}/default.css" + %= stylesheet "/static/${av}/material-icons.css" %= stylesheet "/static/${av}/jquery-ui.min.css" % my $force_mobile = param('force_mobile') // stash('force_mobile'); % if ($force_mobile) { diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep index fc00968..3d47466 100644 --- a/templates/wagenreihung.html.ep +++ b/templates/wagenreihung.html.ep @@ -31,7 +31,7 @@ % }
-
+
% if (not $wr->has_bad_wagons) { % for my $section ($wr->sections) {
2 % } % if ($wagon->has_accessibility) { - ♿ + accessible % } % if ($wagon->has_bistro) { - 🍴 + restaurant % } % if ($wagon->has_compartments) { - 🚪 + % } % if ($wagon->has_quiet_area) { - 🔇 + volume_off % } % if ($wagon->has_phone_area) { - 📱 + smartphone % } % if ($wagon->has_family_area) { - 👪 + people % } % if ($wagon->has_bahn_comfort) { - bahn.comfort + star % } % if ($wagon->is_interregio) { - Interregio + % } %= $wagon->type -- cgit v1.2.3