Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:32:33 AM (6 years ago)
Author:
pento
Message:

Default Themes: Import Twenty Nineteen from the 5.0 branch.

Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.

Fixes #45424.

Location:
trunk
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss

    r43808 r44149  
    2525}
    2626
    27 .hentry {
     27.entry {
    2828
    2929    margin-top: calc(6 * #{$size__spacing-unit});
     
    3939
    4040        @include media(tablet) {
    41             margin: calc(3 * #{ $size__spacing-unit}) calc(2 * (100vw / 12 ) ) $size__spacing-unit;
    42 
    43             .featured-image & {
    44                 margin-bottom: 0;
    45             }
     41            margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__spacing-unit;
    4642        }
    4743    }
     
    7066
    7167            margin-right: $size__spacing-unit;
     68            display: inline-block;
    7269
    7370            &:last-child {
     
    9693
    9794    .entry-meta {
    98 
    9995        margin: $size__spacing-unit 0;
    100 
    101         &.has-discussion .comment-count {
    102 
    103             @include media(desktop) {
    104                 float: right;
    105                 position: relative;
    106             }
    107 
    108             .discussion-avatar-list {
    109                 display: none;
    110 
    111                 @include media(desktop) {
    112                     bottom: 100%;
    113                     display: block;
    114                     position: absolute;
    115                 }
    116             }
    117         }
    11896    }
    11997
     
    123101
    124102        @include media(tablet) {
    125             margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));
    126             max-width: calc(8 * (100vw / 12));
    127         }
    128 
    129         @include media(tablet) {
    130             max-width: calc(6 * (100vw / 12));
     103            margin: $size__spacing-unit $size__site-margins calc(3 * #{$size__spacing-unit});
     104            max-width: $size__site-tablet-content;
     105        }
     106
     107        @include media(tablet) {
     108            max-width: $size__site-desktop-content;
    131109        }
    132110    }
     
    137115
    138116        @include media(tablet) {
    139             margin: $size__spacing-unit calc(2 * (100vw / 12));
     117            margin: $size__spacing-unit $size__site-margins;
    140118        }
    141119
     
    153131            }
    154132        }
    155 
    156133    }
    157134
     
    163140
    164141            .post-thumbnail-inner {
    165                 @include filter-grayscale;
    166             }
    167 
    168             &:before, &:after {
     142                filter: grayscale(100%);
     143
     144                &:after {
     145                    background: rgba(0, 0, 0, 0.35);
     146                    content: "";
     147                    display: block;
     148                    height: 100%;
     149                    opacity: .5;
     150                    pointer-events: none;
     151                    position: absolute;
     152                    top: 0;
     153                    width: 100%;
     154                    z-index: 4;
     155
     156                    @supports (mix-blend-mode: multiply) {
     157                        display: none;
     158                    }
     159                }
     160            }
     161
     162            &:before,
     163            &:after, {
    169164                position: absolute;
    170165                display: block;
     
    173168                top: 0; left: 0;
    174169                content: "\020";
    175                 display: block;
    176170                pointer-events: none;
    177171            }
     
    180174
    181175        }
    182 
     176    }
     177
     178    .entry-content,
     179    .entry-summary {
     180        max-width: calc(100% - (2 * #{ $size__spacing-unit }));
     181        margin: 0 $size__spacing-unit;
     182
     183        @include media(tablet) {
     184            max-width: 80%;
     185            margin: 0 10%;
     186            padding: 0 60px;
     187        }
    183188    }
    184189
    185190    .entry-content {
     191
     192        p {
     193            word-wrap: break-word;
     194        }
    186195
    187196        .more-link {
     
    191200
    192201            &:after {
    193                 content: "»";
     202                content: "\02192";
    194203                margin-left: 0.5em;
    195204            }
     
    204213            text-decoration: underline;
    205214
     215            &.button,
    206216            &:hover {
    207217                text-decoration: none;
     218            }
     219
     220            &.button {
     221                display: inline-block;
     222            }
     223
     224            &.button:hover {
     225                background: $color__background-button-hover;
     226                color: $color__background-body;
     227                cursor: pointer;
    208228            }
    209229        }
     
    212232        > iframe[style] {
    213233
    214             margin: 32px $size__spacing-unit !important;
    215             max-width: calc(100vw - (2 * #{ $size__spacing-unit })) !important;
     234            margin: 32px 0 !important;
     235            max-width: 100% !important;
    216236
    217237            @include media(tablet) {
    218                 margin: 32px calc(2 * (100vw / 12)) !important;
    219                 max-width: calc(8 * (100vw / 12)) !important;
     238                max-width: $size__site-tablet-content !important;
    220239            }
    221240
    222241            @include media(desktop) {
    223                 max-width: calc(6 * (100vw / 12)) !important;
    224             }
     242                max-width: $size__site-desktop-content !important;
     243            }
     244        }
     245
     246        // Page links
     247        .page-links a {
     248            margin: calc(0.5 * #{$size__spacing-unit});
     249            text-decoration: none;
    225250        }
    226251
     
    230255
    231256            @include media(tablet) {
    232                 max-width: calc(8 * (100vw / 12));
     257                max-width: $size__site-tablet-content;
    233258            }
    234259
    235260            @include media(desktop) {
    236                 max-width: calc(6 * (100vw / 12));
    237             }
    238         }
    239     }
    240 }
     261                max-width: $size__site-desktop-content;
     262            }
     263        }
     264    }
     265}
     266
     267/* Author description */
     268
     269.author-bio {
     270    margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
     271
     272    @include postContentMaxWidth();
     273
     274    @include media(tablet) {
     275        margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
     276    }
     277
     278    @include media(desktop) {
     279        margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
     280    }
     281
     282    .author-title {
     283        @include post-section-dash;
     284        display: inline;
     285    }
     286
     287    .author-description {
     288
     289        display: inline;
     290        color: $color__text-light;
     291        font-size: $font__size-md;
     292        line-height: $font__line-height-heading;
     293
     294        .author-link {
     295            display: inline-block;
     296
     297            &:hover {
     298                color: $color__link-hover;
     299                text-decoration: none;
     300            }
     301        }
     302    }
     303}
Note: See TracChangeset for help on using the changeset viewer.