Skip to content

Commit ef4d2ff

Browse files
committed
Coding Standards: Lint the About page CSS.
Linting the About page styles with Stylelint reported a number of CSS coding standards violations, and this changeset addresses most of them. Discussed in: #13014 Follow-up to [63182]. Props afercia, mukesh27, wildworks. See #65856. git-svn-id: https://develop.svn.wordpress.org/trunk@63212 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4d48e14 commit ef4d2ff

1 file changed

Lines changed: 25 additions & 30 deletions

File tree

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

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
--accent-3: #ececec; /* hr background */
3535

3636
/* Header background on small screens */
37-
--accent-gradient: linear-gradient(90deg, #000000 4.7%, var(--accent-1) 83.84%)/*rtl:linear-gradient(-90deg, #000000 4.7%, var(--accent-1) 83.84%)*/;
37+
--accent-gradient: linear-gradient(90deg, #000 4.7%, var(--accent-1) 83.84%)/*rtl:linear-gradient(-90deg, #000 4.7%, var(--accent-1) 83.84%)*/;
3838

3939
/* Navigation colors. */
4040
--nav-background: #fff;
@@ -293,13 +293,11 @@
293293
margin-bottom: calc(var(--gap) * 2);
294294
}
295295

296-
.about__section.has-2-columns.has-gutters .column,
297296
.about__section.has-2-columns.has-gutters .column,
298297
.about__section.has-3-columns.has-gutters .column {
299298
margin-bottom: var(--gap);
300299
}
301300

302-
.about__section.has-2-columns.has-gutters .column:last-child,
303301
.about__section.has-2-columns.has-gutters .column:last-child,
304302
.about__section.has-3-columns.has-gutters .column:last-child {
305303
margin-bottom: 0;
@@ -359,12 +357,12 @@
359357
}
360358

361359
.about__section .column.is-left-padding-zero {
362-
padding-right: 0;
363-
}
360+
padding-right: 0;
361+
}
364362

365-
.about__section .column.is-right-padding-zero {
366-
padding-left: 0;
367-
}
363+
.about__section .column.is-right-padding-zero {
364+
padding-left: 0;
365+
}
368366
}
369367

370368
@media screen and (max-width: 480px) {
@@ -445,9 +443,6 @@
445443

446444
.about__container p {
447445
text-wrap: pretty;
448-
}
449-
450-
.about__container p {
451446
font-size: inherit;
452447
line-height: inherit;
453448
}
@@ -457,7 +452,7 @@
457452
margin-bottom: 1rem;
458453
font-size: 1.5rem;
459454
font-weight: 300;
460-
line-height: 160%;
455+
line-height: 1.6;
461456
}
462457

463458
.about__section a {
@@ -608,49 +603,49 @@
608603
padding-right: 26rem; /* Space for the background image. */
609604
min-height: clamp(10rem, 25vw, 18.75rem);
610605
border-radius: var(--border-radius);
611-
background-image: url( "https://s.w.org/images/core/7.1/about-header-default.webp?ver=20260804" );
606+
background-image: url(https://s.w.org/images/core/7.1/about-header-default.webp?ver=20260804);
612607
background-repeat: no-repeat;
613608
background-position: right center;
614609
background-size: cover;
615610
background-color: var(--background);
616611
color: var(--text-light);
617-
margin-bottom: .25rem;
612+
margin-bottom: 0.25rem;
618613
}
619614

620-
.credits-php .about__header {
621-
background-image: url( "https://s.w.org/images/core/7.1/about-header-credits.webp?ver=20260804" );
615+
.credits-php .about__header {
616+
background-image: url(https://s.w.org/images/core/7.1/about-header-credits.webp?ver=20260804);
622617
}
623618

624-
.freedoms-php .about__header {
625-
background-image: url( "https://s.w.org/images/core/7.1/about-header-freedoms.webp?ver=20260804" );
619+
.freedoms-php .about__header {
620+
background-image: url(https://s.w.org/images/core/7.1/about-header-freedoms.webp?ver=20260804);
626621
}
627622

628-
.privacy-php .about__header {
629-
background-image: url( "https://s.w.org/images/core/7.1/about-header-privacy.webp?ver=20260804" );
623+
.privacy-php .about__header {
624+
background-image: url(https://s.w.org/images/core/7.1/about-header-privacy.webp?ver=20260804);
630625
}
631626

632627
.contribute-php .about__header {
633-
background-image: url( "https://s.w.org/images/core/7.1/about-header-get-involved.webp?ver=20260804" );
628+
background-image: url(https://s.w.org/images/core/7.1/about-header-get-involved.webp?ver=20260804);
634629
}
635630

636631
[dir="rtl"] .about__header {
637-
background-image: url( "https://s.w.org/images/core/7.1/about-header-default-rtl.webp?ver=20260804" );
632+
background-image: url(https://s.w.org/images/core/7.1/about-header-default-rtl.webp?ver=20260804);
638633
}
639634

640-
[dir="rtl"] .credits-php .about__header {
641-
background-image: url( "https://s.w.org/images/core/7.1/about-header-credits-rtl.webp?ver=20260804" );
635+
[dir="rtl"] .credits-php .about__header {
636+
background-image: url(https://s.w.org/images/core/7.1/about-header-credits-rtl.webp?ver=20260804);
642637
}
643638

644-
[dir="rtl"] .freedoms-php .about__header {
645-
background-image: url( "https://s.w.org/images/core/7.1/about-header-freedoms-rtl.webp?ver=20260804" );
639+
[dir="rtl"] .freedoms-php .about__header {
640+
background-image: url(https://s.w.org/images/core/7.1/about-header-freedoms-rtl.webp?ver=20260804);
646641
}
647642

648-
[dir="rtl"] .privacy-php .about__header {
649-
background-image: url( "https://s.w.org/images/core/7.1/about-header-privacy-rtl.webp?ver=20260804" );
643+
[dir="rtl"] .privacy-php .about__header {
644+
background-image: url(https://s.w.org/images/core/7.1/about-header-privacy-rtl.webp?ver=20260804);
650645
}
651646

652647
[dir="rtl"] .contribute-php .about__header {
653-
background-image: url( "https://s.w.org/images/core/7.1/about-header-get-involved-rtl.webp?ver=20260804" );
648+
background-image: url(https://s.w.org/images/core/7.1/about-header-get-involved-rtl.webp?ver=20260804);
654649
}
655650

656651
.about__header-image {
@@ -1082,7 +1077,7 @@
10821077
.about-wrap figcaption {
10831078
font-size: 13px;
10841079
text-align: center;
1085-
color: white;
1080+
color: #fff;
10861081
text-overflow: ellipsis;
10871082
}
10881083

0 commit comments

Comments
 (0)