Make WordPress Core

Changeset 30565


Ignore:
Timestamp:
11/25/2014 02:57:40 PM (11 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: pinching to zoom in on landscape on iPads is breaking the layout with the sticky sidebar. Providing a one-column view on those screens looks good and will likely prevent other bugs we don't even know about.

Props iamtakashi, fixes #30366.

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/header.php

    r30394 r30565  
    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' ); ?>">
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r30564 r30565  
    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;
     
    39423930        left: 0;
    39433931        width: 29.4118%;
     3932        z-index: 0; /* Fixes flashing bug with scrolling on Safari */
    39443933    }
    39453934
Note: See TracChangeset for help on using the changeset viewer.