Footer refactoring.

This commit is contained in:
Marcus Scholz 2020-09-09 21:57:51 +02:00
parent c722b929fe
commit 250dc44273
3 changed files with 62 additions and 57 deletions

View File

@ -7,7 +7,19 @@ $-primary-line-color: $-almost-white;
background: $-grey; background: $-grey;
width: 100%; width: 100%;
font-family: $-primary-sans-serif-font; font-family: $-primary-sans-serif-font;
font-size: 0.75rem; font-size: 1rem;
&Columns__Container {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap;
}
&Columns__Item {
flex-grow: 1;
}
* { * {
box-sizing: border-box; box-sizing: border-box;
@ -33,12 +45,10 @@ $-primary-line-color: $-almost-white;
&__Flex { &__Flex {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
margin-top: 5em;
} }
&__ListTop { &__ListTop {
text-align: center; text-align: left;
width: 33.333%;
} }
&__ListTop > li { &__ListTop > li {
@ -51,19 +61,11 @@ $-primary-line-color: $-almost-white;
font-size: 2.3vw; font-size: 2.3vw;
} }
&__ListAnchor {
font-size: 1.3em;
}
&__ListText { &__ListText {
font-size: 1.3em; font-size: 1.2em;
color: $-almost-white; color: $-almost-white;
} }
&__ListText-left {
text-align: left;
}
&__SocialSection { &__SocialSection {
width: 100%; width: 100%;
align-items: center; align-items: center;
@ -146,13 +148,13 @@ $-primary-line-color: $-almost-white;
&__SocialExplore { &__SocialExplore {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 3.5em; font-size: 2.5em;
color: $-almost-white; color: $-almost-white;
} }
// Small letters of "EXPLORE WITH US" // Small letters of "EXPLORE WITH US"
&__SocialSmall { &__SocialSmall {
font-size: 0.6em; font-size: 0.5em;
padding: 0px 20px; padding: 0px 20px;
} }
@ -180,7 +182,7 @@ $-primary-line-color: $-almost-white;
} }
&__BottomWrapper { &__BottomWrapper {
font-size: 1.5em; font-size: 1.3em;
color: $-almost-white; color: $-almost-white;
} }
} }
@ -190,7 +192,7 @@ $-primary-line-color: $-almost-white;
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 2em; font-size: 2em;
} }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.1em; font-size: 1.1em;
} }
.LP-Footer__SocialConnect { .LP-Footer__SocialConnect {
@ -212,7 +214,7 @@ $-primary-line-color: $-almost-white;
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 3em; font-size: 3em;
} }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.5em; font-size: 1.5em;
} }
.LP-Footer__SocialSection { .LP-Footer__SocialSection {
@ -263,7 +265,7 @@ $-primary-line-color: $-almost-white;
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 2.2em; font-size: 2.2em;
} }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.2em; font-size: 1.2em;
} }
.LP-Footer__SocialConnect { .LP-Footer__SocialConnect {

View File

@ -1,25 +1,26 @@
<footer class="LP-Footer LP-Footer__Flex"> <footer class="LP-Footer">
<ul class="LP-Footer__ListTop"> <div class="LP-FooterColumns__Container">
<li><h4 class="LP-Footer__ListHeader">About</h4></li> <ul class="LP-Footer__ListTop">
<li><a href='https://git.mowoe.com/reverend/lostplaces-backend/src/branch/master/Readme.md' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">Host your own instance!</a></li> <li><h4 class="LP-Footer__ListHeader">About</h4></li>
<li><a href='https://git.mowoe.com/reverend/lostplaces-backend/issues' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">Issue tracker</a></li> <li class="LP-Footer__ListText"><a href='https://git.mowoe.com/reverend/lostplaces-backend/src/branch/master/Readme.md' class="LP-Footer__GenericAnchor">Host your own instance!</a></li>
<li><a href='https://git.mowoe.com/reverend/lostplaces-backend' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">Backend repository</a></li> <li class="LP-Footer__ListText"><a href='https://git.mowoe.com/reverend/lostplaces-backend/issues' class="LP-Footer__GenericAnchor">Issue tracker</a></li>
<li><a href='https://git.mowoe.com/reverend/lostplaces-frontend' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">Frontend repository</a></li> <li class="LP-Footer__ListText"><a href='https://git.mowoe.com/reverend/lostplaces-backend' class="LP-Footer__GenericAnchor">Backend repository</a></li>
</ul> <li class="LP-Footer__ListText"><a href='https://git.mowoe.com/reverend/lostplaces-frontend' class="LP-Footer__GenericAnchor">Frontend repository</a></li>
<ul class="LP-Footer__ListTop"> </ul>
<li><h4 class="LP-Footer__ListHeader">Contact</h4></li> <ul class="LP-Footer__ListTop">
<li><a href='https://www.urban-exploration.com' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">https://www.urban-exploration.com</a></li> <li><h4 class="LP-Footer__ListHeader">Contact</h4></li>
<li><a href='mailto:JohnSSmith@einrot.com' class="LP-Footer__GenericAnchor LP-Footer__ListAnchor">JohnSSmith@einrot.com</a></li> <li class="LP-Footer__ListText">web. <a href='https://www.urban-exploration.com' class="LP-Footer__GenericAnchor">https://www.urban-exploration.com</a></li>
<li class="LP-Footer__ListText LP-Footer__ListAnchor">937-387-6498</li> <li class="LP-Footer__ListText">mail. <a href='mailto:JohnSSmith@einrot.com' class="LP-Footer__GenericAnchor">JohnSSmith@einrot.com</a></li>
<li class="LP-Footer__ListText">tel. 937-387-6498</li>
</ul> </ul>
<ul class="LP-Footer__ListTop"> <ul class="LP-Footer__ListTop">
<li id='Contact'><h4 class="LP-Footer__ListHeader">Postal address</h4></li> <li id='Contact'><h4 class="LP-Footer__ListHeader">Postal address</h4></li>
<li class="LP-Footer__ListText LP-Footer__ListAnchor"><b>Urban Exploration Ltd.</b></li> <li class="LP-Footer__ListText"><b>Urban Exploration Ltd.</b></li>
<li class="LP-Footer__ListText LP-Footer__ListAnchor">John S. Smith</li> <li class="LP-Footer__ListText">John S. Smith</li>
<li class="LP-Footer__ListText LP-Footer__ListAnchor">2563 College Avenue</li> <li class="LP-Footer__ListText">2563 College Avenue</li>
<li class="LP-Footer__ListText LP-Footer__ListAnchor">Dayton, OH 45402</li> <li class="LP-Footer__ListText">Dayton, OH 45402</li>
</ul> </ul>
</div>
<!-- Explore with us / social media bar --> <!-- Explore with us / social media bar -->
<section class="LP-Footer__SocialSection LP-Footer__Flex"> <section class="LP-Footer__SocialSection LP-Footer__Flex">

View File

@ -1245,7 +1245,15 @@ body {
background: #565656; background: #565656;
width: 100%; width: 100%;
font-family: "Montserrat", Helvetica, sans-serif; font-family: "Montserrat", Helvetica, sans-serif;
font-size: 0.75rem; } font-size: 1rem; }
.LP-FooterColumns__Container {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap; }
.LP-FooterColumns__Item {
flex-grow: 1; }
.LP-Footer * { .LP-Footer * {
box-sizing: border-box; } box-sizing: border-box; }
.LP-Footer ul { .LP-Footer ul {
@ -1258,24 +1266,18 @@ body {
color: #f9f9f9; } color: #f9f9f9; }
.LP-Footer__Flex { .LP-Footer__Flex {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap; }
margin-top: 5em; }
.LP-Footer__ListTop { .LP-Footer__ListTop {
text-align: center; text-align: left; }
width: 33.333%; }
.LP-Footer__ListTop > li { .LP-Footer__ListTop > li {
padding-bottom: 10px; } padding-bottom: 10px; }
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
padding: 10px 0 5px 0; padding: 10px 0 5px 0;
color: #f9f9f9; color: #f9f9f9;
font-size: 2.3vw; } font-size: 2.3vw; }
.LP-Footer__ListAnchor {
font-size: 1.3em; }
.LP-Footer__ListText { .LP-Footer__ListText {
font-size: 1.3em; font-size: 1.2em;
color: #f9f9f9; } color: #f9f9f9; }
.LP-Footer__ListText-left {
text-align: left; }
.LP-Footer__SocialSection { .LP-Footer__SocialSection {
width: 100%; width: 100%;
align-items: center; align-items: center;
@ -1317,10 +1319,10 @@ body {
.LP-Footer__SocialExplore { .LP-Footer__SocialExplore {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 3.5em; font-size: 2.5em;
color: #f9f9f9; } color: #f9f9f9; }
.LP-Footer__SocialSmall { .LP-Footer__SocialSmall {
font-size: 0.6em; font-size: 0.5em;
padding: 0px 20px; } padding: 0px 20px; }
.LP-Footer__SocialOverlap { .LP-Footer__SocialOverlap {
position: relative; position: relative;
@ -1338,13 +1340,13 @@ body {
.LP-Footer__BottomSection > div:first-child { .LP-Footer__BottomSection > div:first-child {
margin-right: auto; } margin-right: auto; }
.LP-Footer__BottomWrapper { .LP-Footer__BottomWrapper {
font-size: 1.5em; font-size: 1.3em;
color: #f9f9f9; } color: #f9f9f9; }
@media (max-width: 1000px) { @media (max-width: 1000px) {
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 2em; } font-size: 2em; }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.1em; } font-size: 1.1em; }
.LP-Footer__SocialConnect { .LP-Footer__SocialConnect {
font-size: 2.5em; } font-size: 2.5em; }
@ -1359,7 +1361,7 @@ body {
width: 100%; } width: 100%; }
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 3em; } font-size: 3em; }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.5em; } font-size: 1.5em; }
.LP-Footer__SocialSection { .LP-Footer__SocialSection {
justify-content: center; } justify-content: center; }
@ -1395,7 +1397,7 @@ body {
@media (max-width: 450px) { @media (max-width: 450px) {
.LP-Footer__ListHeader { .LP-Footer__ListHeader {
font-size: 2.2em; } font-size: 2.2em; }
.LP-Footer__ListAnchor { .LP-Footer__ListText {
font-size: 1.2em; } font-size: 1.2em; }
.LP-Footer__SocialConnect { .LP-Footer__SocialConnect {
font-size: 2.4em; } font-size: 2.4em; }