Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:32:33 AM (8 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/_comments.scss

    r43808 r44149  
    88
    99.comments-area {
     10        margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
     11        @include postContentMaxWidth();
     12
     13        @include media(tablet) {
     14                margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
     15        }
     16
     17        & > * {
     18                margin-top: calc(2 * #{$size__spacing-unit});
     19                margin-bottom: calc(2 * #{$size__spacing-unit});
     20
     21                @include media(tablet) {
     22                        margin-top: calc(3 * #{$size__spacing-unit});
     23                        margin-bottom: calc(3 * #{$size__spacing-unit});
     24                }
     25        }
    1026
    1127        /* Add extra margin when the comments section is located immediately after the
    12          * post itself (this happens on pages). 
     28         * post itself (this happens on pages).
    1329         */
    14         .hentry + & {
     30        .entry + & {
    1531                margin-top: calc(3 * #{$size__spacing-unit});
    1632        }
    1733
    18         .comments-title-wrap,
    19         .comment-list,
    20         > .comment-respond,
    21         .comment-form-flex,
    22         .no-comments {
    23 
    24                 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
     34        .comments-title-wrap {
    2535
    2636                @include media(tablet) {
    27                         margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));
    28                         max-width: calc(6 * (100vw / 12));
    29                 }
    30         }
    31 
    32         .comments-title-wrap {
    33 
    34                 align-items: baseline;
    35                 display: flex;
    36                 justify-content: space-between;
     37                        align-items: baseline;
     38                        display: flex;
     39                        justify-content: space-between;
     40                }
    3741
    3842                .comments-title {
    3943                        @include post-section-dash;
    4044                        margin: 0;
     45
     46                        @include media(tablet) {
     47                                flex: 1 0 calc(3 * (100vw / 12));
     48                        }
     49                }
     50
     51                .discussion-meta {
     52                        @include media(tablet) {
     53                                flex: 0 0 calc(2 * (100vw / 12));
     54                                margin-left: #{$size__spacing-unit};
     55                        }
    4156                }
    4257        }
     
    4964
    5065#respond {
    51 
    5266        position: relative;
    5367
    5468        .comment-user-avatar {
    55                 display: none;
     69                margin: $size__spacing-unit 0 -#{$size__spacing-unit};
    5670        }
    5771
     
    7589                display: none;
    7690        }
    77 
    78         > #respond {
    79                 @include media(desktop) {
    80 
    81                         .comment-user-avatar {
    82                                 position: absolute;
    83                                 display: block;
    84                                 top: 0;
    85                                 left: 0;
    86 
    87                                 .avatar {
    88                                         display: block;
    89                                 }
    90                         }
    91                 }
    92         }
    9391}
    9492
    9593.comment-form-flex {
    96 
    9794        display: flex;
    9895        flex-direction: column;
     
    105102
    106103        #respond {
    107 
    108104                order: 2;
     105
    109106                + .comments-title {
    110107                        display: block;
     
    114111
    115112.comment-list {
    116 
    117113        list-style: none;
    118114        padding: 0;
     
    127123        }
    128124
     125        .pingback,
     126        .trackback {
     127
     128                .comment-body {
     129                        color: $color__text-light;
     130                        font-family: $font__heading;
     131                        font-size: $font__size-xs;
     132                        font-weight: 500;
     133                        margin-top: $size__spacing-unit;
     134                        margin-bottom: $size__spacing-unit;
     135
     136                        a:not(.comment-edit-link) {
     137                                font-weight: bold;
     138                                font-size: $font__size-base / (1 * $font__size-ratio);
     139                                line-height: 1.5;
     140                                padding-right: #{0.5 * $size__spacing-unit};
     141                                display: block;
     142                        }
     143
     144                        .comment-edit-link {
     145                                color: $color__text-light;
     146                                font-family: $font__heading;
     147                                font-weight: 500;
     148                        }
     149                }
     150        }
    129151}
    130152
    131153.comment-reply {
    132 
    133         left: calc(#{$size__spacing-unit} + 100%);
    134         bottom: 0;
    135         position: absolute;
    136154
    137155        #respond + & {
     
    145163
    146164.comment {
    147 
    148165        list-style: none;
    149166        position: relative;
    150167
    151168        @include media(tablet) {
    152 
    153169                padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 )));
    154170
     171                &.depth-1,
    155172                .children {
    156173                        padding-left: 0;
    157174                }
    158         }
    159 
    160         &:hover > .comment-body > .comment-meta > .comment-metadata {
    161                 > .edit-link-sep,
    162                 > .edit-link {
    163                         opacity: 1;
     175
     176                &.depth-1 {
     177                        margin-left: calc(3.25 * #{$size__spacing-unit});
    164178                }
    165179        }
    166180
    167181        .comment-body {
    168                 margin: calc(2 * #{$size__spacing-unit}) 0;
    169         }
     182                margin: calc(2 * #{$size__spacing-unit}) 0 0;
     183        }
     184
    170185
    171186        .comment-meta {
     
    174189
    175190        .comment-author {
    176 
    177                 @include media(tablet) {
    178                         display: inline-block;
    179                         vertical-align: baseline;
    180                 }
    181191
    182192                .avatar {
     
    198208                        display: block;
    199209
    200                         @include media(tablet) {
    201                                 display: inline-block;
    202                                 vertical-align: baseline;
    203                         }
    204 
    205210                        a {
    206211                                color: inherit;
     
    218223                        position: absolute;
    219224                        background: lighten( $color__link, 8% );
    220                         right: calc(100% + #{$size__spacing-unit * .25});
     225                        right: calc(100% - #{$size__spacing-unit * 2.5});
    221226                        top: -3px;
    222227                        width: 18px;
     228
     229                        @include media(tablet) {
     230                                right: calc(100% + #{$size__spacing-unit * .75});
     231                        }
    223232
    224233                        svg {
     
    234243        .comment-metadata {
    235244
    236                 @include media(tablet) {
    237                         display: inline-block;
    238                         margin-left: $size__spacing-unit;
    239                         position: relative;
    240                         vertical-align: baseline;
    241                 }
    242 
    243245                > a,
    244246                .comment-edit-link {
    245                         display: inline-block;
     247                        display: inline;
    246248                        font-weight: 500;
    247249                        color: $color__text-light;
     
    253255
    254256                        &:hover {
    255                                 color: $color__text-hover;
     257                                color: $color__link-hover;
    256258                                text-decoration: none;
    257259                        }
     
    265267                        color: $color__text-light;
    266268                        margin: 0 0.2em;
    267                         opacity: 0;
    268                         transition: opacity 200ms ease-in-out;
    269269                        vertical-align: baseline;
    270270                }
     
    272272                .edit-link {
    273273                        color: $color__text-light;
    274                         transition: opacity 200ms ease-in-out;
    275                         opacity: 0;
    276274
    277275                        svg {
     
    283281
    284282                .comment-edit-link {
    285 
    286283                        position: relative;
    287284                        padding-left: $size__spacing-unit;
     
    299296                margin: $size__spacing-unit 0;
    300297
     298                @include media(desktop) {
     299                        padding-right: $size__spacing-unit;
     300                }
     301
    301302                > *:first-child {
    302303                        margin-top: 0;
     
    305306                > *:last-child {
    306307                        margin-bottom: 0;
     308                }
     309
     310                blockquote {
     311                        margin-left: 0;
    307312                }
    308313
     
    346351                        width: calc(1.5 * #{$size__spacing-unit});
    347352                }
    348 
    349                 @include media(tablet) {
    350 
    351                 }
    352353        }
    353354}
    354355
    355356.discussion-meta {
    356 
    357         .discussion-avatar-list {
    358                 display: inline-block;
    359                 margin-right: 8px;
    360         }
    361357
    362358        .discussion-meta-info {
Note: See TracChangeset for help on using the changeset viewer.