Skip to content

Commit

Permalink
style: Fix footer pushing total min-height to over 100vh
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkilpatrick committed Nov 24, 2023
1 parent f3c4d9e commit 7121364
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Header from "../components/Header.astro";
import PageLayout from "../layouts/PageLayout.astro";
---

Expand Down Expand Up @@ -60,14 +58,14 @@ import PageLayout from "../layouts/PageLayout.astro";

.main {
font-family: "Inter", sans-serif;
min-height: 100vh;
// min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
flex: 0;
padding: 0;
display: flex;
flex-direction: column;
// display: flex;
// flex-direction: column;
justify-content: center;
width: 100%;
flex-grow: 1;
Expand Down
3 changes: 3 additions & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ body {
padding: 0 1.5rem;
width: 100%;
flex-grow: 1;
flex-grow: 1;
display: flex;
flex-direction: column;
}

// Taken from https://webaim.org/techniques/css/invisiblecontent
Expand Down

0 comments on commit 7121364

Please sign in to comment.