Make WordPress Core


Ignore:
Timestamp:
03/09/2023 04:28:25 PM (20 months ago)
Author:
ryelle
Message:

Help/About: Update copy & style for About page and subpages.

Minor copy updates. Update heading style, text size, spacing in smaller columns. Remove columns placement code to simplify CSS. This was necessary for IE11, but modern browsers can use auto-placement. Move navigation out of the banner to keep size & background placement consistent across About section.

Props marybaum, sereedmedia, annezazu, jpantani, laurlittle, richtabor, markoserb, fcoveram, joen, kebbet.
See #57477.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r55449 r55499  
    3434
    3535            <div class="about__header-text"></div>
    36 
    37             <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    38                 <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
    39                 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    40                 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    41                 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    42             </nav>
    43         </div>
     36        </div>
     37
     38        <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     39            <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
     40            <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
     41            <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     42            <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     43        </nav>
    4444
    4545        <div class="about__section">
     
    154154                    <img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" />
    155155                </div>
    156                 <h3 class="is-smaller-heading"><?php _e( 'Style Book' ); ?></h3>
     156                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Style Book' ); ?></h3>
    157157                <p><?php _e( 'Use the new Style Book to get a complete overview of how every block in your site&#8217;s library looks. All in one place, all at a glance.' ); ?></p>
    158158            </div>
     
    161161                    <img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" />
    162162                </div>
    163                 <h3 class="is-smaller-heading"><?php _e( 'Copy and paste styles' ); ?></h3>
     163                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Copy and paste styles' ); ?></h3>
    164164                <p><?php _e( 'Perfect the design on one type of block, then copy and paste those styles to other blocks to get just the look you want.' ); ?></p>
    165165            </div>
     
    168168                    <img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" />
    169169                </div>
    170                 <h3 class="is-smaller-heading"><?php _e( 'Custom CSS' ); ?></h3>
     170                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Custom CSS' ); ?></h3>
    171171                <p><?php _e( 'Power up your site any way you wish. Add CSS to your site, or your blocks, for another level of control over your site&#8217;s look and feel.' ); ?></p>
    172172            </div>
     
    181181                    </svg>
    182182                </div>
    183                 <h3 class="is-smaller-heading"><?php _e( 'Sticky positioning' ); ?></h3>
    184                 <p><?php _e( 'Choose to keep certain blocks fixed to the top of a page as visitors scroll.' ); ?></p>
     183                <h3 class="is-smaller-heading" style="margin-top:0;margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Sticky positioning' ); ?></h3>
     184                <p><?php _e( 'Choose to keep top-level group blocks fixed to the top of a page as visitors scroll.' ); ?></p>
    185185            </div>
    186186            <div class="column">
     
    191191                    </svg>
    192192                </div>
    193                 <h3 class="is-smaller-heading"><?php _e( 'Importing widgets' ); ?></h3>
     193                <h3 class="is-smaller-heading" style="margin-top:0;margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Importing widgets' ); ?></h3>
    194194                <p><?php _e( 'Options to import your favorite widgets from Classic themes to Block themes.' ); ?></p>
    195195            </div>
     
    201201                    </svg>
    202202                </div>
    203                 <h3 class="is-smaller-heading"><?php _e( 'Local fonts in themes' ); ?></h3>
    204                 <p><?php _e( 'Default WordPress themes offer better privacy with Google Fonts included.' ); ?></p>
     203                <h3 class="is-smaller-heading" style="margin-top:0;margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Local fonts in themes' ); ?></h3>
     204                <p><?php _e( 'Default WordPress themes offer better privacy with Google Fonts now included.' ); ?></p>
    205205            </div>
    206206        </div>
     
    208208        <hr />
    209209
    210         <div class="about__section has-2-columns is-wider-right">
     210        <div class="about__section has-3-columns">
    211211            <div class="column about__image is-vertically-aligned-top">
    212212                <a href="https://youtu.be/1w9oywSa6Hw">
     
    214214                </a>
    215215            </div>
    216             <div class="column is-vertically-aligned-center">
     216            <div class="column is-vertically-aligned-center" style="grid-column-end:span 2">
    217217                <h3>
    218218                    <?php
Note: See TracChangeset for help on using the changeset viewer.