Ticket #20805: 20805-2.patch
File 20805-2.patch, 2.1 KB (added by , 11 years ago) |
---|
-
wp-admin/css/customize-controls.dev.css
483 483 .customize-section .customize-control-upload .upload-dropzone.supports-drag-drop.drag-over, 484 484 .customize-section .customize-control-image .upload-dropzone.supports-drag-drop.drag-over { 485 485 border-color: #83b4d8; 486 } 487 No newline at end of file 486 } 487 488 /** 489 * iOS can't scroll iframes, 490 * instead it expands the iframe size to match the size of the content 491 */ 492 body.ios { 493 position: static; 494 z-index: 0; 495 overflow: auto; 496 } 497 498 .ios #customize-controls { 499 right: auto; 500 width: 250px; 501 position: fixed; 502 } 503 504 .ios #customize-preview { 505 position: relative; 506 left: 250px; 507 } 508 509 .ios.collapsed #customize-preview { 510 left: 0; 511 width: 100% 512 } 513 514 .ios.collapsed #customize-controls { 515 margin-left: -250px; 516 } 517 -
wp-admin/customize.php
39 39 wp_user_settings(); 40 40 _wp_admin_html_begin(); 41 41 42 $body_class = 'wp-full-overlay'; 43 44 if ( wp_is_mobile() ) { 45 $body_class .= ' mobile'; 46 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') 47 || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') 48 || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') ) 49 $body_class .= ' ios'; 50 51 ?><meta name="viewport" id="viewport-meta" content="width=device-width, initial-scale=0.8, minimum-scale=0.5, maximum-scale=2.0"><?php 52 } 53 42 54 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); 43 55 ?><title><?php echo $admin_title; ?></title><?php 44 56 … … 46 58 do_action( 'customize_controls_print_scripts' ); 47 59 ?> 48 60 </head> 49 <body class=" wp-full-overlay">61 <body class="<?php echo $body_class; ?>"> 50 62 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> 51 63 <?php wp_nonce_field( 'customize_controls' ); ?> 52 64 <div id="customize-header-actions" class="wp-full-overlay-header">