Changeset 43892 for branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
- Timestamp:
- 11/12/2018 11:19:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
r43860 r43892 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 … … 16 32 } 17 33 18 .comment-list,19 .comment-navigation,20 > .comment-respond,21 .comment-form-flex,22 .no-comments {23 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;24 25 @include media(tablet) {26 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));27 max-width: calc(6 * (100vw / 12));28 }29 }30 31 34 .comments-title-wrap { 32 33 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;34 35 35 36 @include media(tablet) { … … 37 38 display: flex; 38 39 justify-content: space-between; 39 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));40 max-width: calc(8 * (100vw / 12));41 40 } 42 41 … … 124 123 } 125 124 126 .pingback { 125 .pingback, 126 .trackback { 127 127 128 128 .comment-body { … … 131 131 font-size: $font__size-xs; 132 132 font-weight: 500; 133 margin-top: $size__spacing-unit; 133 134 margin-bottom: $size__spacing-unit; 134 135 … … 151 152 152 153 .comment-reply { 153 left: calc(#{$size__spacing-unit} + 100%);154 bottom: 0;155 position: absolute;156 154 157 155 #respond + & { … … 171 169 padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 ))); 172 170 171 &.depth-1, 173 172 .children { 174 173 padding-left: 0; 175 174 } 175 176 &.depth-1 { 177 margin-left: calc(3.25 * #{$size__spacing-unit}); 178 } 176 179 } 177 180 178 181 .comment-body { 179 margin: calc(2 * #{$size__spacing-unit}) 0; 180 } 182 margin: calc(2 * #{$size__spacing-unit}) 0 0; 183 } 184 181 185 182 186 .comment-meta { 183 187 position: relative; 184 185 @include media(tablet) {186 display: flex;187 }188 188 } 189 189 190 190 .comment-author { 191 192 @include media(tablet) {193 flex: 0 0 auto;194 vertical-align: baseline;195 }196 191 197 192 .avatar { … … 212 207 position: relative; 213 208 display: block; 214 215 @include media(tablet) {216 display: inline-block;217 vertical-align: baseline;218 }219 209 220 210 a { … … 253 243 .comment-metadata { 254 244 255 @include media(tablet) {256 flex: 1 0 auto;257 margin-left: $size__spacing-unit;258 position: relative;259 vertical-align: baseline;260 }261 262 245 > a, 263 246 .comment-edit-link { 264 display: inline -block;247 display: inline; 265 248 font-weight: 500; 266 249 color: $color__text-light; … … 272 255 273 256 &:hover { 274 color: $color__ text-hover;257 color: $color__link-hover; 275 258 text-decoration: none; 276 259 } … … 313 296 margin: $size__spacing-unit 0; 314 297 298 @include media(desktop) { 299 padding-right: $size__spacing-unit; 300 } 301 315 302 > *:first-child { 316 303 margin-top: 0; … … 319 306 > *:last-child { 320 307 margin-bottom: 0; 308 } 309 310 blockquote { 311 margin-left: 0; 321 312 } 322 313
Note: See TracChangeset
for help on using the changeset viewer.