Browse Source

Style text color of meta for latest posts. (#4175)

Jeff Ong 4 năm trước cách đây
mục cha
commit
c51e0edaab

+ 5 - 0
blockbase/assets/ponyfill.css

@@ -331,6 +331,11 @@ input[type=checkbox] + label {
 	text-align: center;
 }
 
+.wp-block-latest-posts .wp-block-latest-posts__post-date,
+.wp-block-latest-posts .wp-block-latest-posts__post-author {
+	color: var(--wp--custom--latest-posts--meta--color--text);
+}
+
 ul,
 ol {
 	padding-left: var(--wp--custom--list--spacing--padding--left);

+ 4 - 0
blockbase/sass/blocks/_latest-posts.scss

@@ -0,0 +1,4 @@
+.wp-block-latest-posts .wp-block-latest-posts__post-date,
+.wp-block-latest-posts .wp-block-latest-posts__post-author {
+	color: var(--wp--custom--latest-posts--meta--color--text);
+}

+ 1 - 0
blockbase/sass/ponyfill.scss

@@ -14,6 +14,7 @@
 @import "blocks/gallery";
 @import "blocks/html";
 @import "blocks/image";
+@import "blocks/latest-posts";
 @import "blocks/list";
 @import "blocks/navigation";
 @import "blocks/paragraph";

+ 7 - 0
blockbase/theme.json

@@ -191,6 +191,13 @@
 					"lineHeight": 1.125
 				}
 			},
+			"latest-posts": {
+				"meta": {
+					"color": {
+						"text": "var(--wp--custom--color--primary)"
+					}
+				}
+			},
 			"list": {
 				"spacing": {
 					"padding": {

+ 7 - 0
mayland-blocks/theme.json

@@ -199,6 +199,13 @@
 					"lineHeight": 1.125
 				}
 			},
+			"latest-posts": {
+				"meta": {
+					"color": {
+						"text": "var(--wp--custom--color--primary)"
+					}
+				}
+			},
 			"list": {
 				"spacing": {
 					"padding": {

+ 7 - 0
quadrat/theme.json

@@ -235,6 +235,13 @@
 					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 			},
+			"latest-posts": {
+				"meta": {
+					"color": {
+						"text": "var(--wp--custom--color--primary)"
+					}
+				}
+			},
 			"list": {
 				"spacing": {
 					"padding": {

+ 7 - 0
seedlet-blocks/child-theme.json

@@ -109,6 +109,13 @@
 					"fontFamily": "var(--wp--preset--font-family--playfair-display)"
 				}	
 			},
+			"latest-posts": {
+				"meta": {
+					"color": {
+						"text": "var(--wp--custom--color--foreground)"
+					}
+				}
+			},
 			"margin": {
 				"horizontal": "25px",
 				"vertical": "30px"

+ 7 - 0
seedlet-blocks/theme.json

@@ -232,6 +232,13 @@
 					"lineHeight": 1.125
 				}
 			},
+			"latest-posts": {
+				"meta": {
+					"color": {
+						"text": "var(--wp--custom--color--foreground)"
+					}
+				}
+			},
 			"list": {
 				"spacing": {
 					"padding": {