Changeset 43842 for branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
- Timestamp:
- 10/30/2018 02:13:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
r43808 r43842 10 10 11 11 /* 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). 13 13 */ 14 . hentry + & {14 .entry + & { 15 15 margin-top: calc(3 * #{$size__spacing-unit}); 16 16 } 17 17 18 .comments-title-wrap,19 18 .comment-list, 19 .comment-navigation, 20 20 > .comment-respond, 21 21 .comment-form-flex, 22 22 .no-comments { 23 24 23 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit; 25 24 … … 32 31 .comments-title-wrap { 33 32 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 } 37 42 38 43 .comments-title { 39 44 @include post-section-dash; 40 45 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 } 41 57 } 42 58 } … … 49 65 50 66 #respond { 51 52 67 position: relative; 53 68 54 69 .comment-user-avatar { 55 display: none;70 margin: $size__spacing-unit 0 -#{$size__spacing-unit}; 56 71 } 57 72 … … 75 90 display: none; 76 91 } 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 }93 92 } 94 93 95 94 .comment-form-flex { 96 97 95 display: flex; 98 96 flex-direction: column; … … 105 103 106 104 #respond { 107 108 105 order: 2; 106 109 107 + .comments-title { 110 108 display: block; … … 114 112 115 113 .comment-list { 116 117 114 list-style: none; 118 115 padding: 0; … … 126 123 margin-top: 0; 127 124 } 128 129 125 } 130 126 131 127 .comment-reply { 132 133 128 left: calc(#{$size__spacing-unit} + 100%); 134 129 bottom: 0; … … 145 140 146 141 .comment { 147 148 142 list-style: none; 149 143 position: relative; 150 144 151 145 @include media(tablet) { 152 153 146 padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 ))); 154 147 … … 218 211 position: absolute; 219 212 background: lighten( $color__link, 8% ); 220 right: calc(100% + #{$size__spacing-unit * .25});213 right: calc(100% - #{$size__spacing-unit * 2.5}); 221 214 top: -3px; 222 215 width: 18px; 216 217 @include media(tablet) { 218 right: calc(100% + #{$size__spacing-unit * .75}); 219 } 223 220 224 221 svg { … … 283 280 284 281 .comment-edit-link { 285 286 282 position: relative; 287 283 padding-left: $size__spacing-unit; … … 346 342 width: calc(1.5 * #{$size__spacing-unit}); 347 343 } 348 349 @include media(tablet) {350 351 }352 344 } 353 345 } 354 346 355 347 .discussion-meta { 356 357 .discussion-avatar-list {358 display: inline-block;359 margin-right: 8px;360 }361 348 362 349 .discussion-meta-info {
Note: See TracChangeset
for help on using the changeset viewer.