WordPress.org

Make WordPress Core

Ticket #12303: mobilesafari.tweaks.twentyten.adjust.patch

File mobilesafari.tweaks.twentyten.adjust.patch, 1.7 KB (added by Simek, 4 years ago)
  • header.php

     
    2323        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> 
    2424        <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" /> 
    2525 
     26        <?php if( strstr( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) ) : ?> 
     27                <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/webkit_mobile.css" /> 
     28        <?php endif; ?> 
     29         
    2630        <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
    2731 
    2832        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 
  • webkit_mobile.css

     
     1/* Mobile Safari ( iPad, iPhone and iPod Touch ) 
     2-------------------------------------------------------------- */ 
     3 
     4a, #site-title a { 
     5        -webkit-tap-highlight-color: rgba( 41, 133, 223, 0.3 ); 
     6} 
     7 
     8#site-info a, .entry-meta a, .entry-utility a, .comment-meta a, .navigation a, textarea, input { 
     9        -webkit-tap-highlight-color: rgba( 159, 159, 159, 0.3 ); 
     10} 
     11 
     12#access a, input[type=submit] { 
     13        -webkit-tap-highlight-color: rgba( 255, 255, 255, 0.3 ); 
     14} 
     15 
     16.entry-title a { 
     17        -webkit-tap-highlight-color: rgba( 255, 75, 51, 0.3 ); 
     18} 
     19 
     20code { 
     21        -webkit-text-size-adjust: 180%; 
     22} 
     23 
     24#access, .entry-meta, .navigation { 
     25        -webkit-text-size-adjust: 140%; 
     26} 
     27 
     28.widget-area { 
     29        -webkit-text-size-adjust: 120%; 
     30}