Commit e7d37d5a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Switch to App/Mobile first, no longer rely on BrowserDetect plugin

"App" with force_mobile=1 is now the default view even on desktop -- The
infoscreen template's extra large font wasn't really nice. This breaks
the setup of everyone who was relying on infoscreen being the default --
please append `mode=infoscreen` to your requests.
parent cd1dc757
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ Dependencies
 * perl >= 5.10
 * Cache::File (part of the Cache module)
 * Mojolicious
 * Mojolicious::Plugin::BrowserDetect
 * Travel::Status::DE::DBWagenreihung >= 0.00
 * Travel::Status::DE::DeutscheBahn >= 2.03
 * Travel::Status::DE::IRIS >= 1.21
+0 −1
Original line number Diff line number Diff line
@@ -242,7 +242,6 @@ sub startup {
	);

	$self->types->type( json => 'application/json; charset=utf-8' );
	$self->plugin('browser_detect');

}

+1 −0
Original line number Diff line number Diff line
@@ -798,6 +798,7 @@ sub handle_request {
				     $template eq 'single'
				  or $template eq 'multi'
			),
			force_mobile => ( $template eq 'app' ),
		);
	}
	return;
+17 −0
Original line number Diff line number Diff line
body {
	margin: 0;
}

html {
	font-family: Sans-Serif;
}
@@ -7,6 +11,19 @@ a {
	text-decoration: none;
}

p,
div.about,
div.input-field,
div.notes {
	max-width: 94%;
	margin-left: auto;
	margin-right: auto;
}

p {
	text-align: justify;
}

div.app {
	border-width:1px 2px;
	width:100%;
+4 −14
Original line number Diff line number Diff line
body {
	margin: 0;
div.app {
	max-width: 60em;
	margin-left: auto;
	margin-right: auto;
}

div.app > ul > li {
@@ -9,15 +11,3 @@ div.app > ul > li {
div.app li .moreinfo {
	font-size: 2.6em;
}

p,
div.input-field,
div.notes {
	max-width: 94%;
	margin-left: auto;
	margin-right: auto;
}

p {
	text-align: justify;
}
Loading