Skip to content

Commit 47c87e3

Browse files
Footer is now always visible at the bottom of the
page. Font has been changed to make it more readable
1 parent e7c92d7 commit 47c87e3

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

Wireframe/style.css

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ As well as useful links to learn more */
1717
https://scrimba.com/learn-css-variables-c026
1818
====== Design Palette ====== */
1919

20-
@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");
21-
2220
:root {
2321
--paper: oklch(7 0 0);
2422
--ink: color-mix(in oklab, var(--color) 5%, black);
25-
--font: 100%/1.5 "Permanent Marker", bold;
23+
--font: 100%/1.5 Sans-Serif, System-ui, bold;
2624
--space: clamp(6px, 6px + 2vw, 15px);
2725
--line: 1px solid;
2826
--container: 1280px;
@@ -39,10 +37,7 @@ body {
3937
background: var(--paper);
4038
color: var(--ink);
4139
font: var(--font);
42-
text-transform: uppercase;
43-
min-height: 100vh;
44-
display: flex;
45-
flex-direction: column;
40+
padding-bottom: calc(var(--space) * 4);
4641
}
4742

4843
a {
@@ -65,14 +60,17 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/
6560
main {
6661
max-width: var(--container);
6762
margin: 0 auto calc(var(--space) * 4) auto;
68-
flex: 1;
6963
}
7064

71-
footer {
65+
footer,
66+
footer hr {
7267
text-align: center;
7368
position: fixed;
7469
bottom: 0;
75-
width: 100%;
70+
width: 100vw;
71+
background: var(--paper);
72+
margin: 0;
73+
padding: 0;
7674
}
7775

7876
/* ====== Articles Grid Layout ====

0 commit comments

Comments
 (0)