Ticket #38395: 38395.patch
| File 38395.patch, 2.4 KB (added by , 9 years ago) |
|---|
-
src/wp-content/themes/twentyseventeen/assets/js/global.js
139 139 return 'http://www.w3.org/2000/svg' === ( 'undefined' !== typeof SVGRect && div.firstChild && div.firstChild.namespaceURI ); 140 140 } 141 141 142 /** 143 * Test if an iOS device. 144 */ 145 function checkiOS() { 146 return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; 147 } 148 142 149 // Fires on document ready 143 150 $( document ).ready( function() { 144 151 … … 168 175 169 176 adjustHeaderHeight(); 170 177 setQuotesIcon(); 178 checkiOS(); 179 if ( true === checkiOS() ) { 180 document.documentElement.className = document.documentElement.className.replace( /(\s*)no-ios(\s*)/, '$1ios$2' ); 181 } 171 182 supportsInlineSVG(); 172 183 if ( true === supportsInlineSVG() ) { 173 184 document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' ); -
src/wp-content/themes/twentyseventeen/header.php
13 13 */ 14 14 15 15 ?><!DOCTYPE html> 16 <html <?php language_attributes(); ?> class="no-js no-svg ">16 <html <?php language_attributes(); ?> class="no-js no-svg no-ios"> 17 17 <head> 18 18 <meta charset="<?php bloginfo( 'charset' ); ?>"> 19 19 <meta name="viewport" content="width=device-width, initial-scale=1"> -
src/wp-content/themes/twentyseventeen/style.css
3903 3903 3904 3904 @media screen and ( min-width: 55em ) { 3905 3905 3906 .twentyseventeen-front-page.has-header-image .custom-header-image, 3907 .home.blog.has-header-image .custom-header-image { 3906 /* Only apply background-attachment: fixed when not on an iOS device. */ 3907 .not-ios .twentyseventeen-front-page.has-header-image .custom-header-image, 3908 .not-ios .home.blog.has-header-image .custom-header-image, 3909 .not-ios .panel-image { 3908 3910 background-attachment: fixed; 3909 3911 } 3910 3911 .panel-image {3912 background-attachment: fixed;3913 }3914 3912 } 3915 3913 3916 3914 @media screen and ( min-width: 67em ) {