lostplaces-frontend/components/03_Organisms/footer/_footer.scss

269 lines
5.4 KiB
SCSS
Raw Normal View History

2020-09-06 12:32:25 +02:00
// Define easily accessible color-defaults for the footer.
$-primary-link-color: $-beige;
$-primary-line-color: $-almost-white;
2020-09-06 00:12:55 +02:00
.LP-Footer {
margin: auto;
background: $-grey;
width: 100%;
font-family: $-primary-sans-serif-font;
font-size: 0.75rem;
2020-09-06 00:12:55 +02:00
* {
2020-09-06 11:47:19 +02:00
box-sizing: border-box;
2020-09-06 00:12:55 +02:00
}
2020-09-06 00:12:55 +02:00
ul {
2020-09-06 11:47:19 +02:00
list-style: none;
2020-09-06 00:12:55 +02:00
}
2020-09-06 00:12:55 +02:00
a {
2020-09-06 11:47:19 +02:00
text-decoration: none;
}
2020-09-06 12:32:25 +02:00
&__GenericAnchor {
color: $-primary-link-color;
2020-09-06 00:12:55 +02:00
&:hover {
2020-09-06 11:47:19 +02:00
color: $-primary-line-color;
2020-09-06 00:12:55 +02:00
}
}
2020-09-06 00:30:04 +02:00
// Use flexbox
2020-09-06 12:32:25 +02:00
&__Flex {
2020-09-06 00:12:55 +02:00
display: flex;
flex-flow: row wrap;
}
2020-09-06 12:32:25 +02:00
&__ListTop {
2020-09-06 11:47:19 +02:00
width: 33.333%;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__ListTop > li {
2020-09-06 00:12:55 +02:00
text-align: center;
2020-09-06 11:47:19 +02:00
padding-bottom: 10px;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__ListHeader {
2020-09-06 00:12:55 +02:00
padding: 10px 0 5px 0;
color: $-almost-white;
font-size: 2.3vw;
}
2020-09-06 12:32:25 +02:00
&__ListAnchor {
2020-09-06 00:12:55 +02:00
font-size: 1.3em;
}
2020-09-06 12:32:25 +02:00
&__SocialSection {
2020-09-06 00:12:55 +02:00
width: 100%;
align-items: center;
justify-content: space-around;
position: relative;
margin-top: 5px;
}
2020-09-06 12:32:25 +02:00
&__SocialSection::after {
2020-09-06 00:12:55 +02:00
content: "";
position: absolute;
z-index: 1;
top: 50%;
left: 10px;
border-top: 1px solid $-primary-line-color;
2020-09-06 11:47:19 +02:00
width: calc(100% - 20px);
2020-09-06 00:12:55 +02:00
}
// Include social media icons.
.LP-Footer__Social-Mastodon {
.LP-Footer__Icon {
background-image: url('icons/social/mastodon.svg');
}
}
.LP-Footer__Social-Twitter {
.LP-Footer__Icon {
background-image: url('icons/social/twitter.svg');
}
}
.LP-Footer__Social-Facebook {
.LP-Footer__Icon {
background-image: url('icons/social/facebook.svg');
}
}
.LP-Footer__Social-Youtube {
.LP-Footer__Icon {
background-image: url('icons/social/youtube.svg');
}
}
.LP-Footer__Social-Vimeo {
.LP-Footer__Icon {
background-image: url('icons/social/vimeo.svg');
}
}
.LP-Footer__Social-Instagram {
.LP-Footer__Icon {
background-image: url('icons/social/instagram.svg');
}
}
.LP-Footer__Social-Vkontakte {
.LP-Footer__Icon {
background-image: url('icons/social/vkontakte.svg');
}
}
.LP-Footer__Social-Wordpress {
.LP-Footer__Icon {
background-image: url('icons/social/wordpress.svg');
}
}
// Social media icons style.
.LP-Footer__Icon {
background-size: 40px 40px;
background-repeat: no-repeat;
background-position: center;
background-clip: content-box;
position: absolute;
height: 50px;
width: 50px;
}
2020-09-06 00:30:04 +02:00
// Big letters of "EXPLORE WITH US"
2020-09-06 12:32:25 +02:00
&__SocialExplore {
2020-09-06 00:12:55 +02:00
display: flex;
align-items: center;
font-size: 3.5em;
2020-09-06 11:47:19 +02:00
color: $-almost-white;
2020-09-06 00:12:55 +02:00
}
2020-09-06 00:30:04 +02:00
// Small letters of "EXPLORE WITH US"
2020-09-06 12:32:25 +02:00
&__SocialSmall {
2020-09-06 00:12:55 +02:00
font-size: 0.6em;
2020-09-06 11:47:19 +02:00
padding: 0px 20px;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__SocialOverlap {
2020-09-06 11:36:35 +02:00
position: relative;
z-index: 2;
background: $-grey;
padding: 0 10px;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__SocialOverlap > a {
2020-09-06 11:36:35 +02:00
font-size: 3em;
padding-right: 50px;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__BottomSection {
2020-09-06 00:12:55 +02:00
width: 100%;
padding: 10px;
border-top: 1px solid $-primary-line-color;
2020-09-06 11:47:19 +02:00
margin-top: 10px;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__BottomSection > div:first-child {
2020-09-06 11:47:19 +02:00
margin-right: auto;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
&__BottomWrapper {
2020-09-06 00:12:55 +02:00
font-size: 1.5em;
2020-09-06 11:47:19 +02:00
color: $-almost-white;
2020-09-06 00:12:55 +02:00
}
2020-09-06 12:32:25 +02:00
}
2020-09-06 12:32:25 +02:00
// Media queries using global widths.
@media(max-width: $-viewport-normal) {
.LP-Footer__ListHeader {
font-size: 2em;
}
.LP-Footer__ListAnchor {
font-size: 1.1em;
}
2020-09-06 12:32:25 +02:00
.LP-Footer__SocialConnect {
font-size: 2.5em;
}
.LP-Footer__SocialOverlap > a {
font-size: 2.24em;
height: 50px;
}
.LP-Footer__BottomWrapper {
font-size: 1.3em;
}
}
2020-09-06 12:32:25 +02:00
@media(max-width: $-viewport-medium) {
.LP-Footer__ListTop {
width: 100%;
}
.LP-Footer__ListHeader {
font-size: 3em;
}
.LP-Footer__ListAnchor {
font-size: 1.5em;
}
.LP-Footer__SocialSection {
justify-content: center
}
.LP-Footer__SocialSection::after {
top: 25%;
}
2020-09-06 12:32:25 +02:00
.LP-Footer__SocialConnect {
margin-bottom: 10px;
padding: 0 10px;
}
.LP-Footer__SocialOverlap {
display: flex;
justify-content: center;
height: 50px;
}
.LP-Footer__SocialIconsWrapper {
width: 100%;
padding: 0;
}
.LP-Footer__SocialOverlap {
margin-left: 0px;
}
.LP-Footer__BottomSection {
padding: 0 5px 10px 5px;
}
.LP-Footer__BottomWrapper {
text-align: center;
width: 100%;
margin-top: 10px;
}
}
2020-09-06 12:32:25 +02:00
@media(max-width: $-viewport-small) {
.LP-Footer__SocialOverlap > a {
margin: auto;
}
.LP-Footer__SocialOverlap > a:not(:first-child) {
margin-left: 0;
}
.LP-Footer__BottomRights {
display: block;
}
2020-09-06 12:32:25 +02:00
}
2020-09-06 12:32:25 +02:00
@media(max-width: $-viewport-extra-small) {
.LP-Footer__ListHeader {
font-size: 2.2em;
}
.LP-Footer__ListAnchor {
font-size: 1.2em;
}
.LP-Footer__SocialConnect {
font-size: 2.4em;
}
.LP-Footer__SocialOverlap > a {
font-size: 2.24em;
}
.LP-Footer__BottomWrapper {
font-size: 1.3em;
}
2020-09-06 12:32:25 +02:00
}