WordPress.org

Make WordPress Core

Ticket #20805: 20805.patch

File 20805.patch, 1.9 KB (added by azaozz, 6 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
     490
     491.mobile #customize-controls {
     492        right: auto;
     493        width: 25%;
     494        position: fixed;
     495}
     496
     497.mobile #customize-preview {
     498        position: relative;
     499        left: 25%;
     500        width: 75%;
     501}
     502
     503.mobile #customize-preview iframe {
     504        overflow: hidden;
     505}
     506
     507body.mobile {
     508        position: static;
     509        z-index': 0;
     510        overflow: auto;
     511}
     512
  • wp-admin/customize.php

     
    4646do_action( 'customize_controls_print_scripts' );
    4747?>
    4848</head>
    49 <body class="wp-full-overlay">
     49<body class="wp-full-overlay<?php if ( wp_is_mobile() ) echo ' mobile'; ?>">
    5050        <form id="customize-controls" class="wrap wp-full-overlay-sidebar">
    5151                <?php wp_nonce_field( 'customize_controls' ); ?>
    5252                <div id="customize-header-actions" class="wp-full-overlay-header">
  • wp-includes/js/customize-preview.dev.js

     
    122122        });
    123123
    124124})( wp, jQuery );
     125
     126
     127
     128
     129
     130
     131
     132jQuery(document).ready(function($){
     133        var win = parent || top;
     134        if ( win.jQuery(document.body).hasClass('mobile') )
     135                win.jQuery('#customize-preview iframe').height( document.body.scrollHeight );
     136});
     137
     138
     139
     140
     141
     142
     143
     144