Skip to content

Commit eaef519

Browse files
committed
chore: fix footer to bottom
1 parent f45cf82 commit eaef519

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

src/static/home/main.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ html {
22
min-height: 100vh;
33
}
44

5+
body {
6+
margin-bottom: calc(var(--footer-height-y) + 10px);
7+
}
8+
59
footer {
610
width: 100%;
711
font-size: 12px;
12+
position: fixed;
13+
bottom: 0;
14+
vertical-align: middle;
15+
height: var(--footer-height-y);
16+
line-height: 40px;
817
}
918

1019
footer a:link,
@@ -26,7 +35,7 @@ footer a:active {
2635
justify-content: flex-end;
2736
}
2837

29-
.submit-btn-quote{
38+
.submit-btn-quote {
3039
padding-left: 5px !important;
3140
}
3241
}
@@ -38,7 +47,6 @@ footer a:active {
3847
}
3948

4049

41-
4250
.quote {
4351
box-shadow: 1px 1px 4px rgba(0, 0, 0, .6);
4452
padding: 5px 5px;
@@ -59,13 +67,15 @@ footer a:active {
5967
margin-left: 3px;
6068
}
6169

62-
.custom-select{
70+
.custom-select {
6371
height: calc(2.50rem + 2px);
6472
}
73+
6574
/*FLOATING LABELS*/
6675
:root {
6776
--input-padding-x: .75rem;
6877
--input-padding-y: .6rem;
78+
--footer-height-y: 40px
6979
}
7080

7181

src/templates/base.jinja2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
{% block content %}{% endblock %}
5252
</div>
5353

54-
<footer class="bg-dark text-white py-1 text-center">© Copyright 2020, Michael Götz
55-
(<a href="#">Impressum</a>,
56-
<a href="#">Datenschutz</a>)
54+
<footer class="bg-dark text-white text-center">
55+
<div class="container"> © Copyright 2020, Michael Götz
56+
(<a href="#">Impressum</a>,
57+
<a href="#">Datenschutz</a>)
58+
</div>
5759
</footer>
5860

5961
<script src="{{ static('js/form.js') }}"></script>

0 commit comments

Comments
 (0)