forked from zolcsi/map-of-pi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase the footer icon size and change footer position to sticky
- Loading branch information
1 parent
8b770e6
commit 3b8cb7a
Showing
1 changed file
with
48 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |