From: Michael Vogel Date: Tue, 3 Nov 2015 22:11:36 +0000 (+0100) Subject: Mobile should be better now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=451b07cfe718ca39a57ea01f0f2a7654054c9f12;p=friendica.git Mobile should be better now --- diff --git a/view/theme/vier/mobile.css b/view/theme/vier/mobile.css index 198846e790..f250b88321 100644 --- a/view/theme/vier/mobile.css +++ b/view/theme/vier/mobile.css @@ -1,4 +1,5 @@ -aside, header, #nav-events-link, #search-box, #nav-admin-link, #activitiy-by-date-tab, #shared-links-tab { +aside, header, #nav-events-link, #search-box, #nav-admin-link, #activitiy-by-date-tab, #shared-links-tab, +.wall-item-location { display: none; } @@ -24,20 +25,44 @@ nav { } .wall-item-container .wall-item-content { + max-width: 100%; /* margin-left: -70px; padding-top: 25px; */ } -.wall-item-container .wall-item-content img { - max-width: 400px; -} - nav ul { margin-left: 0px; } + +.wall-item-container .wall-item-content img, +.children .wall-item-container .wall-item-item .wall-item-content img, .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image { - max-width: 400px; + max-width: 650px; +} + +@media screen and (max-width: 800px) { + .wall-item-container .wall-item-content img, + .children .wall-item-container .wall-item-item .wall-item-content img, + .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image { + max-width: 450px; + } +} + +@media screen and (max-width: 600px) { + .wall-item-container .wall-item-content img, + .children .wall-item-container .wall-item-item .wall-item-content img, + .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image { + max-width: 350px; + } +} + +@media screen and (max-width: 480px) { + .wall-item-container .wall-item-content img, + .children .wall-item-container .wall-item-item .wall-item-content img, + .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image { + max-width: 200px; + } } .wall-item-container.thread_level_2, @@ -49,3 +74,12 @@ nav ul { margin-left: 60px; width: calc(100% - 70px); } + +.wall-item-container.thread_level_2 .wall-item-content, +.wall-item-container.thread_level_3 .wall-item-content, +.wall-item-container.thread_level_4 .wall-item-content, +.wall-item-container.thread_level_5 .wall-item-content, +.wall-item-container.thread_level_6 .wall-item-content, +.wall-item-container.thread_level_7 .wall-item-content { + max-width: 100%; +} diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index a508baa771..1a4eb3e5ac 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -26,15 +26,17 @@ 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'] .= "\n"; + $a->page['htmlhead'] .= "\n"; } - if ($a->is_mobile || $a->is_tablet) + if ($a->is_mobile || $a->is_tablet) { $a->page['htmlhead'] .= ''."\n"; + $a->page['htmlhead'] .= ''."\n"; + } + $a->page['htmlhead'] .= ''."\n"; $a->page['htmlhead'] .= <<< EOT - - +