Skip to content

Commit c41f90a

Browse files
committed
Use flexbox to improve footer display
1 parent c5cea32 commit c41f90a

2 files changed

Lines changed: 27 additions & 12 deletions

File tree

themes/bootstrap/layouts/partials/footer.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ $baseUrl := .Site.BaseURL | replaceRE "/$" "" }}
22

3-
<footer class="footer">
3+
<footer>
44
<div class="container">
5-
<div class="col-md-2">
5+
<div class="footer-item">
66
<p class="text-muted">
77
Get Involved
88
<br>
@@ -11,7 +11,7 @@
1111
<a href="https://github.com/GothenburgBitFactory/taskwarrior"><em class="bi bi-github"></em>&ensp;Clone the code</a>
1212
</p>
1313
</div>
14-
<div class="col-md-2">
14+
<div class="footer-item">
1515
<p class="text-muted">
1616
Related Sites
1717
<br>
@@ -22,7 +22,7 @@
2222
<a href="https://timewarrior.net">timewarrior.net</a>
2323
</p>
2424
</div>
25-
<div class="col-md-2">
25+
<div class="footer-item">
2626
<p class="text-muted">
2727
Contact
2828
<br>
@@ -31,14 +31,14 @@
3131
<a href="https://twitter.com/taskwarrior"><em class="bi bi-twitter"></em>&ensp;Twitter</a>
3232
</p>
3333
</div>
34-
<div class="col-md-2">
34+
<div class="footer-item">
3535
<div class="text-muted">
3636
Donate
3737
<br>
3838
<a href="https://github.com/sponsors/GothenburgBitFactory"><em class="bi bi-github"></em>&ensp;GitHub sponsors</a>
3939
</div>
4040
</div>
41-
<div class="col-md-2">
41+
<div class="footer-item">
4242
<p class="text-muted">
4343
Copyright &copy; {{ now.Year }} <a href="https://github.com/GothenburgBitFactory">Göteborg Bit Factory</a>
4444
</p>

themes/bootstrap/static/css/theme.css

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ html {
44
}
55

66
body {
7-
margin-bottom: 120px;
7+
height: 100vh;
88
padding-top: 51px;
99
padding-bottom: 0;
10+
display: flex;
11+
flex-flow: column;
12+
justify-content: space-between;
1013
}
1114

1215
body > .container {
@@ -49,13 +52,25 @@ dl dt {
4952
}
5053

5154
footer {
52-
position: absolute;
53-
bottom: 0;
54-
padding-top: 10px;
5555
width: 100%;
56-
height: 140px;
56+
padding: 20px 0;
5757
line-height: 20px;
58-
background-color: #222;
58+
background-color: #333;
59+
}
60+
61+
footer .container {
62+
display: flex;
63+
flex-direction: row;
64+
flex-wrap: wrap;
65+
justify-content: space-between;
66+
}
67+
68+
.footer-item {
69+
margin: 0 10px
70+
}
71+
72+
footer .container:before {
73+
content: none;
5974
}
6075

6176
.banner h1 {

0 commit comments

Comments
 (0)