From 3432357a456ddc7361505d297a632cd652076921 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 4 Sep 2019 07:38:31 +0000 Subject: [PATCH] Footer is not placed at the bottom on pages with little content (#30467). Patch by Bernhard Rohloff. git-svn-id: http://svn.redmine.org/redmine/trunk@18427 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/layouts/base.html.erb | 6 +++--- public/stylesheets/application.css | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 5c8be88e0..7572dff5d 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -112,14 +112,14 @@
+ - <%= call_hook :view_layouts_base_body_bottom %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 8804d2301..7a9c6497d 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1,3 +1,4 @@ +html, body { min-height: 100vh; } html {overflow-y:scroll;} body { font-family: Verdana, sans-serif; font-size: 12px; color:#333; margin: 0; padding: 0; min-width: 900px; } @@ -10,7 +11,9 @@ h4 {border-bottom: 1px solid #ccc; font-weight:normal;} pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;} /***** Layout *****/ +div[id^="wrapper"] { min-height: inherit; } #wrapper {background: white;overflow: hidden;} +#wrapper3 { display: flex; flex-direction: column; } #top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;} #top-menu ul {margin: 0; padding: 0;} @@ -80,7 +83,7 @@ pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;} #admin-menu ul {margin: 0; padding: 0;} #admin-menu li {margin: 0; padding: 0 0 6px 0; list-style-type:none;} -#main {display: flex; flex-direction: row-reverse;} +#main {flex-grow: 2; display: flex; flex-direction: row-reverse;} #sidebar{ flex-shrink: 0; width: 22%; padding-left: 20px; background: #EEEEEE; border-left: 1px solid #ddd} #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; } -- 2.39.5