Ticket #47340: 47340.diff
File 47340.diff, 8.4 KB (added by , 5 years ago) |
---|
-
src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
228 228 padding: 0; 229 229 list-style: none; 230 230 231 li { 232 color: $color__text-light; 231 li > a { 233 232 @include font-family( $font__heading ); 234 233 font-size: calc(#{$font__size_base} * #{$font__size-ratio}); 235 234 font-weight: bold; 236 235 line-height: $font__line-height-heading; 237 padding-bottom: ( .75 * $size__spacing-unit ); 238 239 &.menu-item-has-children, 240 &:last-child { 241 padding-bottom: 0; 242 } 243 244 a { 245 text-decoration: none; 246 } 236 text-decoration: none; 247 237 } 248 238 } 249 239 … … 270 260 @include nestedSubMenuPadding(); 271 261 } 272 262 273 //! Latest posts grid view 274 .wp-block-latest-posts.is-grid { 263 //! Latest posts 264 .wp-block-latest-posts { 265 266 .wp-block-latest-posts__post-date { 267 @include font-family( $font__heading ); 268 font-size: $font__size-xs; 269 color: $color__text-light; 270 line-height: 1.2; 271 } 272 273 .wp-block-latest-posts__post-full-content, 274 .wp-block-latest-posts__post-excerpt { 275 margin-top: $size__spacing-unit; 276 margin-bottom: $size__spacing-unit; 277 } 278 275 279 li { 280 padding-bottom: ( .5 * $size__spacing-unit ); 281 282 &.menu-item-has-children, 283 &:last-child { 284 padding-bottom: 0; 285 } 286 287 :not(:last-child) .wp-block-latest-posts__post-excerpt { 288 padding-bottom: ( .5 * $size__spacing-unit ); 289 } 290 } 291 292 &.is-grid li { 276 293 border-top: 2px solid $color__border; 277 294 padding-top: (1 * $size__spacing-unit); 278 295 margin-bottom: (2 * $size__spacing-unit); -
src/wp-content/themes/twentynineteen/style-editor.css
1172 1172 list-style-type: none; 1173 1173 } 1174 1174 1175 ul.wp-block-archives li, 1176 .wp-block-categories li, 1177 .wp-block-latest-posts li { 1178 color: #767676; 1175 ul.wp-block-archives li > a, 1176 .wp-block-categories li > a, 1177 .wp-block-latest-posts li > a { 1179 1178 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 1180 1179 font-size: calc(22px * 1.125); 1181 1180 font-weight: bold; 1182 1181 line-height: 1.2; 1183 padding-bottom: 0.75rem;1184 }1185 1186 ul.wp-block-archives li.menu-item-has-children, ul.wp-block-archives li:last-child,1187 .wp-block-categories li.menu-item-has-children,1188 .wp-block-categories li:last-child,1189 .wp-block-latest-posts li.menu-item-has-children,1190 .wp-block-latest-posts li:last-child {1191 padding-bottom: 0;1192 }1193 1194 ul.wp-block-archives li a,1195 .wp-block-categories li a,1196 .wp-block-latest-posts li a {1197 1182 text-decoration: none; 1198 1183 } 1199 1184 … … 1224 1209 margin-bottom: -0.75rem; 1225 1210 } 1226 1211 1227 /** === Latest Posts grid view === */ 1212 /** === Latest Posts === */ 1213 .wp-block-latest-posts .wp-block-latest-posts__post-date { 1214 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 1215 font-size: 0.71111em; 1216 color: #767676; 1217 line-height: 1.2; 1218 } 1219 1220 .wp-block-latest-posts .wp-block-latest-posts__post-full-content, 1221 .wp-block-latest-posts .wp-block-latest-posts__post-excerpt { 1222 margin-top: 22px; 1223 margin-bottom: 22px; 1224 } 1225 1226 .wp-block-latest-posts .wp-block-latest-posts__post-full-content > div > p:first-child, 1227 .wp-block-latest-posts .wp-block-latest-posts__post-excerpt > div > p:first-child { 1228 margin-top: 22px; 1229 } 1230 1231 .wp-block-latest-posts li { 1232 padding-bottom: 0.5rem; 1233 } 1234 1235 .wp-block-latest-posts li.menu-item-has-children, .wp-block-latest-posts li:last-child { 1236 padding-bottom: 0; 1237 } 1238 1239 .wp-block-latest-posts li :not(:last-child) .wp-block-latest-posts__post-excerpt { 1240 padding-bottom: 0.5rem; 1241 } 1242 1228 1243 .wp-block-latest-posts.is-grid li { 1229 1244 border-top: 2px solid #ccc; 1230 1245 padding-top: 1rem; -
src/wp-content/themes/twentynineteen/style-editor.scss
625 625 } 626 626 627 627 li { 628 color: $color__text-light;629 @include font-family( $font__heading );630 font-size: calc(#{$font__size_base} * #{$font__size-ratio});631 font-weight: bold;632 line-height: $font__line-height-heading;633 padding-bottom: ( .75 * $size__spacing-unit );634 628 635 &.menu-item-has-children, 636 &:last-child { 637 padding-bottom: 0; 638 } 639 640 a { 629 > a { 630 @include font-family( $font__heading ); 631 font-size: calc(#{$font__size_base} * #{$font__size-ratio}); 632 font-weight: bold; 633 line-height: $font__line-height-heading; 641 634 text-decoration: none; 642 635 } 643 636 … … 662 655 663 656 } 664 657 665 /** === Latest Posts grid view === */ 666 .wp-block-latest-posts.is-grid { 658 /** === Latest Posts === */ 659 .wp-block-latest-posts { 660 661 .wp-block-latest-posts__post-date { 662 @include font-family( $font__heading ); 663 font-size: $font__size-xs; 664 color: $color__text-light; 665 line-height: 1.2; 666 } 667 668 .wp-block-latest-posts__post-full-content, 669 .wp-block-latest-posts__post-excerpt { 670 margin-top: $font__size_base; 671 margin-bottom: $font__size_base; 672 673 > div > p:first-child { 674 margin-top: $font__size_base; 675 } 676 } 677 678 li { 679 padding-bottom: ( .5 * $size__spacing-unit ); 680 681 &.menu-item-has-children, 682 &:last-child { 683 padding-bottom: 0; 684 } 685 686 :not(:last-child) .wp-block-latest-posts__post-excerpt { 687 padding-bottom: ( .5 * $size__spacing-unit ); 688 } 689 } 690 691 &.is-grid { 667 692 li { 668 693 border-top: 2px solid $color__border; 669 694 padding-top: (1 * $size__spacing-unit); … … 681 706 } 682 707 } 683 708 } 709 } 684 710 685 711 /** === Latest Comments === */ 686 712 -
src/wp-content/themes/twentynineteen/style-rtl.css
5472 5472 list-style: none; 5473 5473 } 5474 5474 5475 .entry .entry-content .wp-block-archives li, 5476 .entry .entry-content .wp-block-categories li, 5477 .entry .entry-content .wp-block-latest-posts li { 5478 color: #767676; 5475 .entry .entry-content .wp-block-archives li > a, 5476 .entry .entry-content .wp-block-categories li > a, 5477 .entry .entry-content .wp-block-latest-posts li > a { 5479 5478 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 5480 5479 font-size: calc(22px * 1.125); 5481 5480 font-weight: bold; 5482 5481 line-height: 1.2; 5483 padding-bottom: 0.75rem;5484 }5485 5486 .entry .entry-content .wp-block-archives li.menu-item-has-children, .entry .entry-content .wp-block-archives li:last-child,5487 .entry .entry-content .wp-block-categories li.menu-item-has-children,5488 .entry .entry-content .wp-block-categories li:last-child,5489 .entry .entry-content .wp-block-latest-posts li.menu-item-has-children,5490 .entry .entry-content .wp-block-latest-posts li:last-child {5491 padding-bottom: 0;5492 }5493 5494 .entry .entry-content .wp-block-archives li a,5495 .entry .entry-content .wp-block-categories li a,5496 .entry .entry-content .wp-block-latest-posts li a {5497 5482 text-decoration: none; 5498 5483 } 5499 5484 … … 5522 5507 counter-increment: submenu; 5523 5508 } 5524 5509 5510 .entry .entry-content .wp-block-latest-posts .wp-block-latest-posts__post-date { 5511 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 5512 font-size: 0.71111em; 5513 color: #767676; 5514 line-height: 1.2; 5515 } 5516 5517 .entry .entry-content .wp-block-latest-posts .wp-block-latest-posts__post-full-content, 5518 .entry .entry-content .wp-block-latest-posts .wp-block-latest-posts__post-excerpt { 5519 margin-top: 1rem; 5520 margin-bottom: 1rem; 5521 } 5522 5523 .entry .entry-content .wp-block-latest-posts li { 5524 padding-bottom: 0.5rem; 5525 } 5526 5527 .entry .entry-content .wp-block-latest-posts li.menu-item-has-children, .entry .entry-content .wp-block-latest-posts li:last-child { 5528 padding-bottom: 0; 5529 } 5530 5531 .entry .entry-content .wp-block-latest-posts li :not(:last-child) .wp-block-latest-posts__post-excerpt { 5532 padding-bottom: 0.5rem; 5533 } 5534 5525 5535 .entry .entry-content .wp-block-latest-posts.is-grid li { 5526 5536 border-top: 2px solid #ccc; 5527 5537 padding-top: 1rem;