Make WordPress Core

Ticket #34539: 34539.3.diff

File 34539.3.diff, 3.4 KB (added by xkon, 6 years ago)

Add new line under 375px

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

     
    37373737        }
    37383738}
    37393739
     3740@media screen and (max-width: 375px) {
     3741        .mobile-clear-both {
     3742                clear: both;
     3743                display: block;
     3744                padding-top: 5px;
     3745                padding-bottom: 5px;
     3746        }
     3747}
     3748
    37403749@media screen and (max-width: 320px) {
    37413750        /* Prevent default center alignment and larger font for the Right Now widget when
    37423751           the network dashboard is viewed on a small mobile device. */
  • src/wp-admin/css/forms.css

     
    12201220        input[type="number"].small-text,
    12211221        .form-table input[type="text"].small-text {
    12221222                width: auto;
    1223                 max-width: 55px;
     1223                max-width: 70px;
    12241224                display: inline;
    12251225                padding: 3px 6px;
    12261226                margin: 0 3px;
  • src/wp-admin/options-media.php

     
    5252<tr>
    5353<th scope="row"><?php _e('Thumbnail size') ?></th>
    5454<td>
     55<span class="mobile-clear-both">
    5556<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    5657<input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
     58</span>
     59<span class="mobile-clear-both">
    5760<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    5861<input name="thumbnail_size_h" type="number" step="1" min="0" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
     62</span>
    5963<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    6064<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    6165</td>
     
    6468<tr>
    6569<th scope="row"><?php _e('Medium size') ?></th>
    6670<td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
     71<span class="mobile-clear-both">
    6772<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    6873<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
     74</span>
     75<span class="mobile-clear-both">
    6976<label for="medium_size_h"><?php _e('Max Height'); ?></label>
    7077<input name="medium_size_h" type="number" step="1" min="0" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
     78</span>
    7179</fieldset></td>
    7280</tr>
    7381
     
    7482<tr>
    7583<th scope="row"><?php _e('Large size') ?></th>
    7684<td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
     85<span class="mobile-clear-both">
    7786<label for="large_size_w"><?php _e('Max Width'); ?></label>
    7887<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
     88</span>
     89<span class="mobile-clear-both">
    7990<label for="large_size_h"><?php _e('Max Height'); ?></label>
    8091<input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
     92</span>
    8193</fieldset></td>
    8294</tr>
    8395