Skip to content

Commit

Permalink
Made the footer stay at the bottom when resizing the window (#284)
Browse files Browse the repository at this point in the history
* Made the footer stay at the bottom when resizing the window

Co-authored-by: ge78fug <[email protected]>
  • Loading branch information
Marius1501 and ge78fug authored Nov 11, 2022
1 parent 7065258 commit 61b8cd3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions webclient/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

/* === General === */
html {
height: 100%;
scroll-behavior: smooth;
}

body {
min-height: 80%; // optimized for desktop view, not really relevant on mobile
position: relative;

&.no-scroll {
Expand Down Expand Up @@ -234,6 +232,10 @@ body {
}

/* === Content === */
#content {
min-height: calc(100vh - 200px);
}

#content-header {
margin-top: 70px; // 10px + 60px for header
}
Expand Down Expand Up @@ -306,10 +308,10 @@ body {
footer {
padding: 8px 0 16px;
background: $footer-color;
bottom: -130px;
position: absolute;
left: 0;
right: 0;
position: relative;
left:0;
right:0;
top:0;
text-align: center;

.links {
Expand Down

0 comments on commit 61b8cd3

Please sign in to comment.