Merge pull request #1049 from sgmap/fix_1042_remove_footer
[fix #1042] keep footer only for the landing
This commit is contained in:
commit
d59ee75488
4 changed files with 14 additions and 5 deletions
|
@ -5,3 +5,5 @@ $default-padding: 2 * $default-spacer;
|
||||||
|
|
||||||
$footer-height: 267px;
|
$footer-height: 267px;
|
||||||
$footer-height-mobile: 531px;
|
$footer-height-mobile: 531px;
|
||||||
|
|
||||||
|
$small-footer-height: 2 * $default-padding;
|
||||||
|
|
|
@ -15,11 +15,15 @@ select {
|
||||||
|
|
||||||
.page-wrapper {
|
.page-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: $footer-height;
|
padding-bottom: $small-footer-height;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
&.with-footer {
|
||||||
padding-bottom: $footer-height-mobile;
|
padding-bottom: $footer-height;
|
||||||
|
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
padding-bottom: $footer-height-mobile;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
= stylesheet_link_tag "new_design/print", media: "print", "data-turbolinks-track": true
|
= stylesheet_link_tag "new_design/print", media: "print", "data-turbolinks-track": true
|
||||||
|
|
||||||
%body
|
%body
|
||||||
.page-wrapper
|
.page-wrapper{ class: content_for?(:display_footer) ? 'with-footer' : 'nil' }
|
||||||
= render partial: "layouts/support_navigator_banner"
|
= render partial: "layouts/support_navigator_banner"
|
||||||
= render partial: "layouts/ie_lt_10"
|
= render partial: "layouts/ie_lt_10"
|
||||||
#beta{ class:(Rails.env == "production" ? "" : "beta_staging") }
|
#beta{ class:(Rails.env == "production" ? "" : "beta_staging") }
|
||||||
|
@ -30,7 +30,8 @@
|
||||||
= render partial: "layouts/flash_messages"
|
= render partial: "layouts/flash_messages"
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
= render partial: "layouts/new_footer"
|
- if content_for?(:display_footer)
|
||||||
|
= render partial: "layouts/new_footer"
|
||||||
= render partial: "layouts/google_analytics"
|
= render partial: "layouts/google_analytics"
|
||||||
= render partial: "layouts/mailjet_newsletter"
|
= render partial: "layouts/mailjet_newsletter"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
- content_for(:display_footer, true)
|
||||||
|
|
||||||
.landing
|
.landing
|
||||||
.landing-panel.hero-panel
|
.landing-panel.hero-panel
|
||||||
.container
|
.container
|
||||||
|
|
Loading…
Reference in a new issue