WordPress.org

Make WordPress Core

Ticket #12303: 12303-mobile-webkit.patch

File 12303-mobile-webkit.patch, 1.3 KB (added by iammattthomas, 4 years ago)

Updated version of patch - renamed css file and removed custom highlight colors

  • mobile-webkit.css

     
     1/* Mobile Safari ( iPad, iPhone and iPod Touch ) 
     2-------------------------------------------------------------- */ 
     3 
     4#access, .entry-meta, .navigation, pre { 
     5        -webkit-text-size-adjust: 140%; 
     6} 
     7 
     8code { 
     9        -webkit-text-size-adjust: 160%; 
     10} 
     11 
     12.widget-area { 
     13        -webkit-text-size-adjust: 120%; 
     14} 
  • 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'); ?>/mobile-webkit.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' ); ?>" />