Make WordPress Core

Changeset 44466


Ignore:
Timestamp:
01/08/2019 06:18:17 AM (8 years ago)
Author:
pento
Message:

Comments: Improve the Author box in the Edit Comment screen.

  • Add a border below the heading, to match meta boxes.
  • Remove the colons from the input labels.
  • Tweak the padding and margins.

Props birgire, abdullahramzan, rhetorical, BODA1982, pento.
Fixes #43586.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r44437 r44466  
    20622062}
    20632063
    2064 .postbox .inside,
    2065 .stuffbox .inside {
     2064.postbox .inside {
    20662065        padding: 0 12px 12px;
    20672066        line-height: 1.4em;
    20682067        font-size: 13px;
     2068}
     2069
     2070.stuffbox .inside {
     2071        padding: 0;
     2072        line-height: 1.4em;
     2073        font-size: 13px;
     2074        margin-top: 0;
    20692075}
    20702076
    … …  
    23642370
    23652371.edit-comment-author {
    2366         font-size: 14px;
    2367         line-height: 1.4;
    2368         font-weight: 600;
    23692372        color: #222;
    2370         margin: 2px 0 0 9px;
     2373        border-bottom: 1px solid #eee;
    23712374}
    23722375
  • trunk/src/wp-admin/css/edit.css

    r43309 r44466  
    608608}
    609609
     610#poststuff .stuffbox h2 {
     611        padding: 8px 10px;
     612}
     613
    610614#poststuff .inside {
    611615        margin: 6px 0 0 0;
     616}
     617
     618#poststuff .stuffbox .inside {
     619  margin: 0;
    612620}
    613621
    … …  
    12471255.stuffbox .editcomment {
    12481256        clear: none;
     1257        margin-top: 0;
     1258}
     1259
     1260#namediv.stuffbox .editcomment input {
     1261        width: 100%;
     1262}
     1263
     1264#namediv.stuffbox .editcomment.form-table td {
     1265        padding: 10px;
    12491266}
    12501267
    … …  
    14401457        }
    14411458
     1459        #poststuff .stuffbox .inside {
     1460                padding: 0 2px 4px 0;
     1461        }
     1462
    14421463        #poststuff h3.hndle, /* Back-compat for pre-4.4 */
    14431464        #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    14441465        #poststuff h2 {
    14451466                padding: 12px;
     1467        }
     1468
     1469        #namediv.stuffbox .editcomment.form-table td {
     1470                padding: 5px 10px;
    14461471        }
    14471472
  • trunk/src/wp-admin/edit-form-comment.php

    r44214 r44466  
    4242<div class="inside">
    4343<fieldset>
    44 <legend class="edit-comment-author"><?php _e( 'Author' ); ?></legend>
     44<h2 class="edit-comment-author">
     45        <span><?php _e( 'Author' ); ?></span>
     46</h2>
    4547<table class="form-table editcomment">
    4648<tbody>
    4749<tr>
    48         <td class="first"><label for="name"><?php _e( 'Name:' ); ?></label></td>
     50        <td class="first"><label for="name"><?php _e( 'Name' ); ?></label></td>
    4951        <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td>
    5052</tr>
    5153<tr>
    52         <td class="first"><label for="email"><?php _e( 'Email:' ); ?></label></td>
     54        <td class="first"><label for="email"><?php _e( 'Email' ); ?></label></td>
    5355        <td>
    5456                <input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" />
    … …  
    5658</tr>
    5759<tr>
    58         <td class="first"><label for="newcomment_author_url"><?php _e( 'URL:' ); ?></label></td>
     60        <td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
    5961        <td>
    6062                <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
    … …  
    6365</tbody>
    6466</table>
    65 <br />
    6667</fieldset>
    6768</div>
Note: See TracChangeset for help on using the changeset viewer.