From 2a89255038198c61270113da9ce9b4eabf3cb97e Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 8 Apr 2026 16:33:21 +0200 Subject: [PATCH] FEATURE Refining color prop drilling --- resources/css/blocks/chapter-section.css | 27 ++++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/resources/css/blocks/chapter-section.css b/resources/css/blocks/chapter-section.css index 62ce781..426756a 100644 --- a/resources/css/blocks/chapter-section.css +++ b/resources/css/blocks/chapter-section.css @@ -44,7 +44,7 @@ h4.wp-block-heading, h5.wp-block-heading, h6.wp-block-heading { - color: var(--chapter-section-text-color); + color: var(--advised-text-color); } &__innerblocks { @@ -115,6 +115,15 @@ } } + p, + h2, + h3, + h4, + h5, + h6 { + color: var(--advised-text-color); + } + &--bg-dark { .wp-block-carhop-blocks-cta { --cta-current-color: #fff; @@ -123,12 +132,16 @@ filter: brightness(41); } } - /* .wp-block-carhop-blocks-cta { - @apply !bg-red-400; - &:after { - filter: brightness(41); - } - } */ + --advised-text-color: #fff; + --content-box-text-color: #fff; + } + + &--bg-light { + --advised-text-color: #136f63; + --content-box-text-color: #136f63; + .wp-block-carhop-blocks-heading { + color: var(--advised-text-color); + } } &--backgrounded {