From 350d75ed69b63e56274a009c2b76e92d42e21fce Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Tue, 23 Jan 2024 12:32:23 -0800 Subject: [PATCH] Inject css to add shadow behind whiter text in hero images --- config/asset_injector.css.hero_body.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config/asset_injector.css.hero_body.yml diff --git a/config/asset_injector.css.hero_body.yml b/config/asset_injector.css.hero_body.yml new file mode 100644 index 0000000..e5fc27e --- /dev/null +++ b/config/asset_injector.css.hero_body.yml @@ -0,0 +1,22 @@ +uuid: 882955ac-8ef5-465a-b984-686e11a30368 +langcode: en +status: true +dependencies: + module: + - block_visibility_groups +id: hero_body +label: 'Hero body' +code: |- + .has-background-image .hero-body .content { + background-color: rgba(0, 0, 0, 0.5); + padding: 0.2em; + } +media: all +preprocess: true +conditions: + condition_group: + id: condition_group + negate: false + block_visibility_group: '' +contexts: { } +conditions_require_all: true