Sfoglia il codice sorgente

Merge pull request #2729 from Automattic/spearhead/update-post-excerpt-color

Spearhead: Update text color of post excerpts
Jeff Ong 4 anni fa
parent
commit
7377081dd6

+ 13 - 0
spearhead/assets/sass/_posts-and-pages.scss

@@ -4,6 +4,19 @@
 	margin-bottom: 0;
 }
 
+.archive .post-excerpt:not(.sticky),
+.home .post-excerpt:not(.sticky) {
+	color: var(--global--color-secondary);
+
+	.more-link {
+		color: var(--global--color-secondary);
+
+		&:hover {
+			color: var(--global--color-primary-hover);
+		}
+	}
+}
+
 .post .entry-header {
 	display: flex;
 	flex-direction: column;

+ 15 - 0
spearhead/style-rtl.css

@@ -62,6 +62,21 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	margin-bottom: 0;
 }
 
+.archive .post-excerpt:not(.sticky),
+.home .post-excerpt:not(.sticky) {
+	color: var(--global--color-secondary);
+}
+
+.archive .post-excerpt:not(.sticky) .more-link,
+.home .post-excerpt:not(.sticky) .more-link {
+	color: var(--global--color-secondary);
+}
+
+.archive .post-excerpt:not(.sticky) .more-link:hover,
+.home .post-excerpt:not(.sticky) .more-link:hover {
+	color: var(--global--color-primary-hover);
+}
+
 .post .entry-header {
 	display: flex;
 	flex-direction: column;

+ 15 - 0
spearhead/style.css

@@ -62,6 +62,21 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	margin-bottom: 0;
 }
 
+.archive .post-excerpt:not(.sticky),
+.home .post-excerpt:not(.sticky) {
+	color: var(--global--color-secondary);
+}
+
+.archive .post-excerpt:not(.sticky) .more-link,
+.home .post-excerpt:not(.sticky) .more-link {
+	color: var(--global--color-secondary);
+}
+
+.archive .post-excerpt:not(.sticky) .more-link:hover,
+.home .post-excerpt:not(.sticky) .more-link:hover {
+	color: var(--global--color-primary-hover);
+}
+
 .post .entry-header {
 	display: flex;
 	flex-direction: column;

File diff suppressed because it is too large
+ 0 - 0
spearhead/style.css.map


+ 1 - 1
spearhead/template-parts/content/content-excerpt.php

@@ -10,7 +10,7 @@
 
 ?>
 
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-excerpt' ); ?>>
 	<header class="entry-header default-max-width">
 		<?php
 		if ( is_sticky() && is_home() && ! is_paged() ) {

Some files were not shown because too many files changed in this diff