Add mobile webkit styles for twentyten. See #12303
git-svn-id: https://develop.svn.wordpress.org/trunk@13554 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ae7037d39b
commit
c3622bd0f4
@ -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' ); ?>" />
|
||||
|
14
wp-content/themes/twentyten/mobile-webkit.css
Normal file
14
wp-content/themes/twentyten/mobile-webkit.css
Normal 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%;
|
||||
}
|
Loading…
Reference in New Issue
Block a user