From af0833e219ed21d318afc7e0c46329ac4a9287a1 Mon Sep 17 00:00:00 2001 From: Jacob Korf Date: Tue, 8 Oct 2024 09:03:39 -0600 Subject: [PATCH] Mega menu changes for desc --- css/block/ucb-mega-menu.css | 21 +++++++------------ ...ield--field_mega_menu_links_desc.html.twig | 2 +- ...ield--field_mega_menu_text_above.html.twig | 2 +- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/css/block/ucb-mega-menu.css b/css/block/ucb-mega-menu.css index 59864b78..fd3a22e3 100644 --- a/css/block/ucb-mega-menu.css +++ b/css/block/ucb-mega-menu.css @@ -39,35 +39,30 @@ cursor: pointer; } -.ucb-mega-menu-column-3 div { +.ucb-mega-menu-column-3 .ucb-mega-menu-column { min-width: 33%; width: 33%; max-width: 33%; } -.ucb-mega-menu-column-4 div { +.ucb-mega-menu-column-4 .ucb-mega-menu-column { min-width: 25%; width: 25%; max-width: 25%; } -.ucb-mega-menu-column-5 div { +.ucb-mega-menu-column-5 .ucb-mega-menu-column { min-width: 20%; width: 20%; max-width: 20%; } -.ucb-mega-menu-column-6 div { +.ucb-mega-menu-column-6 .ucb-mega-menu-column { min-width: 16%; width: 16%; max-width: 16%; } -.ucb-mega-menu-column-wrapper .ucb-mega-menu-text-above div { - min-width: 100%; - width: 100%; - max-width: 100%; -} .ucb-mega-menu-text-above { padding-right: 10px; @@ -119,10 +114,10 @@ display: flex; flex-direction: column; } - .ucb-mega-menu-column-3 div, - .ucb-mega-menu-column-4 div, - .ucb-mega-menu-column-5 div, - .ucb-mega-menu-column-6 div { + .ucb-mega-menu-column-3 .ucb-mega-menu-column, + .ucb-mega-menu-column-4 .ucb-mega-menu-column, + .ucb-mega-menu-column-5 .ucb-mega-menu-column, + .ucb-mega-menu-column-6 .ucb-mega-menu-column { min-width: 100%; width: 100%; max-width: 100%; diff --git a/templates/field/field--field_mega_menu_links_desc.html.twig b/templates/field/field--field_mega_menu_links_desc.html.twig index 40f526e1..a59758b4 100644 --- a/templates/field/field--field_mega_menu_links_desc.html.twig +++ b/templates/field/field--field_mega_menu_links_desc.html.twig @@ -1,3 +1,3 @@ {% for item in items %} - {{ item.content}} + {{ item.content|render|striptags}} {% endfor %} \ No newline at end of file diff --git a/templates/field/field--field_mega_menu_text_above.html.twig b/templates/field/field--field_mega_menu_text_above.html.twig index 94db3df7..99f602f4 100644 --- a/templates/field/field--field_mega_menu_text_above.html.twig +++ b/templates/field/field--field_mega_menu_text_above.html.twig @@ -1,4 +1,4 @@ -
+
{% for item in items %} {{ item.content}} {% endfor %}