Make WordPress Core

Changeset 63233


Ignore:
Timestamp:
08/12/2026 02:49:05 PM (3 hours ago)
Author:
wildworks
Message:

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: https://github.com/WordPress/wordpress-develop/pull/13014

Follow-up to [63182].

Reviewed by joedolson.
Merges [63212] to the 7.1 branch.

Props afercia, mukesh27, wildworks.
See #65856.

Location:
branches/7.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/7.1

  • branches/7.1/src/wp-admin/css/about.css

    r63186 r63233  
    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. */
     
    295295
    296296        .about__section.has-2-columns.has-gutters .column,
    297         .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 {
     
    360358
    361359        .about__section .column.is-left-padding-zero {
    362         padding-right: 0;
    363     }
    364 
    365     .about__section .column.is-right-padding-zero {
    366         padding-left: 0;
    367     }
     360                padding-right: 0;
     361        }
     362
     363        .about__section .column.is-right-padding-zero {
     364                padding-left: 0;
     365        }
    368366}
    369367
     
    446444.about__container p {
    447445        text-wrap: pretty;
    448 }
    449 
    450 .about__container p {
    451446        font-size: inherit;
    452447        line-height: inherit;
     
    458453        font-size: 1.5rem;
    459454        font-weight: 300;
    460         line-height: 160%;
     455        line-height: 1.6;
    461456}
    462457
     
    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;
     
    615610        background-color: var(--background);
    616611        color: var(--text-light);
    617         margin-bottom: .25rem;
    618 }
    619 
    620 .credits-php  .about__header {
    621         background-image: url( "https://s.w.org/images/core/7.1/about-header-credits.webp?ver=20260804" );
    622 }
    623 
    624 .freedoms-php  .about__header {
    625         background-image: url( "https://s.w.org/images/core/7.1/about-header-freedoms.webp?ver=20260804" );
    626 }
    627 
    628 .privacy-php  .about__header {
    629         background-image: url( "https://s.w.org/images/core/7.1/about-header-privacy.webp?ver=20260804" );
     612        margin-bottom: 0.25rem;
     613}
     614
     615.credits-php .about__header {
     616        background-image: url(https://s.w.org/images/core/7.1/about-header-credits.webp?ver=20260804);
     617}
     618
     619.freedoms-php .about__header {
     620        background-image: url(https://s.w.org/images/core/7.1/about-header-freedoms.webp?ver=20260804);
     621}
     622
     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" );
    638 }
    639 
    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" );
    642 }
    643 
    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" );
    646 }
    647 
    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" );
     632        background-image: url(https://s.w.org/images/core/7.1/about-header-default-rtl.webp?ver=20260804);
     633}
     634
     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);
     637}
     638
     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);
     641}
     642
     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
     
    10831078        font-size: 13px;
    10841079        text-align: center;
    1085         color: white;
     1080        color: #fff;
    10861081        text-overflow: ellipsis;
    10871082}
Note: See TracChangeset for help on using the changeset viewer.