Skip to content

Commit 034e02b

Browse files
authored
Merge pull request #294 from capital-G/vertical-height
Fix vertical height layout
2 parents 021d473 + d92c3df commit 034e02b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

assets/css/main.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ html[data-theme="dark"] {
3030
}
3131
}
3232

33+
html {
34+
min-height: 100vh;
35+
}
36+
3337
body {
3438
font-family: $font-main;
3539
line-height: 1.5;
3640
font-size: 20px;
41+
min-height: 100vh;
42+
display: flex;
3743
}
3844
.prose {
3945
max-width: 54ch;
@@ -63,7 +69,9 @@ h1, h2, h3, h4, h5 {
6369
#main {
6470
display: flex;
6571
flex-direction: column;
66-
min-height: 100vh;
72+
flex-grow: 1;
73+
align-items: stretch;
74+
max-width: 100%;
6775
footer {
6876
margin-top: auto;
6977
p {

0 commit comments

Comments
 (0)