diff --git a/src/pages/profile/profile.scss b/src/pages/profile/profile.scss index e1ffa77..70d3c36 100644 --- a/src/pages/profile/profile.scss +++ b/src/pages/profile/profile.scss @@ -1,17 +1,22 @@ .container { - margin: 55px 10px 10px; + min-height: 100%; + position: relative; + box-sizing: border-box; + + padding: 55px 10px 45px; // 45px for footer } .footer { - text-align: center; - position: fixed; - bottom: 10px; width: 100%; + position: absolute; + bottom: 10px; left: 0; + + text-align: center; } @media (max-width: 720px) { .container { - margin-top: 20px; + padding-top: 20px; } } diff --git a/src/pages/root/root.scss b/src/pages/root/root.scss index 0255f9e..6ccef14 100644 --- a/src/pages/root/root.scss +++ b/src/pages/root/root.scss @@ -49,6 +49,10 @@ $userBarHeight: 50px; // place for header min-height: 100%; + // hack to enable min-height/height 100% in parent elements + // http://stackoverflow.com/a/21836870/2039203 + // http://stackoverflow.com/questions/2341821/height100-vs-min-height100 + height: 0; box-sizing: border-box; padding-top: $userBarHeight; }