Remove some footer voodoo to simplify things
This commit is contained in:
parent
cbdde36873
commit
03559eec0b
4 changed files with 1 additions and 21 deletions
|
@ -3,11 +3,6 @@ $page-width: 1040px;
|
||||||
$default-spacer: 8px;
|
$default-spacer: 8px;
|
||||||
$default-padding: 2 * $default-spacer;
|
$default-padding: 2 * $default-spacer;
|
||||||
|
|
||||||
$footer-height: 267px;
|
|
||||||
$footer-height-mobile: 531px;
|
|
||||||
|
|
||||||
$small-footer-height: 2 * $default-padding;
|
|
||||||
|
|
||||||
// layouts
|
// layouts
|
||||||
$two-columns-padding: 60px;
|
$two-columns-padding: 60px;
|
||||||
$two-columns-breakpoint: $page-width + (2 * $two-columns-padding);
|
$two-columns-breakpoint: $page-width + (2 * $two-columns-padding);
|
||||||
|
|
|
@ -15,16 +15,7 @@ select {
|
||||||
|
|
||||||
.page-wrapper {
|
.page-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: $small-footer-height;
|
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
||||||
&.with-footer {
|
|
||||||
padding-bottom: $footer-height;
|
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
|
||||||
padding-bottom: $footer-height-mobile;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|
|
@ -7,14 +7,8 @@ footer {
|
||||||
@include vertical-padding(72px);
|
@include vertical-padding(72px);
|
||||||
background-color: $light-grey;
|
background-color: $light-grey;
|
||||||
border-top: 1px solid $border-grey;
|
border-top: 1px solid $border-grey;
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: $footer-height;
|
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
|
||||||
height: $footer-height-mobile;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-columns {
|
.footer-columns {
|
||||||
|
|
|
@ -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{ class: content_for?(:display_footer) ? 'with-footer' : 'nil' }
|
.page-wrapper
|
||||||
= render partial: "layouts/support_navigator_banner"
|
= render partial: "layouts/support_navigator_banner"
|
||||||
= render partial: "layouts/ie_lt_10"
|
= render partial: "layouts/ie_lt_10"
|
||||||
- if Rails.env == "staging"
|
- if Rails.env == "staging"
|
||||||
|
|
Loading…
Reference in a new issue