Add mobile webkit styles for twentyten. See #12303

git-svn-id: http://svn.automattic.com/wordpress/trunk@13554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
iammattthomas 2010-03-02 18:43:22 +00:00
parent dc764e91cd
commit 03e8e13e3d
2 changed files with 18 additions and 0 deletions

View File

@ -23,6 +23,10 @@
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
<?php if( strstr( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) ) : ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/mobile-webkit.css" />
<?php endif; ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

View File

@ -0,0 +1,14 @@
/* Mobile Safari ( iPad, iPhone and iPod Touch )
-------------------------------------------------------------- */
#access, .entry-meta, .navigation, pre {
-webkit-text-size-adjust: 140%;
}
code {
-webkit-text-size-adjust: 160%;
}
.widget-area {
-webkit-text-size-adjust: 120%;
}