WordPress.org

Make WordPress Core

Ticket #47115: 47115.diff

File 47115.diff, 3.7 KB (added by sabernhardt, 22 months ago)

Image Scale and Image Crop text inputs, Attachment Description quicktags buttons

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

     
    655655        margin-bottom: 20px;
    656656}
    657657
     658.wp_attachment_details .attachment-content-description {
     659        margin-top: 0.5385em;
     660        display: inline-block;
     661        min-height: 1.6923em;
     662}
     663
    658664/* Suggested text for privacy policy */
    659665.wp-privacy-policy-guide {
    660666        max-width: 1000px;
  • src/wp-admin/css/media.css

     
    11141114        padding: 10px;
    11151115}
    11161116
     1117.imgedit-settings .imgedit-original-dimensions {
     1118        display: inline-block;
     1119}
     1120
    11171121.imgedit-settings .imgedit-scale input[type="text"],
    11181122.imgedit-settings .imgedit-crop-ratio input[type="text"],
    11191123.imgedit-settings .imgedit-crop-sel input[type="text"] {
    1120         width: 50px;
     1124        width: 80px;
    11211125        font-size: 14px;
    11221126        padding: 5px 8px;
    11231127}
     
    11301134        color: #444;
    11311135}
    11321136
     1137.imgedit-settings .imgedit-scale-button-wrapper {
     1138        margin-top: 0.3077em;
     1139        display: block;
     1140}
     1141
    11331142.imgedit-settings .imgedit-scale .button {
    11341143        margin-bottom: 0;
    11351144}
  • src/wp-admin/includes/image-edit.php

     
    6262                        printf(
    6363                                /* translators: %s: Image width and height in pixels. */
    6464                                __( 'Original dimensions %s' ),
    65                                 $meta['width'] . ' × ' . $meta['height']
     65                                '<span class="imgedit-original-dimensions">' . $meta['width'] . ' &times; ' . $meta['height'] . '</span>'
    6666                        );
    6767                        ?>
    6868                </p>
     
    7878                <label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label>
    7979                <input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
    8080                <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span>
    81                 <input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" />
     81                <div class="imgedit-scale-button-wrapper"><input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /></div>
    8282                </div>
    8383                </fieldset>
    8484
  • src/wp-admin/includes/media.php

     
    32073207
    32083208        ?>
    32093209
    3210         <label for="attachment_content"><strong><?php _e( 'Description' ); ?></strong>
     3210        <label for="attachment_content" class="attachment-content-description"><strong><?php _e( 'Description' ); ?></strong>
    32113211        <?php
    32123212
    32133213        if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
  • src/wp-includes/css/editor.css

     
    13221322        .wp-core-ui .quicktags-toolbar input.button.button-small {
    13231323                /* .button-small is normally 11px, but a bit too small for these buttons. */
    13241324                font-size: 12px;
    1325                 height: 26px;
     1325                min-height: 26px;
    13261326                line-height: 2;
    13271327        }
    13281328}