mobile friendly tabs
This commit is contained in:
		
					parent
					
						
							
								c687069709
							
						
					
				
			
			
				commit
				
					
						e5edd7b7db
					
				
			
		
					 2 changed files with 29 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,7 @@ function vier_init(&$a) {
 | 
			
		|||
		$a->page['htmlhead'] .= '<meta name=viewport content="width=device-width, initial-scale=1">'."\n";
 | 
			
		||||
		$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen"/>'."\n";
 | 
			
		||||
	}
 | 
			
		||||
		$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n";
 | 
			
		||||
		#$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n";
 | 
			
		||||
 | 
			
		||||
$a->page['htmlhead'] .= <<< EOT
 | 
			
		||||
<link rel='stylesheet' type='text/css' href='view/theme/vier/narrow.css' media='screen and (max-width: 1100px)' />
 | 
			
		||||
| 
						 | 
				
			
			@ -92,6 +92,9 @@ $(document).ready(function() {
 | 
			
		|||
		e.preventDefault();
 | 
			
		||||
		$("aside").toggleClass("show");
 | 
			
		||||
	});
 | 
			
		||||
	$(".tabs").click(function(e){
 | 
			
		||||
		$(this).toggleClass("show");
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue