From 29bd69bac3a58900e6a488ea925cac0e502cc30d Mon Sep 17 00:00:00 2001 From: Lucilio Correia Date: Sun, 10 Nov 2024 19:26:23 -0300 Subject: [PATCH] add: pills class for pill formatted box --- theme.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/theme.json b/theme.json index de03329..c49b11a 100644 --- a/theme.json +++ b/theme.json @@ -212,7 +212,16 @@ "css": ".news-list & {height: 100%; display: flex; flex-direction: column; justify-content: space-between;}" }, "core/post-terms": { - "css": "&.news-suite {font-size: var(--wp--preset--font-size--small); padding: 0.1em 0.2em; border-radius: 0.2em; width: fit-content; margin-left: 0 !important; margin-right: 0 !important;} &.news-list.suite-left {align-self: left;} &.news-list.suite-right {align-self: rignt;} &.news-list.suite-center {align-self: center;} " + "css": "&.news-suite {font-size: var(--wp--preset--font-size--small); width: fit-content; margin-left: 0 !important; margin-right: 0 !important;} &.news-list.suite-left {align-self: left;} &.news-list.suite-right {align-self: rignt;} &.news-list.suite-center {align-self: center;} ", + "elements": { + "link": { + "color": { + "background": "var(--wp--preset--color--highlight)", + "text": "var(--wp--preset--color--base)" + }, + "css": ".pills & {display: inline-block; padding: 0.1em 0.2em; border-radius: 0.2em; margin: 0.1em;}" + } + } }, "core/post-title": { "css": "&.news-heading {margin-top: 0.1em; text-shadow: 0 0 0.25em #000000;}"