Make WordPress Core

Ticket #57977: 57977.diff

File 57977.diff, 2.7 KB (added by chiragrathod103, 12 months ago)

Diff with the responsive CSS should apply

  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index 75048d3be5..3c14d2bcc1 100644
    a b img { 
    40744074        }
    40754075}
    40764076
     4077/* Small mobile devices */
     4078@media screen and (max-width: 480px) {
     4079        .metabox-prefs-container {
     4080                display: grid;
     4081        }
     4082        .metabox-prefs-container > * {
     4083                display: inline-block;
     4084                padding: 2px;
     4085        }
     4086}
     4087
    40774088/* Smartphone */
    40784089@media screen and (max-width: 600px) {
    40794090        /* Disable horizontal scroll when responsive menu is open
  • src/wp-admin/includes/class-wp-screen.php

    diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
    index d04d9a75b2..1901bc8f25 100644
    a b final class WP_Screen { 
    11181118                        <?php _e( 'Some screen elements can be shown or hidden by using the checkboxes.' ); ?>
    11191119                        <?php _e( 'Expand or collapse the elements by clicking on their headings, and arrange them by dragging their headings or by clicking on the up and down arrows.' ); ?>
    11201120                </p>
     1121                <div class="metabox-prefs-container">
    11211122                <?php
    11221123
    11231124                meta_box_prefs( $this );
    final class WP_Screen { 
    11371138                        echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
    11381139                }
    11391140                ?>
     1141                </div>
    11401142                </fieldset>
    11411143                <?php
    11421144        }