WordPress.org

Make WordPress Core

Changeset 47806 for branches/5.4


Ignore:
Timestamp:
05/15/2020 10:01:10 PM (4 months ago)
Author:
whyisjake
Message:

Bundled Themes: Twenty Nineteen center and right-aligned heading accents appear broken.

Fixes the center and right aligned heading accents so that they align with the text, instead of just staying left-aligned.

Bringing the changes in [47591] to the 5.4 branch.

Props kjellr, melchoyce.
Fixes #49699.

Location:
branches/5.4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss

    r46587 r47806  
    7575        width: 1em;
    7676    }
     77
     78    &.has-text-align-center:before {
     79        margin-left: auto;
     80        margin-right: auto;
     81    }
     82
     83    &.has-text-align-right:before {
     84        margin-left: auto;
     85    }
    7786}
    7887
  • branches/5.4/src/wp-content/themes/twentynineteen/style-editor.css

    r47538 r47806  
    637637}
    638638
     639h1.has-text-align-center:before {
     640  margin-left: auto;
     641  margin-right: auto;
     642}
     643
     644h1.has-text-align-right:before {
     645  margin-left: auto;
     646}
     647
    639648@media only screen and (min-width: 768px) {
    640649  h1 {
     
    654663  margin: 1rem 0;
    655664  width: 1em;
     665}
     666
     667h2.has-text-align-center:before {
     668  margin-left: auto;
     669  margin-right: auto;
     670}
     671
     672h2.has-text-align-right:before {
     673  margin-left: auto;
    656674}
    657675
     
    769787}
    770788
     789.editor-post-title__block.has-text-align-center:before {
     790  margin-left: auto;
     791  margin-right: auto;
     792}
     793
     794.editor-post-title__block.has-text-align-right:before {
     795  margin-left: auto;
     796}
     797
    771798.editor-post-title__block:before {
    772799  width: 2.8125em;
  • branches/5.4/src/wp-content/themes/twentynineteen/style-rtl.css

    r47540 r47806  
    25282528}
    25292529
     2530h1:not(.site-title).has-text-align-center:before,
     2531h2.has-text-align-center:before {
     2532  margin-right: auto;
     2533  margin-left: auto;
     2534}
     2535
     2536h1:not(.site-title).has-text-align-right:before,
     2537h2.has-text-align-right:before {
     2538  margin-right: auto;
     2539}
     2540
    25302541hr {
    25312542  background-color: #767676;
     
    42104221}
    42114222
     4223.entry .entry-title.has-text-align-center:before {
     4224  margin-right: auto;
     4225  margin-left: auto;
     4226}
     4227
     4228.entry .entry-title.has-text-align-right:before {
     4229  margin-right: auto;
     4230}
     4231
    42124232.entry .entry-title a {
    42134233  color: inherit;
     
    44944514}
    44954515
     4516.author-bio .author-title.has-text-align-center:before {
     4517  margin-right: auto;
     4518  margin-left: auto;
     4519}
     4520
     4521.author-bio .author-title.has-text-align-right:before {
     4522  margin-right: auto;
     4523}
     4524
    44964525.author-bio .author-description {
    44974526  display: inline;
     
    45864615  margin: 1rem 0;
    45874616  width: 1em;
     4617}
     4618
     4619.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
     4620  margin-right: auto;
     4621  margin-left: auto;
     4622}
     4623
     4624.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
     4625  margin-right: auto;
    45884626}
    45894627
  • branches/5.4/src/wp-content/themes/twentynineteen/style.css

    r47540 r47806  
    25282528}
    25292529
     2530h1:not(.site-title).has-text-align-center:before,
     2531h2.has-text-align-center:before {
     2532  margin-left: auto;
     2533  margin-right: auto;
     2534}
     2535
     2536h1:not(.site-title).has-text-align-right:before,
     2537h2.has-text-align-right:before {
     2538  margin-left: auto;
     2539}
     2540
    25302541hr {
    25312542  background-color: #767676;
     
    42164227}
    42174228
     4229.entry .entry-title.has-text-align-center:before {
     4230  margin-left: auto;
     4231  margin-right: auto;
     4232}
     4233
     4234.entry .entry-title.has-text-align-right:before {
     4235  margin-left: auto;
     4236}
     4237
    42184238.entry .entry-title a {
    42194239  color: inherit;
     
    45004520}
    45014521
     4522.author-bio .author-title.has-text-align-center:before {
     4523  margin-left: auto;
     4524  margin-right: auto;
     4525}
     4526
     4527.author-bio .author-title.has-text-align-right:before {
     4528  margin-left: auto;
     4529}
     4530
    45024531.author-bio .author-description {
    45034532  display: inline;
     
    45924621  margin: 1rem 0;
    45934622  width: 1em;
     4623}
     4624
     4625.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
     4626  margin-left: auto;
     4627  margin-right: auto;
     4628}
     4629
     4630.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
     4631  margin-left: auto;
    45944632}
    45954633
Note: See TracChangeset for help on using the changeset viewer.