Skip to content

Commit 8d43a3f

Browse files
committed
Administration: Fix the CSS Coding Standards in install.css.
Lints the `src/wp-admin/css/install.css` file. Part of the ongoing effort to lint all the admin CSS files. Developed in WordPress#13140 See #65898. git-svn-id: https://develop.svn.wordpress.org/trunk@63973 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9d58227 commit 8d43a3f

1 file changed

Lines changed: 34 additions & 25 deletions

File tree

‎src/wp-admin/css/install.css‎

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ a:focus {
3232
outline: 2px solid transparent;
3333
}
3434

35-
h1, h2 {
35+
h1,
36+
h2 {
3637
border-bottom: 1px solid #dcdcde;
3738
clear: both;
3839
color: #646970;
@@ -45,23 +46,30 @@ h3 {
4546
font-size: 16px;
4647
}
4748

48-
p, li, dd, dt {
49+
p,
50+
li,
51+
dd,
52+
dt {
4953
padding-bottom: 2px;
5054
font-size: 14px;
5155
line-height: 1.5;
5256
}
5357

54-
code, .code {
58+
code,
59+
.code {
5560
font-family: Consolas, Monaco, monospace;
5661
}
5762

58-
ul, ol, dl {
63+
ul,
64+
ol,
65+
dl {
5966
padding: 5px 5px 5px 22px;
6067
}
6168

6269
a img {
63-
border: 0
70+
border: 0;
6471
}
72+
6573
abbr {
6674
border: 0;
6775
font-variant: normal;
@@ -87,7 +95,7 @@ fieldset {
8795
color: #3c434a; /* same as login.css */
8896
font-size: 20px;
8997
font-weight: 400;
90-
line-height: 1.3em;
98+
line-height: 1.3;
9199
text-decoration: none;
92100
text-align: center;
93101
text-indent: -9999px;
@@ -97,13 +105,17 @@ fieldset {
97105
.step {
98106
margin: 20px 0 15px;
99107
}
100-
.step, th {
108+
109+
.step,
110+
th {
101111
text-align: left;
102112
padding: 0;
103113
}
114+
104115
.language-chooser.wp-core-ui .step .button.button-large {
105116
font-size: 14px;
106117
}
118+
107119
textarea {
108120
border: 1px solid #dcdcde;
109121
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
@@ -121,7 +133,7 @@ textarea {
121133
margin-bottom: 9px;
122134
padding: 10px 20px 10px 0;
123135
font-size: 14px;
124-
vertical-align: top
136+
vertical-align: top;
125137
}
126138

127139
.form-table th {
@@ -166,15 +178,14 @@ textarea {
166178
width: 100%;
167179
}
168180

169-
input,
170-
submit {
181+
input {
171182
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
172183
}
173184

174-
.form-table input[type=text],
175-
.form-table input[type=email],
176-
.form-table input[type=url],
177-
.form-table input[type=password],
185+
.form-table input[type="text"],
186+
.form-table input[type="email"],
187+
.form-table input[type="url"],
188+
.form-table input[type="password"],
178189
#pass-strength-result {
179190
width: 100%;
180191
}
@@ -209,13 +220,14 @@ submit {
209220
margin: 25px 0 20px;
210221
}
211222

212-
#error-page code, .code {
223+
#error-page code,
224+
.code {
213225
font-family: Consolas, Monaco, monospace;
214226
}
215227

216228
.message {
217229
border-left: 4px solid #d63638;
218-
padding: .7em .6em;
230+
padding: 0.7em 0.6em;
219231
background-color: #fcf0f1;
220232
}
221233

@@ -225,40 +237,39 @@ submit {
225237
#pwd,
226238
#dbhost,
227239
#prefix,
240+
/* stylelint-disable selector-id-pattern -- These ID selectors use a single underscore but cannot be changed because of backward compatibility reasons. */
228241
#user_login,
229242
#admin_email,
243+
/* stylelint-enable */
230244
#pass1,
231245
#pass2 {
232246
direction: ltr;
233247
}
234248

235-
236249
/* localization */
237250
body.rtl,
238251
.rtl textarea,
239-
.rtl input,
240-
.rtl submit {
252+
.rtl input {
241253
font-family: Tahoma, sans-serif;
242254
}
243255

244256
:lang(he-il) body.rtl,
245257
:lang(he-il) .rtl textarea,
246-
:lang(he-il) .rtl input,
247-
:lang(he-il) .rtl submit {
258+
:lang(he-il) .rtl input {
248259
font-family: Arial, sans-serif;
249260
}
250261

251262
@media only screen and (max-width: 799px) {
252263
body {
253264
margin-top: 115px;
254265
}
266+
255267
#logo a {
256268
margin: -125px auto 30px;
257269
}
258270
}
259271

260272
@media screen and (max-width: 782px) {
261-
262273
.form-table {
263274
margin-top: 0;
264275
}
@@ -395,10 +406,8 @@ body.language-chooser {
395406
* HiDPI Displays
396407
*/
397408
@media print,
398-
(min-resolution: 120dpi) {
399-
409+
(min-resolution: 120dpi) {
400410
.spinner {
401411
background-image: url(../images/spinner-2x.gif);
402412
}
403-
404413
}

0 commit comments

Comments
 (0)