Skip to content

Commit 265fabc

Browse files
committed
Use numeric font weights instead of keywords.
When Open Sans was in use, the `300`, `400`, and `600` weights were loaded. `400` is the equivalent of `normal`; however, `bold` is equivalent to `700`, not `600`. With the move to system fonts, we need to be specific rather than relying on the lack of a `700` weight. Not all system fonts include a `600` weight; in those instances, they will use the `bold`/`700` weight. The WordPress CSS Coding Standards have been updated accordingly. props coderste. see #36753. git-svn-id: https://develop.svn.wordpress.org/trunk@37740 602fd350-edb4-49c9-b593-d223f7449a82
1 parent bfdf00c commit 265fabc

23 files changed

Lines changed: 80 additions & 80 deletions

src/wp-admin/css/about.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@
136136
.about-wrap code,
137137
.about-wrap ol li p {
138138
font-size: 14px;
139-
font-weight: normal;
139+
font-weight: 400;
140140
}
141141

142142
.about-wrap .about-description,
143143
.about-wrap .about-text {
144144
margin-top: 1.4em;
145-
font-weight: normal;
145+
font-weight: 400;
146146
line-height: 1.6em;
147147
font-size: 19px;
148148
}
@@ -325,7 +325,7 @@
325325
.about-wrap .return-to-dashboard {
326326
margin: 30px 0 0 -5px;
327327
font-size: 14px;
328-
font-weight: bold;
328+
font-weight: 600;
329329
}
330330

331331
.about-wrap .return-to-dashboard a {
@@ -387,7 +387,7 @@
387387
.about-wrap .wp-person .web {
388388
margin: 6px 0 2px;
389389
font-size: 16px;
390-
font-weight: normal;
390+
font-weight: 400;
391391
line-height: 2em;
392392
text-decoration: none;
393393
}
@@ -412,11 +412,11 @@
412412

413413
.freedoms-php .about-wrap ol li {
414414
list-style-type: decimal;
415-
font-weight: bold;
415+
font-weight: 600;
416416
}
417417

418418
.freedoms-php .about-wrap ol p {
419-
font-weight: normal;
419+
font-weight: 400;
420420
margin: 0.6em 0;
421421
}
422422

src/wp-admin/css/common.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ code {
437437
.subsubsub a .count,
438438
.subsubsub a.current .count {
439439
color: #555d66; /* #f1f1f1 background */
440-
font-weight: normal;
440+
font-weight: 400;
441441
}
442442

443443
.subsubsub a.current {
@@ -581,7 +581,7 @@ code {
581581
padding-left: 25px;
582582
color: #555d66;
583583
font-size: 14px;
584-
font-weight: normal;
584+
font-weight: 400;
585585
}
586586

587587
.wrap .add-new-h2, /* deprecated */
@@ -1056,7 +1056,7 @@ th.action-links {
10561056
line-height: 1;
10571057
text-align: center;
10581058
text-decoration: inherit;
1059-
font-weight: normal;
1059+
font-weight: 400;
10601060
font-style: normal;
10611061
-webkit-font-smoothing: antialiased;
10621062
}
@@ -1861,7 +1861,7 @@ html.wp-toolbar {
18611861
.widefat th,
18621862
.widefat thead td,
18631863
.widefat tfoot td {
1864-
font-weight: normal;
1864+
font-weight: 400;
18651865
}
18661866

18671867
.widefat thead tr th,
@@ -1968,7 +1968,7 @@ html.wp-toolbar {
19681968

19691969
.hndle a {
19701970
font-size: 11px;
1971-
font-weight: normal;
1971+
font-weight: 400;
19721972
}
19731973

19741974
.postbox .handlediv {
@@ -2379,7 +2379,7 @@ div.star-holder .star-rating {
23792379
line-height: 1;
23802380
font-family: dashicons;
23812381
text-decoration: inherit;
2382-
font-weight: normal;
2382+
font-weight: 400;
23832383
font-style: normal;
23842384
vertical-align: top;
23852385
-webkit-transition: color .1s ease-in 0;
@@ -2407,7 +2407,7 @@ div.star-holder .star-rating {
24072407
}
24082408

24092409
div.action-links {
2410-
font-weight: normal;
2410+
font-weight: 400;
24112411
margin: 6px 0 0;
24122412
}
24132413

@@ -2455,7 +2455,7 @@ div.action-links {
24552455

24562456
#plugin-information-title h2 {
24572457
font-size: 1em;
2458-
font-weight: bold;
2458+
font-weight: 600;
24592459
padding: 0;
24602460
margin: 0;
24612461
max-width: 680px;
@@ -2594,7 +2594,7 @@ div.action-links {
25942594
}
25952595

25962596
#plugin-information .fyi h3 {
2597-
font-weight: bold;
2597+
font-weight: 600;
25982598
text-transform: uppercase;
25992599
font-size: 12px;
26002600
color: #666;
@@ -3104,7 +3104,7 @@ img {
31043104

31053105
#templateside .highlight {
31063106
border: none;
3107-
font-weight: bold;
3107+
font-weight: 600;
31083108
}
31093109

31103110
.nonessential {

src/wp-admin/css/customize-controls.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ p.customize-section-description {
576576
}
577577

578578
.customize-control .attachment-title {
579-
font-weight: bold;
579+
font-weight: 600;
580580
margin: 0;
581581
padding: 5px 10px;
582582
}
@@ -1010,7 +1010,7 @@ p.customize-section-description {
10101010
right: 10px;
10111011
top: 50%;
10121012
margin-top: -14px;
1013-
font-weight: normal;
1013+
font-weight: 400;
10141014
}
10151015

10161016
.control-section-themes .accordion-section-title:before {

src/wp-admin/css/customize-nav-menus.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
#available-menu-items .cannot-expand .accordion-section-title .no-items {
512512
float: right;
513513
color: #555d66;
514-
font-weight: normal;
514+
font-weight: 400;
515515
margin-left: 5px;
516516
}
517517

src/wp-admin/css/dashboard.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
.welcome-panel h2 {
115115
margin: 0;
116116
font-size: 21px;
117-
font-weight: normal;
117+
font-weight: 400;
118118
line-height: 1.2;
119119
}
120120

@@ -342,7 +342,7 @@ body #dashboard-widgets .postbox form .submit {
342342
}
343343

344344
#dashboard_primary .rss-widget a {
345-
font-weight: normal;
345+
font-weight: 400;
346346
}
347347

348348
#dashboard_primary .rss-widget span,
@@ -400,7 +400,7 @@ body #dashboard-widgets .postbox form .submit {
400400
margin: 0 0 10px;
401401
padding: 0;
402402
font-size: 14px;
403-
font-weight: normal;
403+
font-weight: 400;
404404
}
405405

406406
/* Dashboard right now - Colors */
@@ -534,7 +534,7 @@ form.initial-form.quickpress-open input#title {
534534
}
535535

536536
#dashboard_primary a.rsswidget {
537-
font-weight: normal;
537+
font-weight: 400;
538538
}
539539

540540
#dashboard_quick_press .drafts ul {
@@ -570,7 +570,7 @@ form.initial-form.quickpress-open input#title {
570570
margin: 0 12px 8px;
571571
padding: 0;
572572
font-size: 14px;
573-
font-weight: normal;
573+
font-weight: 400;
574574
color: #23282d;
575575
}
576576

@@ -829,7 +829,7 @@ form.initial-form.quickpress-open input#title {
829829

830830
#latest-comments #the-comment-list .comment-meta cite {
831831
font-style: normal;
832-
font-weight: normal;
832+
font-weight: 400;
833833
}
834834

835835
#latest-comments #the-comment-list .comment-item blockquote,

src/wp-admin/css/deprecated-media.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
div#media-upload-header {
44
margin: 0;
55
padding: 5px 5px 0;
6-
font-weight: bold;
6+
font-weight: 600;
77
position: relative;
88
border-bottom: 1px solid #ddd;
99
background: #f9f9f9;
@@ -19,7 +19,7 @@ div#media-upload-header {
1919
padding-left: 10px;
2020
list-style: none;
2121
font-size: 12px;
22-
font-weight: normal;
22+
font-weight: 400;
2323
}
2424

2525
#sidemenu a {
@@ -46,7 +46,7 @@ div#media-upload-header {
4646
}
4747

4848
#sidemenu a.current {
49-
font-weight: normal;
49+
font-weight: 400;
5050
padding-left: 6px;
5151
padding-right: 6px;
5252
border: 1px solid #ddd;
@@ -89,7 +89,7 @@ th {
8989
.media-upload-form label.form-help, td.help {
9090
font-family: sans-serif;
9191
font-style: italic;
92-
font-weight: normal;
92+
font-weight: 400;
9393
}
9494

9595
.media-upload-form p.help {
@@ -187,7 +187,7 @@ span.required {
187187
#media-upload label.help {
188188
font-family: sans-serif;
189189
font-style: italic;
190-
font-weight: normal;
190+
font-weight: 400;
191191
}
192192

193193
#media-upload .ui-sortable .media-item {
@@ -294,7 +294,7 @@ h4.media-sub-title {
294294
h3.media-title,
295295
h4.media-sub-title {
296296
font-family: Georgia,"Times New Roman",Times,serif;
297-
font-weight: normal;
297+
font-weight: 400;
298298
color: #5A5A5A;
299299
}
300300

src/wp-admin/css/edit.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ input#link_url {
114114
}
115115

116116
#editable-post-name {
117-
font-weight: bold;
117+
font-weight: 600;
118118
}
119119

120120
#editable-post-name input {
121121
font-size: 13px;
122-
font-weight: normal;
122+
font-weight: 400;
123123
height: 22px;
124124
margin: 0;
125125
width: 16em;
@@ -1170,7 +1170,7 @@ table.links-table {
11701170
}
11711171

11721172
.links-table th {
1173-
font-weight: normal;
1173+
font-weight: 400;
11741174
text-align: left;
11751175
vertical-align: top;
11761176
min-width: 80px;

src/wp-admin/css/forms.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ ul#add-to-blog-users {
632632
.form-table th,
633633
.form-wrap label {
634634
color: #23282d;
635-
font-weight: normal;
635+
font-weight: 400;
636636
text-shadow: none;
637637
vertical-align: baseline;
638638
}
@@ -759,7 +759,7 @@ table.form-table td .updated p {
759759
.tool-box .title {
760760
margin: 8px 0;
761761
font-size: 18px;
762-
font-weight: normal;
762+
font-weight: 400;
763763
line-height: 24px;
764764
}
765765

src/wp-admin/css/ie.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ input[type="password"],
638638
.mce-close {
639639
font-family: 'tinymce', Arial;
640640
font-style: normal;
641-
font-weight: normal;
641+
font-weight: 400;
642642
font-variant: normal;
643643
font-size: 16px;
644644
margin-left: 0;

src/wp-admin/css/install.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ h1, h2 {
4545
font-size: 24px;
4646
padding: 0;
4747
padding-bottom: 7px;
48-
font-weight: normal;
48+
font-weight: 400;
4949
}
5050

5151
h3 {
@@ -100,7 +100,7 @@ label {
100100
color: #444; /* same as login.css */
101101
height: 84px;
102102
font-size: 20px;
103-
font-weight: normal;
103+
font-weight: 400;
104104
line-height: 1.3em;
105105
margin: -130px auto 25px;
106106
padding: 0;
@@ -192,7 +192,7 @@ submit {
192192
}
193193

194194
.form-table th p {
195-
font-weight: normal;
195+
font-weight: 400;
196196
}
197197

198198
.form-table.install-success th,
@@ -406,7 +406,7 @@ body.language-chooser {
406406
color: #32373c;
407407
font-size: 16px;
408408
font-family: Arial, sans-serif;
409-
font-weight: normal;
409+
font-weight: 400;
410410
}
411411

412412
.language-chooser p {

0 commit comments

Comments
 (0)