WordPress.org

Make WordPress Core

Ticket #23851: 23851.2.diff

File 23851.2.diff, 7.7 KB (added by obenland, 5 years ago)

.2 uses .comment-respond and includes Twenty Thirteen styles. Largely untested!

  • wp-content/themes/twentythirteen/css/ie.css

     
    1919.attachment-meta a:before:hover,
    2020.comment-awaiting-moderation:before:hover,
    2121.comment-reply-link:before:hover,
    22 #reply-title small a:before:hover,
     22.reply-title small a:before:hover,
    2323.bypostauthor > .comment-body .fn:before:hover {
    2424        text-decoration: none;
    2525}
     
    270270
    271271.ie7 .comments-title,
    272272.ie7 .comment-list,
    273 .ie7 #reply-title,
    274 .ie7 #respond #commentform {
     273.ie7 .reply-title,
     274.ie7 .comment-respond .comment-form {
    275275        width: 604px;
    276276}
    277277
  • wp-content/themes/twentythirteen/rtl.css

     
    466466
    467467.sidebar .comments-title,
    468468.sidebar .comment-list,
    469 .sidebar #reply-title,
     469.sidebar .reply-title,
    470470.sidebar .comment-navigation,
    471 .sidebar #respond #commentform {
     471.sidebar .comment-respond .comment-form {
    472472        padding-left: 376px;
    473473        padding-right: 60px;
    474474}
     
    512512        transform:         scaleX(-1);
    513513}
    514514
    515 #reply-title small a {
     515.reply-title small a {
    516516        float: left;
    517517}
    518518
    519 #commentform [for="author"],
    520 #commentform [for="email"],
    521 #commentform [for="url"],
    522 #commentform [for="comment"] {
     519.comment-form [for="author"],
     520.comment-form [for="email"],
     521.comment-form [for="url"],
     522.comment-form [for="comment"] {
    523523        float: right;
    524524}
    525525
     
    625625        .sidebar .entry-summary,
    626626        .sidebar .entry-meta,
    627627        .sidebar .comment-list,
    628         .sidebar #reply-title,
     628        .sidebar .reply-title,
    629629        .sidebar .comment-navigation,
    630         .sidebar #respond #commentform,
     630        .sidebar .comment-respond .comment-form,
    631631        .sidebar .featured-gallery,
    632632        .sidebar .post-navigation .nav-links,
    633633        .author.sidebar .author-info,
  • wp-content/themes/twentythirteen/style.css

     
    501501.comment-awaiting-moderation:before,
    502502.comment-reply-link:before,
    503503.comment-reply-login:before,
    504 #reply-title small a:before,
     504.reply-title small a:before,
    505505.bypostauthor > .comment-body .fn:before,
    506506.error404 .page-title:before {
    507507        -webkit-font-smoothing: antialiased;
     
    21852185
    21862186.comments-title,
    21872187.comment-list,
    2188 #reply-title,
     2188.reply-title,
    21892189.must-log-in,
    2190 #respond #commentform,
    2191 #respond iframe {
     2190.comment-respond .comment-form,
     2191.comment-respond iframe {
    21922192        display: block;
    21932193        margin-left: auto;
    21942194        margin-right: auto;
     
    21992199.sidebar .comments-title,
    22002200.sidebar .comment-list,
    22012201.sidebar .must-log-in,
    2202 .sidebar #reply-title,
     2202.sidebar .reply-title,
    22032203.sidebar .comment-navigation,
    2204 .sidebar #respond #commentform {
     2204.sidebar .comment-respond .comment-form {
    22052205        max-width: 1040px;
    22062206        padding-left: 60px;
    22072207        padding-right: 376px;
     
    23362336}
    23372337
    23382338/* Comment form */
    2339 #respond {
     2339.comment-respond {
    23402340        background-color: #f7f5e7;
    23412341        padding: 30px 0;
    23422342}
    23432343
    2344 .comment #respond {
     2344.comment .comment-respond {
    23452345        margin-bottom: 20px;
    23462346        padding: 20px;
    23472347}
    23482348
    2349 #reply-title {
     2349.reply-title {
    23502350        font: 300 italic 28px "Source Sans Pro", Helvetica, sans-serif;
    23512351}
    23522352
    2353 #reply-title small a {
     2353.reply-title small a {
    23542354        color: #131310;
    23552355        display: inline-block;
    23562356        float: right;
     
    23592359        width: 16px;
    23602360}
    23612361
    2362 #reply-title small a:hover {
     2362.reply-title small a:hover {
    23632363        color: #ed331c;
    23642364        text-decoration: none;
    23652365}
    23662366
    2367 #reply-title small a:before {
     2367.reply-title small a:before {
    23682368        content: "\f406";
    23692369        vertical-align: top;
    23702370}
    23712371
    2372 .sidebar .comment-list #reply-title,
    2373 .sidebar .comment-list #respond #commentform {
     2372.sidebar .comment-list .reply-title,
     2373.sidebar .comment-list .comment-respond .comment-form {
    23742374        padding: 0;
    23752375}
    23762376
    2377 #commentform .comment-notes {
     2377.comment-form .comment-notes {
    23782378        margin-bottom: 15px;
    23792379}
    23802380
    2381 #commentform .comment-form-author,
    2382 #commentform .comment-form-email,
    2383 #commentform .comment-form-url {
     2381.comment-form .comment-form-author,
     2382.comment-form .comment-form-email,
     2383.comment-form .comment-form-url {
    23842384        margin-bottom: 8px;
    23852385}
    23862386
    2387 #commentform [for="author"],
    2388 #commentform [for="email"],
    2389 #commentform [for="url"],
    2390 #commentform [for="comment"] {
     2387.comment-form [for="author"],
     2388.comment-form [for="email"],
     2389.comment-form [for="url"],
     2390.comment-form [for="comment"] {
    23912391        float: left;
    23922392        padding: 5px 0;
    23932393        width: 120px;
    23942394}
    23952395
    2396 #commentform .required {
     2396.comment-form .required {
    23972397        color: #ed331c;
    23982398}
    23992399
    2400 #commentform input[type="text"],
    2401 #commentform input[type="email"],
    2402 #commentform input[type="url"] {
     2400.comment-form input[type="text"],
     2401.comment-form input[type="email"],
     2402.comment-form input[type="url"] {
    24032403        max-width: 270px;
    24042404        width: 60%;
    24052405}
    24062406
    2407 #commentform textarea {
     2407.comment-form textarea {
    24082408        width: 100%;
    24092409}
    24102410
     
    27502750        .sidebar .entry-summary,
    27512751        .sidebar .entry-meta,
    27522752        .sidebar .comment-list,
    2753         .sidebar #reply-title,
     2753        .sidebar .reply-title,
    27542754        .sidebar .comment-navigation,
    2755         .sidebar #respond #commentform,
     2755        .sidebar .comment-respond .comment-form,
    27562756        .sidebar .featured-gallery,
    27572757        .sidebar .post-navigation .nav-links,
    27582758        .author.sidebar .author-info {
     
    28832883        .comments-area .comments-title,
    28842884        .comments-area .comment-list,
    28852885        .comments-area .comment-navigation,
    2886         #respond,
     2886        .comment-respond,
    28872887        .sidebar .site-info,
    28882888        .sidebar .paging-navigation .nav-links {
    28892889                padding-left: 20px;
     
    30143014                width:         calc(100% - 104px);
    30153015        }
    30163016
    3017         #commentform input[type="text"],
    3018         #commentform input[type="email"],
    3019         #commentform input[type="url"] {
     3017        .comment-form input[type="text"],
     3018        .comment-form input[type="email"],
     3019        .comment-form input[type="url"] {
    30203020                width: -webkit-calc(100% - 120px);
    30213021                width:         calc(100% - 120px);
    30223022        }
    30233023
    3024         #commentform textarea {
     3024        .comment-form textarea {
    30253025                height: 80px; /* Smaller field for mobile. */
    30263026        }
    30273027
     
    31713171
    31723172        .author-avatar,
    31733173        .site-footer,
    3174         #respond,
     3174        .comment-respond,
    31753175        .comments-area .comment-edit-link,
    31763176        .comments-area .reply,
    31773177        .comments-link,
  • wp-includes/comment-template.php

     
    16431643        ?>
    16441644                <?php if ( comments_open( $post_id ) ) : ?>
    16451645                        <?php do_action( 'comment_form_before' ); ?>
    1646                         <div id="respond">
    1647                                 <h3 id="reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>
     1646                        <div id="respond" class="comment-respond">
     1647                                <h3 id="reply-title" class="reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>
    16481648                                <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?>
    16491649                                        <?php echo $args['must_log_in']; ?>
    16501650                                        <?php do_action( 'comment_form_must_log_in_after' ); ?>
    16511651                                <?php else : ?>
    1652                                         <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>>
     1652                                        <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
    16531653                                                <?php do_action( 'comment_form_top' ); ?>
    16541654                                                <?php if ( is_user_logged_in() ) : ?>
    16551655                                                        <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>