From: Jérémy Fabre Date: Tue, 7 Feb 2017 10:50:30 +0000 (+0100) Subject: Footer integration X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a42b0872e53f944b36d99fa6377280c6e7e4368d;p=mezzo.git Footer integration --- diff --git a/app/static/src/sass/global/_helpers.scss b/app/static/src/sass/global/_helpers.scss index 6f5d3f53..6cb1f951 100755 --- a/app/static/src/sass/global/_helpers.scss +++ b/app/static/src/sass/global/_helpers.scss @@ -216,7 +216,7 @@ color: white; } .fcb { - color: $color-black; + color: $color-background; } .unstyled-list { list-style-type: none; diff --git a/app/static/src/sass/layout/_footer.scss b/app/static/src/sass/layout/_footer.scss index a6432d10..41597241 100755 --- a/app/static/src/sass/layout/_footer.scss +++ b/app/static/src/sass/layout/_footer.scss @@ -47,7 +47,7 @@ $module: ".footer"; &__content { - @include padding(1 0); + @include padding(1 0 .5 0); @include font-size(s); @include typeface(sans-serif); @@ -57,7 +57,6 @@ $module: ".footer"; @include mq($until: xs) { @include padding(0); - background: $color-black; } } @@ -118,10 +117,38 @@ $module: ".footer"; } &__partner { + @include mq($until: lg) { + width: 80px; + } + @include mq($until: md) { + width: 80px; + } + @include mq($until: sm) { + width: 120px; + } @include mq($until: xs) { - width: 48%; + width: 80px; height: auto; } } + &__partner-separator { + @include typeface(sans-serif); + @include font-size(m); + font-weight: weight(regular); + display: inline-block; + @include margin(0 1); + position: relative; + top: -30px; + @include mq($until: xs) { + color: white; + } + } + + .section-title { + @include mq($until: xs) { + color: white; + } + } + } diff --git a/app/static/src/sass/modules/_all.scss b/app/static/src/sass/modules/_all.scss index 86322f36..7459a7b2 100755 --- a/app/static/src/sass/modules/_all.scss +++ b/app/static/src/sass/modules/_all.scss @@ -64,9 +64,12 @@ @import 'map-infowindow'; @import 'map-legend'; @import 'linked-organizations'; +@import 'newsletter'; + // Typography modules @import 'dashed'; @import 'dotted'; @import 'blockquote'; @import 'well'; @import 'flash'; +@import 'section-title'; diff --git a/app/static/src/sass/modules/_newsletter.scss b/app/static/src/sass/modules/_newsletter.scss new file mode 100644 index 00000000..7060c650 --- /dev/null +++ b/app/static/src/sass/modules/_newsletter.scss @@ -0,0 +1,49 @@ +$module: ".newsletter"; + +#{$module} { + + @include margin-bottom(2); + + @include mq($until: sm) { + + @include margin-top(2); + + } + + &__text { + + @include font-size(m); + @include typeface(sans-serif); + font-weight: weight(regular); + + } + + &__input { + + @include font-size(m); + @include typeface(sans-serif); + font-weight: weight(regular); + + width: 100%; + outline: 0; + background: transparent; + border: 0; + color: white; + border-bottom: 1px solid white; + + } + + &__button { + + color: white; + outline: 0; + background: transparent; + border: 0; + position: absolute; + top: 0px; + right: 7px; + @include font-size(l); + + } + +} diff --git a/app/static/src/sass/modules/_section-title.scss b/app/static/src/sass/modules/_section-title.scss new file mode 100644 index 00000000..96e7bab1 --- /dev/null +++ b/app/static/src/sass/modules/_section-title.scss @@ -0,0 +1,34 @@ +$module: ".section-title"; + +#{$module} { + + @include typeface(sans-serif); + @include font-size(m); + font-weight: weight(regular); + + text-align: center; + color: white; + + @include margin-bottom(2); + + &--uppercase { + text-transform: uppercase; + } + + &--underline { + text-decoration: underline; + } + + &--dark { + color: $color-background; + } + + &:before { + content: '_'; + display: block; + text-decoration: none; + @include font-size(m); + @include margin-bottom(.5); + } + +} diff --git a/app/templates/includes/footer.html b/app/templates/includes/footer.html index 4ca6e837..e8a1084d 100644 --- a/app/templates/includes/footer.html +++ b/app/templates/includes/footer.html @@ -5,19 +5,22 @@
-
+
{% with host_organization.images|get_type:"logo_footer" as images %} {% if images %} {% with images|first as img %} - + {% endwith %} {% endif %} {% endwith %} {% if linked_organization_footer %} +
+ Porté par +
{% include 'pages/page/includes/linked_organization_footer.html' %} {% endif %} @@ -29,7 +32,29 @@
- NEWSLETTER HERE +
@@ -37,17 +62,21 @@
-
+
{% page_menu "pages/menus/footer_vertical.html" %}
-
+
- {% for link in host_organization.links.all %} - - {% endfor %} +
@@ -70,7 +99,7 @@ Copyright {% endcomment %}
-
+
Copyright © {% current_year %} {{ host_organization.name }}. {% trans "All rights reserved" %}.
diff --git a/app/templates/pages/page/includes/linked_organization_footer.html b/app/templates/pages/page/includes/linked_organization_footer.html index 700ba317..60871a40 100644 --- a/app/templates/pages/page/includes/linked_organization_footer.html +++ b/app/templates/pages/page/includes/linked_organization_footer.html @@ -7,6 +7,9 @@ {% with img|first as img %} {% endwith %} + {% if not forloop.last %} + & + {% endif %} {% endif %} {% endwith %}