Skip to content

Commit dbd8d32

Browse files
committed
Fix height
1 parent b0e190b commit dbd8d32

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/styles/global.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
:root {
88
--width: 720px;
9-
--min-height: 100vh;
9+
--min-height: 100dvh;
1010
--font-main: Verdana, sans-serif;
1111
--font-secondary: Verdana, sans-serif;
1212
--font-scale: 1em;
@@ -28,6 +28,7 @@ body {
2828
font-size: var(--font-scale);
2929
margin: auto;
3030
padding: 20px;
31+
box-sizing: border-box;
3132
max-width: var(--width);
3233
text-align: left;
3334
word-wrap: break-word;
@@ -37,6 +38,12 @@ body {
3738
min-height: var(--min-height);
3839
background: var(--background-color);
3940
transition: color 0.5s ease;
41+
display: flex;
42+
flex-direction: column;
43+
}
44+
45+
main {
46+
flex: 1;
4047
}
4148

4249
h1,

0 commit comments

Comments
 (0)