Skip to content

Commit 5fb57e5

Browse files
Merge pull request #124 from nishtha-agarwal-211/fix/sticky-footer-and-github-link
fix: make footer sticky at viewport bottom while scrolling (#56)
2 parents 53c46c0 + a4f7bc9 commit 5fb57e5

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

web-app/css/styles.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ body {
4242
color: var(--text-color);
4343
line-height: 1.6;
4444
transition: background-color var(--motion-duration) ease, color var(--motion-duration) ease;
45+
padding-bottom: 6rem;
4546
}
4647

4748
#main-content {
@@ -877,10 +878,14 @@ body {
877878
/* Footer */
878879
.footer {
879880
background: var(--surface-color);
880-
padding: 2rem 0;
881+
padding: 1rem 0;
881882
text-align: center;
882883
border-top: 2px solid var(--primary-color);
883-
margin-top: 4rem;
884+
position: fixed;
885+
bottom: 0;
886+
left: 0;
887+
width: 100%;
888+
z-index: 1000;
884889
}
885890

886891
.footer a {
@@ -897,7 +902,7 @@ body {
897902
.back-to-top {
898903
position: fixed;
899904
right: 1.5rem;
900-
bottom: 1.5rem;
905+
bottom: 6.5rem;
901906
width: 3.25rem;
902907
height: 3.25rem;
903908
border: none;
@@ -995,7 +1000,7 @@ body {
9951000

9961001
.back-to-top {
9971002
right: 1rem;
998-
bottom: 1rem;
1003+
bottom: 6.5rem;
9991004
width: 3rem;
10001005
height: 3rem;
10011006
}
@@ -1151,6 +1156,4 @@ body {
11511156
transform: none;
11521157
}
11531158
}
1154-
1155-
/* =========================
1156-
TIC TAC TOE
1159+
}

0 commit comments

Comments
 (0)