浏览代码

Luminance: Fix display of featured images (#8023)

The featured images in Luminance were completely misaligned due to
changes in how Gutenberg has changed the specifity of style rules.
Rather than the custom block-specific CSS for the core/featured-image
block taking priority, the default block library styles did.

The problem has been reported upstream
(https://github.com/WordPress/gutenberg/issues/64453) but in the
meantime, using the theme-wide custom CSS fixes the problem.
Dean Sas 11 月之前
父节点
当前提交
48a0cb2435
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      luminance/theme.json

+ 2 - 4
luminance/theme.json

@@ -507,9 +507,6 @@
 			"core/post-excerpt": {
 			"core/post-excerpt": {
 				"css": ".wp-block-post-excerpt .wp-block-post-excerpt__excerpt{line-height: inherit;}"
 				"css": ".wp-block-post-excerpt .wp-block-post-excerpt__excerpt{line-height: inherit;}"
 			},
 			},
-			"core/post-featured-image": {
-				"css": ".wp-block-post-featured-image img{vertical-align:top;width: auto;}"
-			},
 			"core/post-navigation-link": {
 			"core/post-navigation-link": {
 				"typography": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)",
 					"fontSize": "var(--wp--preset--font-size--small)",
@@ -794,7 +791,8 @@
 			"fontFamily": "var(--wp--preset--font-family--instrument-sans)",
 			"fontFamily": "var(--wp--preset--font-family--instrument-sans)",
 			"fontSize": "var(--wp--preset--font-size--medium)",
 			"fontSize": "var(--wp--preset--font-size--medium)",
 			"lineHeight": "1.388888889"
 			"lineHeight": "1.388888889"
-		}
+		},
+		"css": ".wp-block-post-featured-image img{vertical-align:top;width: auto;}"
 	},
 	},
 	"templateParts": [
 	"templateParts": [
 		{
 		{