From 65f42cec88197b8c4749a2650cc66a0ec1d3662c Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Tue, 23 Jan 2024 11:59:39 -0800 Subject: [PATCH 1/2] Enable asset injector --- config/core.extension.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/core.extension.yml b/config/core.extension.yml index 6a41665..8916c8e 100644 --- a/config/core.extension.yml +++ b/config/core.extension.yml @@ -5,6 +5,7 @@ module: admin_toolbar_links_access_filter: 0 admin_toolbar_search: 0 admin_toolbar_tools: 0 + asset_injector: 0 automated_cron: 0 automated_crop: 0 autosave_form: 0 From 350d75ed69b63e56274a009c2b76e92d42e21fce Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Tue, 23 Jan 2024 12:32:23 -0800 Subject: [PATCH 2/2] 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