From 482676c7f61135d35f8bb83ac6fdd0247c5a7208 Mon Sep 17 00:00:00 2001 From: Michael Heppler Date: Tue, 19 Feb 2019 15:20:46 -0500 Subject: [PATCH 1/2] Add some CSS to make the footer sticky to the bottom [ref #2747] --- src/main/webapp/resources/css/structure.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/resources/css/structure.css b/src/main/webapp/resources/css/structure.css index 3d95f5c15b6..1e9f299b67b 100644 --- a/src/main/webapp/resources/css/structure.css +++ b/src/main/webapp/resources/css/structure.css @@ -1,4 +1,13 @@ /*--------- BODY --------- */ +html { + /* Sticky footer */ + position:relative; + min-height:100%; +} +body { + /* /* Sticky footer Margin bottom by footer height */ + margin-bottom:160px; +} body.widget-view {margin-bottom:54px;} body .ui-widget {font-size: inherit;} .ui-widget-content a {color: #337AB7;} @@ -40,8 +49,8 @@ body .ui-widget {font-size: inherit;} #status-alert {margin-top:0; margin-bottom:0;} #status-alert div.alert {border:0; box-shadow:none;} -#footer {margin-top:3em; padding-bottom:4em; color:#808080;} -#footer.widget-view {position:fixed; left:0px; bottom:0px; margin:0; padding:4px 0 0 0; min-height:44px; width:100%; background:#fff;} +#footer {position:absolute; bottom:0; margin-top:3em; padding-bottom:100px; width:100%; height:60px; color:#808080;} +#footer.widget-view {position:fixed; left:0; bottom:0; margin:0; padding:4px 0 0 0; min-height:44px; background:#fff;} #footer .poweredbylogo {text-align:right;} #footer .poweredbylogo span {font-size:.85em;margin-right:.3em;} #footer .version {vertical-align:bottom;white-space:nowrap;} From 2c33802fb3ed91a2f376916b1e1332ee048ac5a2 Mon Sep 17 00:00:00 2001 From: Michael Heppler Date: Tue, 19 Feb 2019 15:38:20 -0500 Subject: [PATCH 2/2] Removed extra open comment tag [ref #2747] --- src/main/webapp/resources/css/structure.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/resources/css/structure.css b/src/main/webapp/resources/css/structure.css index 1e9f299b67b..7a0f8b05400 100644 --- a/src/main/webapp/resources/css/structure.css +++ b/src/main/webapp/resources/css/structure.css @@ -5,7 +5,7 @@ html { min-height:100%; } body { - /* /* Sticky footer Margin bottom by footer height */ + /* Sticky footer Margin bottom by footer height */ margin-bottom:160px; } body.widget-view {margin-bottom:54px;}