From: Jérémy Fabre Date: Wed, 27 Jul 2016 14:02:48 +0000 (+0200) Subject: Add new footer menus (vertical and horizontal) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=aaf38eb02812e47e9402eddb48d2948e3b8ea0a9;p=mezzo.git Add new footer menus (vertical and horizontal) --- diff --git a/app/settings.py b/app/settings.py index 3e5c2f69..f491c1c7 100644 --- a/app/settings.py +++ b/app/settings.py @@ -44,8 +44,8 @@ from django.utils.translation import ugettext_lazy as _ PAGE_MENU_TEMPLATES = ( (1, _("Action"), "pages/menus/action.html"), (2, _("Departement"), "pages/menus/header.html"), - (3, _("Footer vertical"), "pages/menus/footer.html"), - (4, _("Footer horizontal"), "pages/menus/footer.html"), + (3, _("Footer vertical"), "pages/menus/footer_vertical.html"), + (4, _("Footer horizontal"), "pages/menus/footer_horizontal.html"), ) # A sequence of fields that will be injected into Mezzanine's (or any diff --git a/app/static/src/sass/modules/navs/_nav-footer.scss b/app/static/src/sass/modules/navs/_nav-footer.scss index ee1cb03e..5b9d0e14 100644 --- a/app/static/src/sass/modules/navs/_nav-footer.scss +++ b/app/static/src/sass/modules/navs/_nav-footer.scss @@ -6,11 +6,28 @@ $module: ".nav-footer"; margin: 0; padding: 0; + &--horizontal { + + #{$module}__item { + + display: inline-block; + @include margin-right(2); + + } + + #{$module}__item-link { + + @include font-size(s); + + } + + } + &__item-link { @include font-size(m); @include typeface(sans-serif); font-weight: weight(regular); color: white; } - + } diff --git a/app/templates/base.html b/app/templates/base.html index b8687dca..060cea21 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -197,7 +197,7 @@
- {% page_menu "pages/menus/footer.html" %} + {% page_menu "pages/menus/footer_vertical.html" %}
@@ -238,6 +238,16 @@ +
+ +
+ + {% page_menu "pages/menus/footer_horizontal.html" %} + +
+ +
+ diff --git a/app/templates/pages/menus/footer.html b/app/templates/pages/menus/footer.html deleted file mode 100644 index 44ad4060..00000000 --- a/app/templates/pages/menus/footer.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n pages_tags staticfiles %} -{% get_language_info_list for LANGUAGES as languages %} - -{% spaceless %} -{% if page_branch_in_menu %} - {% for page in page_branch %} - {% if page.is_primary %} - {% if forloop.first %} - - {% endif %} - {% endif %} - {% endfor %} -{% endif %} -{% endspaceless %} diff --git a/app/templates/pages/menus/footer_horizontal.html b/app/templates/pages/menus/footer_horizontal.html new file mode 100644 index 00000000..b80c63dd --- /dev/null +++ b/app/templates/pages/menus/footer_horizontal.html @@ -0,0 +1,25 @@ +{% load i18n pages_tags staticfiles %} +{% get_language_info_list for LANGUAGES as languages %} + +{% spaceless %} +{% if page_branch_in_menu %} + {% for page in page_branch %} + {% if page.is_primary %} + {% if forloop.first %} + + {% endif %} + {% endif %} + {% endfor %} +{% endif %} +{% endspaceless %} diff --git a/app/templates/pages/menus/footer_vertical.html b/app/templates/pages/menus/footer_vertical.html new file mode 100644 index 00000000..2f58e8ff --- /dev/null +++ b/app/templates/pages/menus/footer_vertical.html @@ -0,0 +1,25 @@ +{% load i18n pages_tags staticfiles %} +{% get_language_info_list for LANGUAGES as languages %} + +{% spaceless %} +{% if page_branch_in_menu %} + {% for page in page_branch %} + {% if page.is_primary %} + {% if forloop.first %} + + {% endif %} + {% endif %} + {% endfor %} +{% endif %} +{% endspaceless %}