WordPress.org

Make WordPress Core

Ticket #45907: 45907-2.patch

File 45907-2.patch, 1.4 KB (added by thetwentyseven2727, 16 months ago)

The patch is working great. However, I think the path is wrong. I do believe you should not include the folder with your WordPress site.

  • wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

     
    8989        }
    9090}
    9191
     92.entry-content > p > img {
     93
     94        &.alignright {
     95                        /*rtl:ignore*/
     96                        float: right;
     97                        max-width: calc(5 * (100vw / 12));
     98                        margin-top: 0;
     99                        margin-right: 0;
     100                        /*rtl:ignore*/
     101                        margin-left: $size__spacing-unit;
     102
     103                        @include media(desktop) {
     104                                position: absolute;
     105                                left: calc(7.5 * (100vw / 12));
     106                        }
     107                }
     108}
     109
    92110.entry .entry-content > *,
    93111.entry .entry-summary > * {
    94112
  • wp-content/themes/twentynineteen/style.css

     
    53405340  }
    53415341}
    53425342
     5343.entry-content > p > img.alignright {
     5344  /*rtl:ignore*/
     5345  float: right;
     5346  max-width: calc(5 * (100vw / 12));
     5347  margin-top: 0;
     5348  margin-right: 0;
     5349  /*rtl:ignore*/
     5350  margin-left: 1rem;
     5351}
     5352
     5353@media only screen and (min-width: 1168px) {
     5354  .entry-content > p > img.alignright {
     5355    position: absolute;
     5356    left: calc(7.5 * (100vw / 12));
     5357  }
     5358}
     5359
    53435360.entry .entry-content > * > *:first-child,
    53445361.entry .entry-summary > * > *:first-child {
    53455362  margin-top: 0;