Make WordPress Core

Ticket #45907: 45907.diff

File 45907.diff, 1.5 KB (added by nestor19, 6 years ago)

Patch

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

    diff --git a/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
    index 6312f46..95f78b8 100644
    a b  
    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
  • src/wp-content/themes/twentynineteen/style.css

    diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css
    index 43ecbf1..ef345ea 100644
    a b body.page .main-navigation { 
    53545354  }
    53555355}
    53565356
     5357.entry-content > p > img.alignright {
     5358  /*rtl:ignore*/
     5359  float: right;
     5360  max-width: calc(5 * (100vw / 12));
     5361  margin-top: 0;
     5362  margin-right: 0;
     5363  /*rtl:ignore*/
     5364  margin-left: 1rem;
     5365}
     5366
     5367@media only screen and (min-width: 1168px) {
     5368  .entry-content > p > img.alignright {
     5369    position: absolute;
     5370    left: calc(7.5 * (100vw / 12));
     5371  }
     5372}
     5373
    53575374.entry .entry-content > * > *:first-child,
    53585375.entry .entry-summary > * > *:first-child {
    53595376  margin-top: 0;