Make WordPress Core


Ignore:
Timestamp:
12/18/2018 10:45:16 PM (8 years ago)
Author:
desrosj
Message:

Twenty Nineteen: Fixes and improvements.

This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core.

.com/WordPress/twentynineteen/pull/47

.com/WordPress/twentynineteen/pull/661

Props kjellr, allancole, dimadin, westonruter, khleomix, grapplerulrich, iCaleb, desrosj.

Merges [44196], [44199], and [44201-44202] into trunk.

Fixes #45424.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r44302 r44305  
    325325                        margin-bottom: calc(4.33 * #{ $size__spacing-unit});
    326326                        margin-right: 0;
     327                        padding-left: 0;
    327328                }
    328329
     
    363364
    364365                        blockquote {
    365                                 margin-left: 0;
     366                                margin: $size__spacing-unit 0;
    366367                                padding: 0;
    367368                                text-align: left;
    368369                                max-width: 100%;
     370
     371                                p:first-child {
     372                                        margin-top: 0;
     373                                }
    369374                        }
    370375                }
     
    400405
    401406                        blockquote {
    402                                 max-width: calc(100% - (2 * #{$size__spacing-unit}));
     407                                max-width: 100%;
    403408                                color: $color__background-body;
    404409                                padding-left: 0;
    405410                                margin-left: $size__spacing-unit;
     411                                margin-right: $size__spacing-unit;
    406412
    407413                                &.has-text-color p,
     
    418424                                        margin-left: 0;
    419425                                        margin-right: 0;
     426                                }
     427                        }
     428
     429                        &.alignright,
     430                        &.alignleft {
     431
     432                                @include media(tablet) {
     433                                        padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
    420434                                }
    421435                        }
     
    529543                        padding: 0;
    530544                        color: #fff;
    531                         -ms-hyphens: auto;
    532                         -moz-hyphens: auto;
    533                         -webkit-hyphens: auto;
    534                         hyphens: auto;
    535545
    536546                        @include media(tablet) {
     
    545555
    546556                        @include media(tablet) {
    547                                 padding: $size__spacing-unit;
     557                                padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
    548558                        }
    549559                }
     
    578588                .blocks-gallery-item:last-child {
    579589                        margin-bottom: 16px;
     590                }
     591
     592                figcaption a {
     593                        color: #fff;
    580594                }
    581595        }
Note: See TracChangeset for help on using the changeset viewer.