From e77c886e3fbf64f2e61e5841b235f7ff211f0189 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sat, 3 Jul 2021 17:54:16 +0200 Subject: [PATCH] banner and vertical-menu integration --- .../public/modules/bootstrap/_custom.scss | 15 ++- .../views/layoutWithVerticalMenu.html.twig | 2 +- .../views/AccompanyingCourse/banner.html.twig | 49 ++++---- .../views/AccompanyingCourse/menu.html.twig | 12 +- .../views/Household/banner.html.twig | 112 +++++++++--------- .../Resources/views/Household/menu.html.twig | 11 +- .../Resources/views/menu.html.twig | 23 +--- 7 files changed, 118 insertions(+), 106 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss index d4c685a60..7646e3a0e 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss @@ -121,7 +121,7 @@ header { div.navbar-collapse { float: right; } - @media (max-width: 768px) { + @media (max-width: 767px) { & { position: relative; } @@ -190,6 +190,19 @@ div.banner { } } +div.vertical-menu { + border-radius: 0; + margin-top: 0.5rem; + a.list-group-item { + background-color: $info; + border: 0; + margin-bottom: 0.25rem; + &:hover { + background-color: shade-color($info, 5%) + } + } +} + footer.footer { background: $dark; padding-top: 10px; diff --git a/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig b/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig index fca3723aa..1a7b97e24 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig @@ -54,7 +54,7 @@ {% block layout_wvm_content %} {% endblock %} -
+
{% block vertical_menu_content %} {% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig index 95a246a8c..2aca13376 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig @@ -1,30 +1,35 @@