aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMax Weller <git@max-weller.de>2012-05-02 16:59:58 +0200
committerMax Weller <git@max-weller.de>2012-05-02 16:59:58 +0200
commitf0c11cac4a2eb4b7c7ca929b860c067c7fd3839d (patch)
tree344780da013c11f5428d04dc0993e4010e4a5b15 /view/theme
parent6875f54647cbbdb66e6d570cbf357a8b83644fad (diff)
downloadvolse-hubzilla-f0c11cac4a2eb4b7c7ca929b860c067c7fd3839d.tar.gz
volse-hubzilla-f0c11cac4a2eb4b7c7ca929b860c067c7fd3839d.tar.bz2
volse-hubzilla-f0c11cac4a2eb4b7c7ca929b860c067c7fd3839d.zip
Moved Meta Viewport from global head.tpl to diabook's header
I mistakenly added this <meta> tag to the global header, but it causes problems for other themes, as they have other optimal widths. I also added a style to diabook which makes the jGrowl messages appear below the header bar, so you can still click the menu items without having to close messages first.
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/diabook/style.css1
-rwxr-xr-xview/theme/diabook/theme.php8
2 files changed, 9 insertions, 0 deletions
diff --git a/view/theme/diabook/style.css b/view/theme/diabook/style.css
index e70c72cb2..2834e76f2 100644
--- a/view/theme/diabook/style.css
+++ b/view/theme/diabook/style.css
@@ -558,6 +558,7 @@ code {
text-decoration: none;
}
/* popup notifications */
+div.jGrowl.top-right { top: 30px; /* put it below header/nav bar */ }
div.jGrowl div.notice {
background: #511919 url("../../../images/icons/48/notice.png") no-repeat 5px center;
color: #ffffff;
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index a169043b2..758fb5d91 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -26,6 +26,14 @@ $resolution=false;
$resolution = get_pconfig(local_user(), "diabook", "resolution");
if ($resolution===false) $resolution="normal";
+//Add META viewport tag respecting the resolution to header for tablets
+if ($resolution=="wide") {
+ $a->page['htmlhead'] .= '<meta name="viewport" content="width=1200" />';
+} else {
+ $a->page['htmlhead'] .= '<meta name="viewport" content="width=980" />';
+}
+
+
$color = false;
$site_color = get_config("diabook", "color" );
if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");}