From 670542adebb6d904a8d54609f3b6d5273523178e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Jul 2016 19:33:34 +0200 Subject: something something centering --- public/static/default.css | 11 +++++++++-- templates/landingpage.html.ep | 2 ++ templates/layouts/default.html.ep | 5 +++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/public/static/default.css b/public/static/default.css index 091ac12..4d80cbe 100644 --- a/public/static/default.css +++ b/public/static/default.css @@ -479,6 +479,12 @@ div.candidatelist div.errshort { color: #aaaaaa; } +.container { + max-width: 40em; + margin-left: auto; + margin-right: auto; +} + pre { margin-bottom: 2em; } @@ -499,7 +505,7 @@ div.field { input, select, .button { display: inline-block; - width: 20em; + width: 50em; max-width: 100%; min-height: 1.8em; border-radius: 4px; @@ -513,10 +519,11 @@ input, select, .button { } input[type="text"] { - width: 19em; + width: 49em; padding-left: 0.5em; padding-right: 0.5em; text-align: left; + box-sizing: border-box; } select { diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 4a50dbe..54001e4 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -1,4 +1,5 @@ % if (stash 'show_intro') { +

Diese Seite ist ein inoffizielles Frontend zum Abfahrtsmonitor der DB. Sie kann wahlweise die vor Ort montierten Anzeigen nachahmen oder @@ -13,4 +14,5 @@ Alle Angaben ohne Gewähr.

Oder hier angeben:

+
% } diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 7c38798..f7a5f02 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -30,6 +30,7 @@ % if (my $error = stash 'error') { +
Backend-Fehler:
@@ -40,11 +41,13 @@
 % elsif (stash('stationlist')) {
 
Mehrdeutige Eingabe
Bitte eine Station aus der Liste auswählen
+
% } %= content % if (not stash('hide_opts')) { +
@@ -187,6 +190,8 @@ nur Züge via Bochum oder Hamm)
+
+
db-infoscreen v<%= stash('version') // '???' %>
-- cgit v1.2.3