Make WordPress Core

Ticket #20805: 20805-2.patch

File 20805-2.patch, 2.1 KB (added by azaozz, 12 years ago)
  • wp-admin/css/customize-controls.dev.css

     
    483483.customize-section .customize-control-upload .upload-dropzone.supports-drag-drop.drag-over,
    484484.customize-section .customize-control-image .upload-dropzone.supports-drag-drop.drag-over {
    485485        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 */
     492body.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

     
    3939wp_user_settings();
    4040_wp_admin_html_begin();
    4141
     42$body_class = 'wp-full-overlay';
     43
     44if ( 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
    4254$admin_title = sprintf( __( '%1$s &#8212; WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
    4355?><title><?php echo $admin_title; ?></title><?php
    4456
     
    4658do_action( 'customize_controls_print_scripts' );
    4759?>
    4860</head>
    49 <body class="wp-full-overlay">
     61<body class="<?php echo $body_class; ?>">
    5062        <form id="customize-controls" class="wrap wp-full-overlay-sidebar">
    5163                <?php wp_nonce_field( 'customize_controls' ); ?>
    5264                <div id="customize-header-actions" class="wp-full-overlay-header">