From 2e6a673bee4d110b030a60eb87878f53fe46ec56 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Thu, 30 May 2024 14:12:16 +0500 Subject: [PATCH] define caption styles --- theme.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/theme.json b/theme.json index 5c2f331..8189442 100644 --- a/theme.json +++ b/theme.json @@ -542,6 +542,21 @@ } } }, + "css": "figcaption.wp-element-caption {\n display: inline-block;\n margin: 0;\n padding: 8px 12px;\n}", + "elements": { + "caption": { + "color": { + "background": "var(--wp--preset--color--black)", + "text": "var(--wp--preset--color--white)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--commit-mono)", + "fontSize": "12px", + "fontWeight": "525", + "lineHeight": "1.45" + } + } + }, "typography": { "fontFamily": "sans-serif" }