From 06a640c20d3a4e42c93304c9c51e17dac7599473 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Tue, 5 Mar 2024 15:10:51 -0800 Subject: [PATCH] Inject CSS to preserve footer menu on small screens --- ....preserve_footer_menu_on_small_screens.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/asset_injector.css.preserve_footer_menu_on_small_screens.yml diff --git a/config/asset_injector.css.preserve_footer_menu_on_small_screens.yml b/config/asset_injector.css.preserve_footer_menu_on_small_screens.yml new file mode 100644 index 0000000..e256679 --- /dev/null +++ b/config/asset_injector.css.preserve_footer_menu_on_small_screens.yml @@ -0,0 +1,23 @@ +uuid: b70d3331-6b4c-413a-8d0d-2fa0ace602f2 +langcode: en +status: true +dependencies: + module: + - block_visibility_groups +id: preserve_footer_menu_on_small_screens +label: 'Preserve footer menu on small screens' +code: |- + @media screen and (max-width: 768px) { + .is-hidden-mobile { + display: block !important; + } + } +media: all +preprocess: true +conditions: + condition_group: + id: condition_group + negate: false + block_visibility_group: '' +contexts: { } +conditions_require_all: true