Make WordPress Core

Ticket #30366: 30366.5.diff

File 30366.5.diff, 1.5 KB (added by iamtakashi, 10 years ago)

Provide portrait layout to landscape mode to avoid fixed element issues on iPad

  • src/wp-content/themes/twentyfifteen/header.php

     
    1212<html <?php language_attributes(); ?> class="no-js">
    1313<head>
    1414        <meta charset="<?php bloginfo( 'charset' ); ?>">
    15         <meta name="viewport" content="width=device-width, initial-scale=1">
     15        <meta name="viewport" content="width=device-width">
    1616        <link rel="profile" href="http://gmpg.org/xfn/11">
    1717        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    1818        <!--[if lt IE 9]>
  • src/wp-content/themes/twentyfifteen/style.css

     
    39183918 */
    39193919
    39203920@media screen and (min-width: 59.6875em) {
    3921         body:before,
    3922         .sidebar-fixed .site-header,
    3923         .sidebar-fixed .main-navigation,
    3924         .sidebar-fixed .social-navigation,
    3925         .sidebar-fixed .widget {
    3926                 -webkit-transform: translateZ(0); /* Fixes flashing bug with scrolling on iOS Safari */
    3927         }
    3928 
    3929         .sidebar-fixed .sidebar {
    3930                 position: fixed;
    3931         }
    3932 
    39333921        body:before {
    39343922                background-color: #fff;
    39353923                box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
     
    39413929                top: 0;
    39423930                left: 0;
    39433931                width: 29.4118%;
     3932                z-index: 0; /* Fixes flashing bug with scrolling on Safari */
    39443933        }
    39453934
    39463935        .site {