Make WordPress Core

Changeset 47591


Ignore:
Timestamp:
04/16/2020 07:45:19 PM (5 years ago)
Author:
ianbelanger
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.

Props kjellr, melchoyce.
Fixes #49699.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss

    r46587 r47591  
    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
  • trunk/src/wp-content/themes/twentynineteen/style-editor.css

    r47587 r47591  
    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;
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r47586 r47591  
    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
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r47586 r47591  
    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.