From 6b6883bb201474080e5484e635ca7a8ae5761617 Mon Sep 17 00:00:00 2001 From: Jetsparrow Date: Wed, 18 May 2022 12:21:44 +0300 Subject: [PATCH] footer fix, css refactor --- JetHerald/Views/Shared/_Layout.cshtml | 8 +++-- JetHerald/wwwroot/css/global.css | 44 +++++++++++++++++++-------- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/JetHerald/Views/Shared/_Layout.cshtml b/JetHerald/Views/Shared/_Layout.cshtml index fc1896f..7973478 100644 --- a/JetHerald/Views/Shared/_Layout.cshtml +++ b/JetHerald/Views/Shared/_Layout.cshtml @@ -3,7 +3,6 @@ - JetHerald @RenderSection("Stylesheets", required: false) @@ -39,11 +38,14 @@ -
- @RenderBody() +
+
+ @RenderBody() +
diff --git a/JetHerald/wwwroot/css/global.css b/JetHerald/wwwroot/css/global.css index 6540fd7..985f084 100644 --- a/JetHerald/wwwroot/css/global.css +++ b/JetHerald/wwwroot/css/global.css @@ -1,4 +1,10 @@ +html, body { + height: 100%; +} + body { + display: flex; + flex-flow: column; line-height: 1.6; font-size: 16px; font-family: sans-serif; @@ -7,6 +13,32 @@ body { background-color: #fafaff; } + +header { + background-color: #059; + padding: 10px 0px 10px 0px; + font-size: 18px; + width: 100%; + font-family: tahoma, sans-serif; +} + +.page-mid { + flex: 1 0 auto; +} + +main { + margin: auto; + margin-top: 20px; + max-width: 768px; +} + +footer { + flex-shrink: 0; +} + + + + h1, h2, h3, @@ -19,13 +51,6 @@ h6 { font-family: tahoma, sans-serif; } -header { - background-color: #059; - padding: 10px 0px 10px 0px; - font-size: 18px; - width: 100%; - font-family: tahoma, sans-serif; -} nav { display: inline-block; @@ -56,11 +81,6 @@ span.assigneetext { color: black; } -div.page-main { - max-width: 750px; - margin: auto; - margin-top: 20px; -} .topics-list { padding-left: 0;