Merge pull request #1049 from sgmap/fix_1042_remove_footer

[fix #1042] keep footer only for the landing
This commit is contained in:
LeSim 2017-12-07 16:37:13 +01:00 committed by GitHub
commit d59ee75488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View file

@ -5,3 +5,5 @@ $default-padding: 2 * $default-spacer;
$footer-height: 267px;
$footer-height-mobile: 531px;
$small-footer-height: 2 * $default-padding;

View file

@ -15,11 +15,15 @@ select {
.page-wrapper {
position: relative;
padding-bottom: $footer-height;
padding-bottom: $small-footer-height;
min-height: 100%;
@media (max-width: 1000px) {
padding-bottom: $footer-height-mobile;
&.with-footer {
padding-bottom: $footer-height;
@media (max-width: 1000px) {
padding-bottom: $footer-height-mobile;
}
}
}

View file

@ -17,7 +17,7 @@
= stylesheet_link_tag "new_design/print", media: "print", "data-turbolinks-track": true
%body
.page-wrapper
.page-wrapper{ class: content_for?(:display_footer) ? 'with-footer' : 'nil' }
= render partial: "layouts/support_navigator_banner"
= render partial: "layouts/ie_lt_10"
#beta{ class:(Rails.env == "production" ? "" : "beta_staging") }
@ -30,7 +30,8 @@
= render partial: "layouts/flash_messages"
= yield
= render partial: "layouts/new_footer"
- if content_for?(:display_footer)
= render partial: "layouts/new_footer"
= render partial: "layouts/google_analytics"
= render partial: "layouts/mailjet_newsletter"

View file

@ -1,3 +1,5 @@
- content_for(:display_footer, true)
.landing
.landing-panel.hero-panel
.container