Skip to content

Commit

Permalink
ENGCOM-2878: [Forwardport] Adjust page-main container height for stic…
Browse files Browse the repository at this point in the history
…ky footer; fixes #15118 #17809
  • Loading branch information
Stanislav Idolov authored Aug 29, 2018
2 parents 82a45a1 + 214a142 commit dbef1ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@
.lib-css(background-color, @page__background-color);
}

.page-wrapper {
.lib-vendor-prefix-display(flex);
.lib-vendor-prefix-flex-direction(column);
min-height: 100vh; // Stretch content area for sticky footer
}

.page-main {
.lib-vendor-prefix-flex-grow(1);
}

//
// Header
// ---------------------------------------------
Expand Down Expand Up @@ -279,17 +289,7 @@
// _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {

html,
body {
height: 100%; // Stretch screen area for sticky footer
}

.page-wrapper {
.lib-vendor-prefix-display(flex);
.lib-vendor-prefix-flex-direction(column);
min-height: 100%; // Stretch content area for sticky footer

> .breadcrumbs,
> .top-container,
> .widget {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
.lib-css(background-color, @page__background-color);
}

.page-wrapper {
.lib-vendor-prefix-display(flex);
.lib-vendor-prefix-flex-direction(column);
min-height: 100vh; // Stretch content area for sticky footer
}

.page-main {
.lib-vendor-prefix-flex-grow(1);
}

//
// Header
// ---------------------------------------------
Expand Down Expand Up @@ -411,12 +421,6 @@
}
}
}
.page-footer,
.copyright {
bottom: 0;
position: absolute;
width: 100%;
}
}

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
Expand Down Expand Up @@ -614,10 +618,7 @@
}

.page-wrapper {
.lib-vendor-prefix-display(flex);
.lib-vendor-prefix-flex-direction(column);
margin: 0;
min-height: 100%; // Stretch content area for sticky footer
position: relative;
transition: margin .3s ease-out 0s;

Expand Down

0 comments on commit dbef1ae

Please sign in to comment.