_comments.scss (6442B)
1 .comment-content a { 2 word-wrap: break-word; 3 } 4 5 .bypostauthor { 6 display: block; 7 } 8 9 .comments-area { 10 -webkit-hyphens: auto; 11 -moz-hyphens: auto; 12 -ms-hyphens: auto; 13 hyphens: auto; 14 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit; 15 word-wrap: break-word; 16 @include postContentMaxWidth(); 17 18 @include media(tablet) { 19 margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 20 } 21 22 & > * { 23 margin-top: calc(2 * #{$size__spacing-unit}); 24 margin-bottom: calc(2 * #{$size__spacing-unit}); 25 26 @include media(tablet) { 27 margin-top: calc(3 * #{$size__spacing-unit}); 28 margin-bottom: calc(3 * #{$size__spacing-unit}); 29 } 30 } 31 32 /* Add extra margin when the comments section is located immediately after the 33 * post itself (this happens on pages). 34 */ 35 .entry + & { 36 margin-top: calc(3 * #{$size__spacing-unit}); 37 } 38 39 .comments-title-wrap { 40 41 @include media(tablet) { 42 align-items: baseline; 43 display: flex; 44 justify-content: space-between; 45 } 46 47 .comments-title { 48 @include post-section-dash; 49 margin: 0; 50 51 @include media(tablet) { 52 flex: 1 0 calc(3 * (100vw / 12)); 53 } 54 } 55 56 .discussion-meta { 57 @include media(tablet) { 58 flex: 0 0 calc(2 * (100vw / 12)); 59 margin-left: #{$size__spacing-unit}; 60 } 61 } 62 } 63 } 64 65 #comment { 66 max-width: 100%; 67 box-sizing: border-box; 68 } 69 70 #respond { 71 position: relative; 72 73 .comment-user-avatar { 74 margin: $size__spacing-unit 0 -#{$size__spacing-unit}; 75 } 76 77 .comment .comment-form { 78 padding-left: 0; 79 } 80 81 > small { 82 display: block; 83 font-size: $font__size_base; 84 position: absolute; 85 left: calc(#{$size__spacing-unit} + 100%); 86 top: calc(-3.5 * #{$size__spacing-unit}); 87 width: calc(100vw / 12 ); 88 } 89 } 90 91 #comments { 92 93 > .comments-title:last-child { 94 display: none; 95 } 96 } 97 98 .comment-form-flex { 99 display: flex; 100 flex-direction: column; 101 102 .comments-title { 103 display: none; 104 margin: 0; 105 order: 1; 106 } 107 108 #respond { 109 order: 2; 110 111 + .comments-title { 112 display: block; 113 } 114 } 115 } 116 117 .comment-list { 118 list-style: none; 119 padding: 0; 120 121 .children { 122 margin: 0; 123 padding: 0 0 0 $size__spacing-unit; 124 } 125 126 > .comment:first-child { 127 margin-top: 0; 128 } 129 130 .pingback, 131 .trackback { 132 133 .comment-body { 134 color: $color__text-light; 135 @include font-family( $font__heading ); 136 font-size: $font__size-xs; 137 font-weight: 500; 138 margin-top: $size__spacing-unit; 139 margin-bottom: $size__spacing-unit; 140 141 a:not(.comment-edit-link) { 142 font-weight: bold; 143 font-size: $font__size-base / (1 * $font__size-ratio); 144 line-height: 1.5; 145 padding-right: #{0.5 * $size__spacing-unit}; 146 display: block; 147 } 148 149 .comment-edit-link { 150 color: $color__text-light; 151 @include font-family( $font__heading ); 152 font-weight: 500; 153 } 154 } 155 } 156 } 157 158 .comment-reply { 159 160 #respond + & { 161 display: none; 162 } 163 164 .comment-reply-link { 165 display: inline-block; 166 } 167 } 168 169 .comment { 170 list-style: none; 171 position: relative; 172 173 @include media(tablet) { 174 padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 ))); 175 176 &.depth-1, 177 .children { 178 padding-left: 0; 179 } 180 181 &.depth-1 { 182 margin-left: calc(3.25 * #{$size__spacing-unit}); 183 } 184 } 185 186 .comment-body { 187 margin: calc(2 * #{$size__spacing-unit}) 0 0; 188 } 189 190 191 .comment-meta { 192 position: relative; 193 } 194 195 .comment-author { 196 197 .avatar { 198 float: left; 199 margin-right: $size__spacing-unit; 200 position: relative; 201 202 @include media(tablet) { 203 float: inherit; 204 margin-right: inherit; 205 position: absolute; 206 top: 0; 207 right: calc(100% + #{$size__spacing-unit}); 208 } 209 } 210 211 .fn { 212 position: relative; 213 display: block; 214 215 a { 216 color: inherit; 217 218 &:hover { 219 color: $color__link-hover; 220 } 221 } 222 } 223 224 .post-author-badge { 225 border-radius: 100%; 226 display: block; 227 height: 18px; 228 position: absolute; 229 background: lighten( $color__link, 8% ); 230 right: calc(100% - #{$size__spacing-unit * 2.5}); 231 top: -3px; 232 width: 18px; 233 234 @include media(tablet) { 235 right: calc(100% + #{$size__spacing-unit * .75}); 236 } 237 238 svg { 239 width: inherit; 240 height: inherit; 241 display: block; 242 fill: white; 243 transform: scale(0.875); 244 } 245 } 246 } 247 248 .comment-metadata { 249 250 > a, 251 .comment-edit-link { 252 display: inline; 253 font-weight: 500; 254 color: $color__text-light; 255 vertical-align: baseline; 256 257 time { 258 vertical-align: baseline; 259 } 260 261 &:hover { 262 color: $color__link-hover; 263 text-decoration: none; 264 } 265 } 266 267 > * { 268 display: inline-block; 269 } 270 271 .edit-link-sep { 272 color: $color__text-light; 273 margin: 0 0.2em; 274 vertical-align: baseline; 275 } 276 277 .edit-link { 278 color: $color__text-light; 279 280 svg { 281 transform: scale(0.8); 282 vertical-align: baseline; 283 margin-right: 0.1em; 284 } 285 } 286 287 .comment-edit-link { 288 position: relative; 289 padding-left: $size__spacing-unit; 290 margin-left: -#{$size__spacing-unit}; 291 z-index: 1; 292 293 &:hover { 294 color: $color__link; 295 } 296 } 297 } 298 299 .comment-content { 300 301 margin: $size__spacing-unit 0; 302 303 @include media(desktop) { 304 padding-right: $size__spacing-unit; 305 } 306 307 > *:first-child { 308 margin-top: 0; 309 } 310 311 > *:last-child { 312 margin-bottom: 0; 313 } 314 315 blockquote { 316 margin-left: 0; 317 } 318 319 a { 320 text-decoration: underline; 321 322 &:hover { 323 text-decoration: none; 324 } 325 } 326 } 327 } 328 329 .comment-reply-link, 330 #cancel-comment-reply-link { 331 font-weight: 500; 332 333 &:hover { 334 color: $color__link-hover; 335 } 336 } 337 338 .discussion-avatar-list { 339 @include clearfix; 340 341 margin: 0; 342 padding: 0; 343 344 li { 345 position: relative; 346 list-style: none; 347 margin: 0 -8px 0 0; 348 padding: 0; 349 float: left; 350 } 351 352 .comment-user-avatar { 353 354 img { 355 height: calc(1.5 * #{$size__spacing-unit}); 356 width: calc(1.5 * #{$size__spacing-unit}); 357 } 358 } 359 } 360 361 .discussion-meta { 362 363 .discussion-meta-info { 364 margin: 0; 365 366 .svg-icon { 367 vertical-align: middle; 368 fill: currentColor; 369 transform: scale( 0.6 ) scaleX(-1) translateY(-0.1em); 370 margin-left: -#{.25 * $size__spacing-unit}; // Align icon with avatars above. 371 } 372 } 373 374 } 375 376 .comment-form { 377 378 .comment-notes, 379 label { 380 @include font-family( $font__heading ); 381 font-size: $font__size-xs; 382 color: $color__text-light; 383 } 384 385 #wp-comment-cookies-consent { 386 margin: 0 10px 0 0; 387 } 388 389 .comment-form-author, 390 .comment-form-email { 391 @include media(tablet) { 392 width: calc(50% - #{$size__spacing-unit / 2}); 393 float: left; 394 } 395 } 396 397 .comment-form-email { 398 @include media(tablet) { 399 margin-left: $size__spacing-unit; 400 } 401 } 402 403 input[name="author"], 404 input[name="email"], 405 input[name="url"] { 406 display: block; 407 width: 100%; 408 } 409 }