- Timestamp:
- 12/14/2018 02:32:33 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
-
. (modified) (1 prop)
-
src/wp-content/themes/twentynineteen (copied) (copied from branches/5.0/src/wp-content/themes/twentynineteen )
-
src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
r43808 r44149 8 8 9 9 .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 } 10 26 11 27 /* 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). 13 29 */ 14 . hentry + & {30 .entry + & { 15 31 margin-top: calc(3 * #{$size__spacing-unit}); 16 32 } 17 33 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 { 25 35 26 36 @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 } 37 41 38 42 .comments-title { 39 43 @include post-section-dash; 40 44 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 } 41 56 } 42 57 } … … 49 64 50 65 #respond { 51 52 66 position: relative; 53 67 54 68 .comment-user-avatar { 55 display: none;69 margin: $size__spacing-unit 0 -#{$size__spacing-unit}; 56 70 } 57 71 … … 75 89 display: none; 76 90 } 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 91 } 94 92 95 93 .comment-form-flex { 96 97 94 display: flex; 98 95 flex-direction: column; … … 105 102 106 103 #respond { 107 108 104 order: 2; 105 109 106 + .comments-title { 110 107 display: block; … … 114 111 115 112 .comment-list { 116 117 113 list-style: none; 118 114 padding: 0; … … 127 123 } 128 124 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 } 129 151 } 130 152 131 153 .comment-reply { 132 133 left: calc(#{$size__spacing-unit} + 100%);134 bottom: 0;135 position: absolute;136 154 137 155 #respond + & { … … 145 163 146 164 .comment { 147 148 165 list-style: none; 149 166 position: relative; 150 167 151 168 @include media(tablet) { 152 153 169 padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 ))); 154 170 171 &.depth-1, 155 172 .children { 156 173 padding-left: 0; 157 174 } 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}); 164 178 } 165 179 } 166 180 167 181 .comment-body { 168 margin: calc(2 * #{$size__spacing-unit}) 0; 169 } 182 margin: calc(2 * #{$size__spacing-unit}) 0 0; 183 } 184 170 185 171 186 .comment-meta { … … 174 189 175 190 .comment-author { 176 177 @include media(tablet) {178 display: inline-block;179 vertical-align: baseline;180 }181 191 182 192 .avatar { … … 198 208 display: block; 199 209 200 @include media(tablet) {201 display: inline-block;202 vertical-align: baseline;203 }204 205 210 a { 206 211 color: inherit; … … 218 223 position: absolute; 219 224 background: lighten( $color__link, 8% ); 220 right: calc(100% + #{$size__spacing-unit * .25});225 right: calc(100% - #{$size__spacing-unit * 2.5}); 221 226 top: -3px; 222 227 width: 18px; 228 229 @include media(tablet) { 230 right: calc(100% + #{$size__spacing-unit * .75}); 231 } 223 232 224 233 svg { … … 234 243 .comment-metadata { 235 244 236 @include media(tablet) {237 display: inline-block;238 margin-left: $size__spacing-unit;239 position: relative;240 vertical-align: baseline;241 }242 243 245 > a, 244 246 .comment-edit-link { 245 display: inline -block;247 display: inline; 246 248 font-weight: 500; 247 249 color: $color__text-light; … … 253 255 254 256 &:hover { 255 color: $color__ text-hover;257 color: $color__link-hover; 256 258 text-decoration: none; 257 259 } … … 265 267 color: $color__text-light; 266 268 margin: 0 0.2em; 267 opacity: 0;268 transition: opacity 200ms ease-in-out;269 269 vertical-align: baseline; 270 270 } … … 272 272 .edit-link { 273 273 color: $color__text-light; 274 transition: opacity 200ms ease-in-out;275 opacity: 0;276 274 277 275 svg { … … 283 281 284 282 .comment-edit-link { 285 286 283 position: relative; 287 284 padding-left: $size__spacing-unit; … … 299 296 margin: $size__spacing-unit 0; 300 297 298 @include media(desktop) { 299 padding-right: $size__spacing-unit; 300 } 301 301 302 > *:first-child { 302 303 margin-top: 0; … … 305 306 > *:last-child { 306 307 margin-bottom: 0; 308 } 309 310 blockquote { 311 margin-left: 0; 307 312 } 308 313 … … 346 351 width: calc(1.5 * #{$size__spacing-unit}); 347 352 } 348 349 @include media(tablet) {350 351 }352 353 } 353 354 } 354 355 355 356 .discussion-meta { 356 357 .discussion-avatar-list {358 display: inline-block;359 margin-right: 8px;360 }361 357 362 358 .discussion-meta-info {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)