fix: validate CHRNX editorial fallbacks

This commit is contained in:
chrnx committed 2026-08-11 15:37:25 -05:00
1 parent 89dcc53e02
commit 52f08a1efd
8 files changed
+232 -17

No files matched your search

+1
View File
@@ -13,5 +13,6 @@
"headingLevel": { "type": "integer", "default": 2, "enum": [2, 3, 4, 5, 6] }
},
"supports": { "html": false, "align": ["wide", "full"] },
"style": "file:./style.css",
"render": "file:./render.php"
}
+15
View File
@@ -0,0 +1,15 @@
.chrnx-related-card__image,
.chrnx-related-card__fallback {
aspect-ratio: 3 / 2;
display: block;
object-fit: cover;
width: 100%;
}
.chrnx-related-card__fallback {
background-color: var(--wp--preset--color--panel);
background-image:
linear-gradient(30deg, transparent 35%, color-mix(in srgb, var(--wp--preset--color--green) 65%, transparent) 36% 40%, transparent 41%),
linear-gradient(135deg, var(--wp--preset--color--violet), var(--wp--preset--color--night));
min-height: 10rem;
}