Skip to content

Commit

Permalink
Merge pull request Automattic#1172 from Automattic/master
Browse files Browse the repository at this point in the history
Release – Dec. 8
  • Loading branch information
dkoo authored Dec 8, 2020
2 parents 9a310ee + f8c51b5 commit 8b3d43c
Show file tree
Hide file tree
Showing 35 changed files with 3,018 additions and 1,396 deletions.
4 changes: 2 additions & 2 deletions newspack-joseph/inc/child-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function newspack_joseph_custom_typography_css() {
if ( get_theme_mod( 'font_header', '' ) ) {
$css_blocks .= '
.has-drop-cap:not(:focus)::first-letter,
.entry .entry-content .wp-block-pullquote {
.wp-block-pullquote {
font-family: ' . wp_kses( $font_header, null ) . ';
}
Expand All @@ -35,7 +35,7 @@ function newspack_joseph_custom_typography_css() {
.widget,
.widget-title.accent-header,
.accent-header,
.entry .entry-content .wp-block-button__link,
.wp-block-button .wp-block-button__link,
.entry .article-section-title,
button,
input[type="button"],
Expand Down
22 changes: 10 additions & 12 deletions newspack-joseph/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ figcaption,
.widget,
.widget-title.accent-header,
.accent-header,
.entry .entry-content .wp-block-button .wp-block-button__link,
.wp-block-button__link,
.entry .article-section-title,
button,
input[type='button'],
Expand Down Expand Up @@ -372,17 +372,15 @@ textarea {
}

/* Blocks */
.entry .entry-content {
.wp-block-separator,
hr {
background: transparent !important;
border-color: currentColor;
border-top-style: double;
border-top-width: 3px;

&.is-style-dots::before {
color: currentColor;
}
.wp-block-separator,
hr {
background: transparent !important;
border-color: currentColor;
border-top-style: double;
border-top-width: 3px;

&.is-style-dots::before {
color: currentColor;
}
}

Expand Down
6 changes: 3 additions & 3 deletions newspack-katharine/inc/child-color-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function newspack_katharine_custom_colors_css() {

$theme_css = '
.archive .page-title,
.entry-meta .byline a, .entry-meta .byline a:visited,
.entry .entry-content .entry-meta .byline a, .entry .entry-content .entry-meta .byline a:visited,
.entry-meta .byline a,
.entry-meta .byline a:visited,
.entry .entry-meta a:hover,
.cat-links,
.cat-links a,
Expand All @@ -49,7 +49,7 @@ function newspack_katharine_custom_colors_css() {
}
.accent-header:before,
.site-content .wpnbha .article-section-title:before,
div.wpnbha .article-section-title:before,
.cat-links:before,
.archive .page-title:before,
figcaption:after,
Expand Down
2 changes: 1 addition & 1 deletion newspack-katharine/inc/child-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function newspack_katharine_custom_typography_css() {
if ( true === get_theme_mod( 'accent_allcaps', true ) ) {
$css_blocks .= '
.accent-header,
.site-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.archive .page-title,
.author-bio h2 span,
.entry-meta .byline a,
Expand Down
30 changes: 14 additions & 16 deletions newspack-katharine/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

.accent-header,
.wp-block-columns .wp-block-column > .accent-header,
.entry-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.cat-links,
.archive .page-title {
margin: 0 0 #{1.5 * $size__spacing-unit};
}

.accent-header,
.site-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.cat-links {
font-size: $font__size-xs;
}
Expand Down Expand Up @@ -334,21 +334,19 @@ figcaption,
}
}

.entry .entry-content {
.wp-block-embed figcaption,
.wp-block-image figcaption,
.wp-block-audio figcaption,
.wp-block-video figcaption,
.wp-caption-text {
padding-left: 0;
padding-right: 0;
text-align: left;
}
.wp-block-embed figcaption,
.wp-block-image figcaption,
.wp-block-audio figcaption,
.wp-block-video figcaption,
.wp-caption-text {
padding-left: 0;
padding-right: 0;
text-align: left;
}

.wp-block-separator,
hr {
border-top: 1px dotted $color__text-main;
}
.wp-block-separator,
hr {
border-top: 1px dotted $color__text-main;
}

// Archives
Expand Down
2 changes: 1 addition & 1 deletion newspack-nelson/inc/child-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function newspack_nelson_custom_typography_css() {
.mobile-menu-toggle,
.accent-header,
.cat-links,
.site-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.entry-meta .byline .author,
.tags-links a,
.post-edit-link,
Expand Down
21 changes: 9 additions & 12 deletions newspack-nelson/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,16 @@ h4,
// Accent headers

.accent-header,
.site-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.cat-links {
color: $color__text-light;
font-family: $font__heading;
font-size: $font__size-xs;
font-weight: bold;
}

.accent-header,
.wp-block-columns .wp-block-column > .accent-header,
.entry-content .wpnbha .article-section-title {
div.wpnbha .article-section-title {
margin-bottom: $size__spacing-unit;
@include media( tablet ) {
margin-bottom: #{1.5 * $size__spacing-unit};
Expand Down Expand Up @@ -407,17 +406,15 @@ blockquote {
}
}

.entry .entry-content {
.wp-block-separator {
border-top: 2px solid $color__text-main;
.wp-block-separator {
border-top: 2px solid $color__text-main;

&:not( .is-style-dots ):not( .is-style-wide ) {
border-top: 5px solid $color__text-main;
}
&:not( .is-style-dots ):not( .is-style-wide ) {
border-top: 5px solid $color__text-main;
}

&.is-style-dots::before {
color: $color__text-main;
}
&.is-style-dots::before {
color: $color__text-main;
}
}

Expand Down
4 changes: 2 additions & 2 deletions newspack-sacha/inc/child-color-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function newspack_sacha_custom_colors_css() {
$theme_css = '
.archive .page-title,
.h-sb .featured-image-beside .cat-links,
.entry-meta .byline a, .entry-meta .byline a:visited,
.entry .entry-content .entry-meta .byline a, .entry .entry-content .entry-meta .byline a:visited,
.entry-meta .byline a,
.entry-meta .byline a:visited,
.entry .entry-meta a:hover,
.accent-header,
.article-section-title,
Expand Down
4 changes: 3 additions & 1 deletion newspack-sacha/inc/child-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function newspack_sacha_custom_typography_css() {
.site-description,
.has-drop-cap:not(:focus)::first-letter,
.taxonomy-description,
.entry .entry-content blockquote, .entry .entry-content blockquote cite, .wp-block-pullquote cite {
blockquote,
blockquote cite,
.wp-block-pullquote cite {
font-family: ' . wp_kses( $font_header, null ) . ';
}
';
Expand Down
12 changes: 3 additions & 9 deletions newspack-sacha/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
}

.accent-header,
.site-content .wpnbha .article-section-title,
div.wpnbha .article-section-title,
.cat-links {
font-size: $font__size-xs;
margin-bottom: $size__spacing-unit;
Expand Down Expand Up @@ -194,10 +194,6 @@ cite {
}

.single {
.cat-links {
text-align: center;
}

.featured-image-behind {
.entry-subhead {
border: 0;
Expand All @@ -216,10 +212,8 @@ cite {
}

.entry-header {
.entry-title,
.newspack-post-subtitle {
text-align: center;
}
text-align: center;

.entry-title {
margin-bottom: #{1.5 * $size__spacing-unit};
margin-top: $size__spacing-unit;
Expand Down
4 changes: 4 additions & 0 deletions newspack-scott/inc/child-color-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function newspack_scott_custom_colors_css() {
color: ' . esc_html( $primary_color ) . ';
}
.wp-block-pullquote {
border-color: ' . esc_html( $primary_color ) . ';
}
@media only screen and (min-width: 782px) {
/* Header default background */
.h-db .featured-image-beside .cat-links:before {
Expand Down
4 changes: 2 additions & 2 deletions newspack-scott/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

.accent-header,
.wp-block-columns .wp-block-column > .accent-header,
.entry .wpnbha .article-section-title {
div.wpnbha .article-section-title {
margin-bottom: 1em;
}

Expand Down Expand Up @@ -141,7 +141,7 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
//! Pullquote
.wp-block-pullquote {
border-width: 0;
border-color: transparent;
border-color: $color__primary;
font-family: $font__heading;
font-weight: bold;
padding-top: #{4 * $size__spacing-unit};
Expand Down
2 changes: 1 addition & 1 deletion newspack-theme/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
$post_count++;
the_post();

if ( 1 === $post_count ) {
if ( 1 === $post_count || true === get_theme_mod( 'archive_show_excerpt', false ) ) {
get_template_part( 'template-parts/content/content', 'excerpt' );
} else {
get_template_part( 'template-parts/content/content', 'archive' );
Expand Down
Loading

0 comments on commit 8b3d43c

Please sign in to comment.