Skip to content

Commit 2ad03c9

Browse files
committed
Fix footer layout, add additional breakpoint
Signed-off-by: Kevin Suttle <kevin@suttle.email>
1 parent 5c25b1e commit 2ad03c9

File tree

2 files changed

+42
-40
lines changed

2 files changed

+42
-40
lines changed

_sass/_layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ dd {
5757
margin: 0 auto;
5858
padding: 0 .5em 1em;
5959
width: 90%;
60+
display: flex;
6061
}
6162

6263
.site-header {

_sass/_reflow.scss

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,50 @@
1-
@media screen and (min-width: 32.941176471em) {
2-
body {
3-
font-size: 100%;
4-
margin-top: .5em;
5-
}
6-
.site-header {
7-
margin-left: 0;
8-
}
9-
.home-link {
10-
padding: .5em;
11-
}
12-
.page-wrapper, .footer-wrapper {
13-
max-width: 35em;
14-
}
1+
@media screen and (min-width: 28em) {
2+
.page-wrapper,
3+
.footer-wrapper {
4+
max-width: 25em;
5+
}
156
}
167

8+
@media screen and (min-width: 32.941176471em) {
9+
body {
10+
font-size: 100%;
11+
margin-top: 0.5em;
12+
}
13+
.site-header {
14+
margin-left: 0;
15+
}
16+
.home-link {
17+
padding: 0.5em;
18+
}
19+
.page-wrapper,
20+
.footer-wrapper {
21+
max-width: 35em;
22+
}
23+
}
1724

1825
@media all and (min-width: 41.875em) {
19-
body {
20-
font-size: 110%;
21-
}
22-
23-
.page-wrapper, .footer-wrapper {
24-
max-width: 37.5em;
25-
}
26-
.footer-module {
26+
body {
27+
font-size: 110%;
28+
}
2729

28-
&:first-child {
29-
width: 76%;
30-
padding-right: 8%;
31-
float: left;
32-
}
33-
&:last-child {
34-
float: right;
35-
}
36-
}
37-
.home-link {
38-
width: auto;
39-
}
30+
.page-wrapper,
31+
.footer-wrapper {
32+
max-width: 37.5em;
33+
}
34+
.footer-module {
35+
padding-right: 10%;
36+
}
37+
.home-link {
38+
width: auto;
39+
}
4040
}
4141

4242
@media screen and (min-width: 75em) {
43-
body {
44-
font-size: 125%;
45-
}
46-
.page-wrapper, .footer-wrapper {
47-
max-width: 30em;
48-
}
43+
body {
44+
font-size: 125%;
45+
}
46+
.page-wrapper,
47+
.footer-wrapper {
48+
max-width: 30em;
49+
}
4950
}

0 commit comments

Comments
 (0)