Make WordPress Core

Ticket #56537: 56537.2.patch

File 56537.2.patch, 1.3 KB (added by smit08, 2 years ago)

In this patch I have added the align center css at right position in both editor and front style css file. And also added the rtl css in file. hilay24 has added the new css which was not working and wrong. hilay24 patch was not working, so I created this patch and I have tested it and now it is solved in front, editor and rtl also.

  • src/wp-content/themes/twentynineteen/style-editor.css

     
    602602body .wp-block[data-align="center"],
    603603body .wp-block.aligncenter {
    604604  margin-left: 0;
     605  text-align: center;
    605606}
    606607
    607608@media only screen and (min-width: 768px) {
  • src/wp-content/themes/twentynineteen/style-rtl.css

     
    54045404  .entry .entry-content > .wp-block-group > .wp-block-group__inner-container > *.aligncenter {
    54055405    margin-right: 0;
    54065406    margin-left: 0;
     5407    text-align: center;
    54075408  }
    54085409}
    54095410
  • src/wp-content/themes/twentynineteen/style.css

     
    54165416  .entry .entry-content > .wp-block-group > .wp-block-group__inner-container > *.aligncenter {
    54175417    margin-left: 0;
    54185418    margin-right: 0;
     5419    text-align: center;
    54195420  }
    54205421}
    54215422