WordPress.org

Make WordPress Core

Ticket #49699: 49699.patch

File 49699.patch, 4.9 KB (added by kjellr, 5 months ago)
  • src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss

     
    7474                margin: $size__spacing-unit 0;
    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
    7988/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
  • src/wp-content/themes/twentynineteen/style-editor.css

     
    636636  width: 1em;
    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 {
    641650    font-size: 2.8125em;
     
    655664  width: 1em;
    656665}
    657666
     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;
     674}
     675
    658676@media only screen and (min-width: 768px) {
    659677  h2 {
    660678    font-size: 2.25em;
     
    768786  width: 1em;
    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;
    773800  margin-top: 0;
  • src/wp-content/themes/twentynineteen/style-rtl.css

     
    25272527  width: 1em;
    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;
    25322543  border: 0;
     
    42094219  width: 1em;
    42104220}
    42114221
     4222.entry .entry-title.has-text-align-center:before {
     4223  margin-right: auto;
     4224  margin-left: auto;
     4225}
     4226
     4227.entry .entry-title.has-text-align-right:before {
     4228  margin-right: auto;
     4229}
     4230
    42124231.entry .entry-title a {
    42134232  color: inherit;
    42144233}
     
    44934512  width: 1em;
    44944513}
    44954514
     4515.author-bio .author-title.has-text-align-center:before {
     4516  margin-right: auto;
     4517  margin-left: auto;
     4518}
     4519
     4520.author-bio .author-title.has-text-align-right:before {
     4521  margin-right: auto;
     4522}
     4523
    44964524.author-bio .author-description {
    44974525  display: inline;
    44984526  color: #767676;
     
    45874615  width: 1em;
    45884616}
    45894617
     4618.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
     4619  margin-right: auto;
     4620  margin-left: auto;
     4621}
     4622
     4623.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
     4624  margin-right: auto;
     4625}
     4626
    45904627@media only screen and (min-width: 768px) {
    45914628  .comments-area .comments-title-wrap .comments-title {
    45924629    flex: 1 0 calc(3 * (100vw / 12));
  • src/wp-content/themes/twentynineteen/style.css

     
    25272527  width: 1em;
    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;
    25322543  border: 0;
     
    42154225  width: 1em;
    42164226}
    42174227
     4228.entry .entry-title.has-text-align-center:before {
     4229  margin-left: auto;
     4230  margin-right: auto;
     4231}
     4232
     4233.entry .entry-title.has-text-align-right:before {
     4234  margin-left: auto;
     4235}
     4236
    42184237.entry .entry-title a {
    42194238  color: inherit;
    42204239}
     
    44994518  width: 1em;
    45004519}
    45014520
     4521.author-bio .author-title.has-text-align-center:before {
     4522  margin-left: auto;
     4523  margin-right: auto;
     4524}
     4525
     4526.author-bio .author-title.has-text-align-right:before {
     4527  margin-left: auto;
     4528}
     4529
    45024530.author-bio .author-description {
    45034531  display: inline;
    45044532  color: #767676;
     
    45934621  width: 1em;
    45944622}
    45954623
     4624.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
     4625  margin-left: auto;
     4626  margin-right: auto;
     4627}
     4628
     4629.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
     4630  margin-left: auto;
     4631}
     4632
    45964633@media only screen and (min-width: 768px) {
    45974634  .comments-area .comments-title-wrap .comments-title {
    45984635    flex: 1 0 calc(3 * (100vw / 12));