Skip to content

Commit a850131

Browse files
committed
fixed footer position in pages:
1 parent 80ce595 commit a850131

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

content/blogs/test.md

-9
This file was deleted.

static/css/styles.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
--pico-blockquote-border-color: #7b7b7b;
1111
--pico-blockquote-footer-color: var(--pico-blockquote-border-color);
1212
--pico-text-underline-offset: 0.5rem;
13-
--pico-spacing: 1.5rem;
1413
--pico-typography-spacing-vertical: 1.5rem;
1514
--pico-form-element-spacing-vertical: 1rem;
1615
--pico-form-element-spacing-horizontal: 1.25rem;
@@ -31,6 +30,8 @@ body {
3130
line-height: 1.5;
3231
margin: 0;
3332
padding: 0;
33+
position: relative;
34+
min-height: 100vh;
3435
}
3536

3637
hr {
@@ -71,7 +72,6 @@ article {
7172
}
7273
.visible-article:hover {
7374
--pico-card-background-color: rgb(20, 15, 13);
74-
box-shadow: 0 20px 2rem rgba(8, 7, 7, 0.446);
7575
}
7676

7777
.center {
@@ -91,7 +91,10 @@ article {
9191
}
9292

9393
.footer {
94-
position: fixed;
94+
position: absolute;
95+
height: 2.5rem;
96+
bottom: 0;
97+
width: 100%;
9598
}
9699

97100
@media (min-width: 1025px) {

templates/base.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
</header>
5656

5757
{% block content %} {% endblock content %}
58-
<footer>
58+
59+
<footer class="footer">
5960
<div class="container very-faded">
6061
<h1 class="center">
6162
<i class="fa-solid fa-mug-hot"></i> StrayTech

0 commit comments

Comments
 (0)