Skip to content

Commit

Permalink
Increase the footer icon size and change footer position to sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
DarinHajou committed Mar 10, 2024
1 parent 8b770e6 commit 3b8cb7a
Showing 1 changed file with 48 additions and 49 deletions.
97 changes: 48 additions & 49 deletions frontend/src/assets/styles/shared/footer/footer.scss
Original file line number Diff line number Diff line change
@@ -1,88 +1,87 @@
body, html {
height: 100%;
margin: 0;
body,
html {
height: 100%;
margin: 0;
}

body {
display: flex;
flex-direction: column;
min-height: 100vh;
display: flex;
flex-direction: column;
}

.content {
flex: 1;
flex: 1;
}

.footer {
position: fixed;
width: 100%;
bottom: 0;
padding: 10px;
background: linear-gradient(to right, var(--color-background-color), #eaeaea);
text-align: center;
font-family: var(--font-family-main);
border-top: 1px solid #dcdcdc;
box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
margin-top: 4rem;
.footer {
position: sticky;
width: 100%;
bottom: 0;
padding: 10px;
background: linear-gradient(to right, var(--color-background-color), #eaeaea);
text-align: center;
font-family: var(--font-family-main);
border-top: 1px solid #dcdcdc;
box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.footer__links,
.footer__legal {
margin-bottom: 0.5rem;
margin-bottom: 0.5rem;
}

.footer__link,
.footer__icon {
padding: 2px; /* Increases the touchable area */
margin: 0 4px; /* Adjusts spacing around links */
padding: 2px; /* Increases the touchable area */
margin: 0 4px; /* Adjusts spacing around links */
}

.footer__link {
display: inline-flex;
justify-content: center;
align-items: center;
display: inline-flex;
justify-content: center;
align-items: center;
}

.footer__icon {
width: 25px;
height: 25px;
width: 25px;
height: 25px;
}

.footer__legal-link {
margin: 0 5px;
color: #333;
text-decoration: none;
font-size: 0.6rem;
margin: 0 5px;
color: #333;
text-decoration: none;
font-size: 0.6rem;
}

.footer__legal-link:hover,
.footer__link:hover .footer__icon {
opacity: 0.7;
opacity: 0.7;
}

.footer__logo {
width: 20px;
height: auto;
width: 20px;
height: auto;
}

@media (min-width: 567px) {
.footer__icon {
width: 25px;
height: 25px;
}
.footer__icon {
width: 32px;
height: 32px;
}

.footer__legal-link {
font-size: 0.7rem;
}
.footer__legal-link {
font-size: 0.9rem;
}

.footer__logo {
width: 20px;
height: auto;
}
.footer__logo {
width: 20px;
height: auto;
}

.footer__link,
.footer__icon {
padding: 4px;
margin: 0 5px;
}
.footer__link,
.footer__icon {
padding: 4px;
margin: 0 5px;
}
}

0 comments on commit 3b8cb7a

Please sign in to comment.