Skip to content

Commit 18f9592

Browse files
committed
Make footer navigation responsive when there are more than two links
1 parent 06bd3ab commit 18f9592

File tree

2 files changed

+61
-7
lines changed

2 files changed

+61
-7
lines changed

_includes/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@
4343
{% for page in site.pages %}
4444
<a href="{{ page.url | relative_url }}" target="_self">{{ page.title }}</a>
4545
{% endfor %}
46+
{% if site.presskit_download_link %}
47+
<a href="{{ site.presskit_download_link }}">Press Kit</a>
48+
{% endif %}
4649
</div>
4750
</footer>

_sass/layout.scss

Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ header {
147147
width: 100%;
148148
align-items: center;
149149
justify-content: flex-end;
150-
150+
151151
margin-left: 15px;
152152
height: 115px;
153153

@@ -551,6 +551,41 @@ nav > ul li a:active {
551551
padding-left: 15px;
552552
}
553553

554+
}
555+
556+
@media only screen and (max-width: 375px) {
557+
558+
.features {
559+
flex-grow: 1;
560+
flex-direction: row;
561+
flex-wrap: wrap;
562+
margin-top: 11px;
563+
}
564+
565+
.feature {
566+
display: flex;
567+
padding-top: 41px;
568+
padding-left: 0px;
569+
padding-right: 0px;
570+
width: 100%;
571+
}
572+
573+
.feature:nth-child(-n+3) {
574+
padding-top: 41px;
575+
}
576+
577+
.feature:nth-child(1) {
578+
padding-top: 0px;
579+
}
580+
581+
.feature:nth-child(3n) {
582+
padding-right: 0px;
583+
}
584+
585+
.feature:nth-child(3n+1) {
586+
padding-left: 0px;
587+
}
588+
554589
}
555590

556591

@@ -562,7 +597,6 @@ footer {
562597
display: flex;
563598
flex-wrap: wrap;
564599
justify-content: center;
565-
align-content: center;
566600
}
567601

568602
.footerText {
@@ -578,15 +612,13 @@ footer {
578612
.footerIcons {
579613
padding-bottom: 70px;
580614
display: flex;
615+
flex: 0 0 100%;
616+
justify-content: center;
581617
}
582618

583619
.footerLinks {
584-
color: $footer-text-color;
585-
display: block;
586-
line-height: 1.5;
587-
width: 100%;
620+
display: flex;
588621
text-align: center;
589-
padding-top: 0px;
590622
padding-bottom: 70px;
591623
}
592624

@@ -598,6 +630,25 @@ footer {
598630
margin-right: 0px;
599631
}
600632

633+
634+
@media only screen and (max-width: 768px) {
635+
636+
.footerLinks {
637+
flex-direction: column;
638+
}
639+
640+
.footerLinks a {
641+
justify-content: stretch;
642+
margin-right: 0px;
643+
margin-top: 20px;
644+
}
645+
646+
.footerLinks a:first-child {
647+
margin-top: 0px;
648+
}
649+
650+
}
651+
601652
@media only screen and (max-width: 992px) {
602653

603654
.footerText {

0 commit comments

Comments
 (0)