From: maxious Date: Sun, 20 Mar 2011 04:06:26 +0000 Subject: Hide viaPoints when display width is less than 480px X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=d536d0756ef163683062fdcca6c1f19425ae97cc --- Hide viaPoints when display width is less than 480px --- --- a/common-template.inc.php +++ b/common-template.inc.php @@ -1,11 +1,37 @@ - - + + + ' . $pageTitle . ''; + if ($datepicker) echo ''; if (isDebugServer()) echo ' @@ -20,7 +46,7 @@ }); '; -echo ' - + #jqm-homeheader { + text-align: center; + } + .viaPoints { + display: none; + text-size: 0.2em; + } + .min-width-480px .viaPoints { + display: block; + } + // source http://webaim.org/techniques/skipnav/ + #skip a, #skip a:hover, #skip a:visited +{ +position:absolute; +left:0px; +top:-500px; +width:1px; +height:1px; +overflow:hidden; +} + +#skip a:active, #skip a:focus +{ +position:static; +width:auto; +height:auto; +} +'; + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { + echo ' '; + } if ($geolocate) { echo "