Ticket #23702: 23702.1.diff

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

Simplify comment form label selectors

Line 
1Index: wp-content/themes/twentythirteen/style.css
2===================================================================
3--- wp-content/themes/twentythirteen/style.css  (revision 23689)
4+++ wp-content/themes/twentythirteen/style.css  (working copy)
5@@ -2393,10 +2393,7 @@
6        margin-bottom: 8px;
7 }
8 
9-#commentform label[for="author"],
10-#commentform label[for="email"],
11-#commentform label[for="url"],
12-#commentform label[for="comment"] {
13+#commentform label {
14        float: left;
15        padding: 5px 0;
16        width: 100px;
17@@ -2406,7 +2403,9 @@
18        color: #ed331c;
19 }
20 
21-#commentform input[type="text"] {
22+#commentform input[type="text"],
23+#commentform input[type="email"],
24+#commentform input[type="url"] {
25        max-width: 270px;
26        width: 60%;
27 }
28@@ -3027,7 +3026,9 @@
29                width:         calc(100% - 104px);
30        }
31 
32-       #commentform input[type="text"] {
33+       #commentform input[type="text"],
34+       #commentform input[type="email"],
35+       #commentform input[type="url"] {
36                width: -webkit-calc(100% - 100px);
37                width:         calc(100% - 100px);
38        }
39Index: wp-content/themes/twentythirteen/rtl.css
40===================================================================
41--- wp-content/themes/twentythirteen/rtl.css    (revision 23689)
42+++ wp-content/themes/twentythirteen/rtl.css    (working copy)
43@@ -652,10 +652,7 @@
44        content: normal;
45 }
46 
47-#commentform label[for="author"],
48-#commentform label[for="email"],
49-#commentform label[for="url"],
50-#commentform label[for="comment"] {
51+#commentform label {
52        float: right;
53 }
54 
55Index: wp-content/themes/twentythirteen/comments.php
56===================================================================
57--- wp-content/themes/twentythirteen/comments.php       (revision 23689)
58+++ wp-content/themes/twentythirteen/comments.php       (working copy)
59@@ -50,6 +50,6 @@
60 
61        <?php endif; // have_comments() ?>
62 
63-       <?php comment_form(); ?>
64+       <?php comment_form( array( 'format' => 'html5' ) ); ?>
65 
66 </div><!-- #comments -->
67\ No newline at end of file