Make WordPress Core


Ignore:
Timestamp:
10/30/2018 02:13:07 AM (6 years ago)
Author:
allancole
Message:

Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.

Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss

    r43808 r43842  
    1010
    1111    /* Add extra margin when the comments section is located immediately after the
    12      * post itself (this happens on pages). 
     12     * post itself (this happens on pages).
    1313     */
    14     .hentry + & {
     14    .entry + & {
    1515        margin-top: calc(3 * #{$size__spacing-unit});
    1616    }
    1717
    18     .comments-title-wrap,
    1918    .comment-list,
     19    .comment-navigation,
    2020    > .comment-respond,
    2121    .comment-form-flex,
    2222    .no-comments {
    23 
    2423        margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
    2524
     
    3231    .comments-title-wrap {
    3332
    34         align-items: baseline;
    35         display: flex;
    36         justify-content: space-between;
     33        margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
     34
     35        @include media(tablet) {
     36            align-items: baseline;
     37            display: flex;
     38            justify-content: space-between;
     39            margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));
     40            max-width: calc(8 * (100vw / 12));
     41        }
    3742
    3843        .comments-title {
    3944            @include post-section-dash;
    4045            margin: 0;
     46
     47            @include media(tablet) {
     48                flex: 1 0 calc(3 * (100vw / 12));
     49            }
     50        }
     51
     52        .discussion-meta {
     53            @include media(tablet) {
     54                flex: 0 0 calc(2 * (100vw / 12));
     55                margin-left: #{$size__spacing-unit};
     56            }
    4157        }
    4258    }
     
    4965
    5066#respond {
    51 
    5267    position: relative;
    5368
    5469    .comment-user-avatar {
    55         display: none;
     70        margin: $size__spacing-unit 0 -#{$size__spacing-unit};
    5671    }
    5772
     
    7590        display: none;
    7691    }
    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     }
    9392}
    9493
    9594.comment-form-flex {
    96 
    9795    display: flex;
    9896    flex-direction: column;
     
    105103
    106104    #respond {
    107 
    108105        order: 2;
     106
    109107        + .comments-title {
    110108            display: block;
     
    114112
    115113.comment-list {
    116 
    117114    list-style: none;
    118115    padding: 0;
     
    126123        margin-top: 0;
    127124    }
    128 
    129125}
    130126
    131127.comment-reply {
    132 
    133128    left: calc(#{$size__spacing-unit} + 100%);
    134129    bottom: 0;
     
    145140
    146141.comment {
    147 
    148142    list-style: none;
    149143    position: relative;
    150144
    151145    @include media(tablet) {
    152 
    153146        padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 )));
    154147
     
    218211            position: absolute;
    219212            background: lighten( $color__link, 8% );
    220             right: calc(100% + #{$size__spacing-unit * .25});
     213            right: calc(100% - #{$size__spacing-unit * 2.5});
    221214            top: -3px;
    222215            width: 18px;
     216
     217            @include media(tablet) {
     218                right: calc(100% + #{$size__spacing-unit * .75});
     219            }
    223220
    224221            svg {
     
    283280
    284281        .comment-edit-link {
    285 
    286282            position: relative;
    287283            padding-left: $size__spacing-unit;
     
    346342            width: calc(1.5 * #{$size__spacing-unit});
    347343        }
    348 
    349         @include media(tablet) {
    350 
    351         }
    352344    }
    353345}
    354346
    355347.discussion-meta {
    356 
    357     .discussion-avatar-list {
    358         display: inline-block;
    359         margin-right: 8px;
    360     }
    361348
    362349    .discussion-meta-info {
Note: See TracChangeset for help on using the changeset viewer.