Ticket #20579: 20579.5.twentytwelve.diff

File 20579.5.twentytwelve.diff, 2.2 KB (added by lancewillett, 6 months ago)
Line 
1Index: wp-content/themes/twentytwelve/style.css
2===================================================================
3--- wp-content/themes/twentytwelve/style.css    (revision 22873)
4+++ wp-content/themes/twentytwelve/style.css    (working copy)
5@@ -202,9 +202,43 @@
6        line-height: 2.181818182;
7 }
8 
9+/* Form fields, general styles first */
10+button,
11+input,
12+textarea {
13+       border: 1px solid #ccc;
14+       border-radius: 3px;
15+       font-family: inherit;
16+       padding: 6px;
17+       padding: 0.428571429rem;
18+}
19+button,
20+input {
21+    line-height: normal;
22+}
23+textarea {
24+       font-size: 100%;
25+       overflow: auto;
26+       vertical-align: top;
27+}
28+
29+/* Reset non-text input types */
30+input[type="checkbox"],
31+input[type="radio"],
32+input[type="file"],
33+input[type="hidden"],
34+input[type="image"],
35+input[type="color"] {
36+       border: 0;
37+       border-radius: 0;
38+       padding: 0;
39+}
40+
41 /* Buttons */
42 .menu-toggle,
43 input[type="submit"],
44+input[type="button"],
45+input[type="reset"],
46 article.post-password-required input[type=submit],
47 li.bypostauthor cite span {
48        padding: 6px 10px;
49@@ -226,12 +260,21 @@
50        box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
51 }
52 .menu-toggle,
53+button,
54 input[type="submit"],
55-article.post-password-required input[type=submit] {
56+input[type="button"],
57+input[type="reset"] {
58        cursor: pointer;
59 }
60+button[disabled],
61+input[disabled] {
62+    cursor: default;
63+}
64 .menu-toggle:hover,
65+button:hover,
66 input[type="submit"]:hover,
67+input[type="button"]:hover,
68+input[type="reset"]:hover,
69 article.post-password-required input[type=submit]:hover {
70        color: #5e5e5e;
71        background-color: #ebebeb;
72@@ -244,9 +287,10 @@
73 }
74 .menu-toggle:active,
75 .menu-toggle.toggled-on,
76+button:active,
77 input[type="submit"]:active,
78-article.post-password-required input[type=submit]:active,
79-input[type="submit"].toggled-on {
80+input[type="button"]:active,
81+input[type="reset"]:active {
82        color: #757575;
83        background-color: #e1e1e1;
84        background-repeat: repeat-x;
85@@ -268,19 +312,6 @@
86        padding: 0;
87 }
88 
89-/* Form fields */
90-input[type="text"],
91-input[type="password"],
92-input[type="email"],
93-input[type="url"],
94-textarea {
95-       padding: 6px;
96-       padding: 0.428571429rem;
97-       font-family: inherit;
98-       border: 1px solid #ccc;
99-       border-radius: 3px;
100-}
101-
102 /* Responsive images */
103 .entry-content img,
104 .comment-content img,