Browse Source

Mayland: Blog Posts block style tweak

Takashi Irie 5 years ago
parent
commit
296dd67304

+ 15 - 0
mayland/sass/_extra-child-theme.scss

@@ -199,6 +199,21 @@ a {
 	}
 	}
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles {
+	article {
+		.cat-links a,
+		.entry-title a,
+		.more-link,
+		.entry-meta a {
+			text-decoration: none;
+
+			&:hover {
+				text-decoration: underline;
+			}
+		}
+	}
+}
+
 /**
 /**
  * Widgets
  * Widgets
  */
  */

+ 24 - 0
mayland/sass/style-child-theme-editor.scss

@@ -31,3 +31,27 @@
  *   spacing with CSS-variables overrides
  *   spacing with CSS-variables overrides
  */
  */
 @import "../../varia/sass/blocks/editor";
 @import "../../varia/sass/blocks/editor";
+
+/**
+ * Extras
+ */
+.wp-block-a8c-blog-posts {
+	.cat-links a,
+	.more-link,
+	.entry-meta a {
+		text-decoration: none;
+
+		&:hover {
+			text-decoration: underline;
+		}
+	}
+
+	.entry-title a:hover,
+	.more-link:hover {
+		color: inherit;
+	}
+}
+
+.wp-block-a8c-blog-posts + .button {
+	font-size: (strip-unit(map-deep-get($config-global, "font", "size", "sm")) + 0em);
+}

+ 28 - 0
mayland/style-editor.css

@@ -311,6 +311,10 @@ object {
 	padding: 32px;
 	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 {
 .wp-block-a8c-blog-posts.image-alignbehind .post-has-image a:hover {
 	color: currentColor;
 	color: currentColor;
 }
 }
@@ -1224,3 +1228,27 @@ table th,
 	/*rtl:ignore*/
 	/*rtl:ignore*/
 	padding-left: 32px !important;
 	padding-left: 32px !important;
 }
 }
+
+/**
+ * Extras
+ */
+.wp-block-a8c-blog-posts .cat-links a,
+.wp-block-a8c-blog-posts .more-link,
+.wp-block-a8c-blog-posts .entry-meta a {
+	text-decoration: none;
+}
+
+.wp-block-a8c-blog-posts .cat-links a:hover,
+.wp-block-a8c-blog-posts .more-link:hover,
+.wp-block-a8c-blog-posts .entry-meta a:hover {
+	text-decoration: underline;
+}
+
+.wp-block-a8c-blog-posts .entry-title a:hover,
+.wp-block-a8c-blog-posts .more-link:hover {
+	color: inherit;
+}
+
+.wp-block-a8c-blog-posts + .button {
+	font-size: 0.83333em;
+}

+ 14 - 0
mayland/style-rtl.css

@@ -4124,6 +4124,20 @@ strong {
 	}
 	}
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles article .cat-links a,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a,
+.wp-block-newspack-blocks-homepage-articles article .more-link,
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a {
+	text-decoration: none;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
+.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover {
+	text-decoration: underline;
+}
+
 /**
 /**
  * Widgets
  * Widgets
  */
  */

+ 14 - 0
mayland/style.css

@@ -4153,6 +4153,20 @@ strong {
 	}
 	}
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles article .cat-links a,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a,
+.wp-block-newspack-blocks-homepage-articles article .more-link,
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a {
+	text-decoration: none;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
+.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover {
+	text-decoration: underline;
+}
+
 /**
 /**
  * Widgets
  * Widgets
  */
  */