1
0
Fork 0

Vier is now a little bit more mobile ready.

This commit is contained in:
Michael Vogel 2015-11-02 23:12:09 +01:00
commit 1831066259
2 changed files with 56 additions and 1 deletions

View file

@ -26,10 +26,14 @@ function vier_init(&$a) {
if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()) {
vier_community_info();
$a->page['htmlhead'] .= "<link rel='stylesheet' media='screen and (min-width: 1300px)' href='view/theme/vier/wide.css' />";
$a->page['htmlhead'] .= "<link rel='stylesheet' media='screen and (min-width: 1300px)' href='view/theme/vier/wide.css' />\n";
}
if ($a->is_mobile || $a->is_tablet)
$a->page['htmlhead'] .= '<meta name=viewport content="width=device-width, initial-scale=1">'."\n";
$a->page['htmlhead'] .= <<< EOT
<link rel='stylesheet' media='(max-width: 1010px)' href='view/theme/vier/mobile.css' />
<link rel='stylesheet' media='screen and (max-width: 1100px)' href='view/theme/vier/narrow.css' />
<script type="text/javascript">