WordPress.org

Make WordPress Core

Ticket #23702: 23702.1.diff

File 23702.1.diff, 1.9 KB (added by lancewillett, 2 years ago)

Simplify comment form label selectors

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

     
    23932393        margin-bottom: 8px; 
    23942394} 
    23952395 
    2396 #commentform label[for="author"], 
    2397 #commentform label[for="email"], 
    2398 #commentform label[for="url"], 
    2399 #commentform label[for="comment"] { 
     2396#commentform label { 
    24002397        float: left; 
    24012398        padding: 5px 0; 
    24022399        width: 100px; 
     
    24062403        color: #ed331c; 
    24072404} 
    24082405 
    2409 #commentform input[type="text"] { 
     2406#commentform input[type="text"], 
     2407#commentform input[type="email"], 
     2408#commentform input[type="url"] { 
    24102409        max-width: 270px; 
    24112410        width: 60%; 
    24122411} 
     
    30273026                width:         calc(100% - 104px); 
    30283027        } 
    30293028 
    3030         #commentform input[type="text"] { 
     3029        #commentform input[type="text"], 
     3030        #commentform input[type="email"], 
     3031        #commentform input[type="url"] { 
    30313032                width: -webkit-calc(100% - 100px); 
    30323033                width:         calc(100% - 100px); 
    30333034        } 
  • wp-content/themes/twentythirteen/rtl.css

     
    652652        content: normal; 
    653653} 
    654654 
    655 #commentform label[for="author"], 
    656 #commentform label[for="email"], 
    657 #commentform label[for="url"], 
    658 #commentform label[for="comment"] { 
     655#commentform label { 
    659656        float: right; 
    660657} 
    661658 
  • wp-content/themes/twentythirteen/comments.php

     
    5050 
    5151        <?php endif; // have_comments() ?> 
    5252 
    53         <?php comment_form(); ?> 
     53        <?php comment_form( array( 'format' => 'html5' ) ); ?> 
    5454 
    5555</div><!-- #comments --> 
     56 No newline at end of file