Make WordPress Core


Ignore:
Timestamp:
05/26/2024 08:30:51 AM (12 months ago)
Author:
karmatosed
Message:

Twenty Nineteen: Make h1 consistent for entry title.

The h1 for entry-title was not the same between the editor and front end. This fixes that in the by setting wp-block-post-title font sizes together with h2 and combines post-section-dash mixin for both h1 and h2.

Props sabernhardt, nkeller15, shailu25.
Fixes #58440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r58178 r58198  
    120120h1 {
    121121    font-size: $font__size-xl;
    122     @include post-section-dash;
    123122
    124123    @include media(tablet) {
     
    127126}
    128127
     128.wp-block-post-title,
    129129h2 {
    130130    font-size: $font__size-lg;
    131     @include post-section-dash;
    132131
    133132    @include media(tablet) {
    134133        font-size: $font__size-xl;
    135134    }
     135}
     136
     137h1,
     138h2 {
     139    @include post-section-dash;
    136140}
    137141
Note: See TracChangeset for help on using the changeset viewer.