Browse Source

Brompton: Blog Posts block style tweak

Takashi Irie 5 years ago
parent
commit
8cb7510e4b

+ 14 - 2
brompton/sass/_extra-child-theme.scss

@@ -252,8 +252,7 @@
 
 article .entry-header .entry-title,
 .page-title,
-.a8c-posts-list .a8c-posts-list-item__title,
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
+.a8c-posts-list .a8c-posts-list-item__title {
 	margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
 
 	a {
@@ -268,6 +267,19 @@ article .entry-header .entry-title,
 	}
 }
 
+.wp-block-newspack-blocks-homepage-articles article .entry-title {
+	a {
+		color: inherit;
+		text-decoration: none;
+
+		&:active,
+		&:focus,
+		&:hover {
+			color: #{map-deep-get($config-global, "color", "primary", "default")};
+		}
+	}
+}
+
 // Cover & Hero block
 .wp-block-cover .wp-block-cover__inner-container,
 .wp-block-coblocks-hero .wp-block-coblocks-hero__box {

+ 8 - 0
brompton/sass/style-child-theme-editor.scss

@@ -39,3 +39,11 @@
 .editor-post-title__input {
 	text-align: center;
 }
+
+.wp-block-a8c-blog-posts .entry-title a {
+	color: inherit;
+
+	&:hover {
+		color: #{map-deep-get($config-global, "color", "primary", "default")};
+	}
+}

+ 12 - 0
brompton/style-editor.css

@@ -311,6 +311,10 @@ object {
 	padding: 32px;
 }
 
+.wp-block-a8c-blog-posts.image-alignbehind .post-has-image .cat-links {
+	color: #fff;
+}
+
 .wp-block-a8c-blog-posts.image-alignbehind .post-has-image a:hover {
 	color: currentColor;
 }
@@ -1232,3 +1236,11 @@ table th,
 .editor-post-title__input {
 	text-align: center;
 }
+
+.wp-block-a8c-blog-posts .entry-title a {
+	color: inherit;
+}
+
+.wp-block-a8c-blog-posts .entry-title a:hover {
+	color: #C04239;
+}

+ 12 - 8
brompton/style-rtl.css

@@ -4160,15 +4160,13 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
 
 article .entry-header .entry-title,
 .page-title,
-.a8c-posts-list .a8c-posts-list-item__title,
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
+.a8c-posts-list .a8c-posts-list-item__title {
 	margin-top: 32px;
 }
 
 article .entry-header .entry-title a,
 .page-title a,
-.a8c-posts-list .a8c-posts-list-item__title a,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+.a8c-posts-list .a8c-posts-list-item__title a {
 	color: inherit;
 	text-decoration: none;
 }
@@ -4179,10 +4177,16 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 .page-title a:hover,
 .a8c-posts-list .a8c-posts-list-item__title a:active,
 .a8c-posts-list .a8c-posts-list-item__title a:focus,
-.a8c-posts-list .a8c-posts-list-item__title a:hover,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
+.a8c-posts-list .a8c-posts-list-item__title a:hover {
+	color: #C04239;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	color: inherit;
+	text-decoration: none;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:active, .wp-block-newspack-blocks-homepage-articles article .entry-title a:focus, .wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
 	color: #C04239;
 }
 

+ 12 - 8
brompton/style.css

@@ -4189,15 +4189,13 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
 
 article .entry-header .entry-title,
 .page-title,
-.a8c-posts-list .a8c-posts-list-item__title,
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
+.a8c-posts-list .a8c-posts-list-item__title {
 	margin-top: 32px;
 }
 
 article .entry-header .entry-title a,
 .page-title a,
-.a8c-posts-list .a8c-posts-list-item__title a,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+.a8c-posts-list .a8c-posts-list-item__title a {
 	color: inherit;
 	text-decoration: none;
 }
@@ -4208,10 +4206,16 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 .page-title a:hover,
 .a8c-posts-list .a8c-posts-list-item__title a:active,
 .a8c-posts-list .a8c-posts-list-item__title a:focus,
-.a8c-posts-list .a8c-posts-list-item__title a:hover,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
-.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
+.a8c-posts-list .a8c-posts-list-item__title a:hover {
+	color: #C04239;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	color: inherit;
+	text-decoration: none;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:active, .wp-block-newspack-blocks-homepage-articles article .entry-title a:focus, .wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
 	color: #C04239;
 }