File: D:/HostingSpaces/bomacon/bomacon.nl/resources/sass/site/6-Organisms/_organisms.footer.scss
// Component settings: Footer
// ------------------------------------------
$o-footer: (
'color': palette(text-on-primary),
'bgcolor': palette(primary),
);
// ------------------------------------------
.o-footer {
@include z(z-footer);
color: map-get($o-footer, 'color');
background-color: map-get($o-footer, 'bgcolor');
}
.o-footer__main {
@include contain;
@include vspacing(
'padding-top' 0.5,
'padding-bottom' 0.5
);
}
.o-footer__columns {
@include mq(m) {
display: flex;
}
}
.o-footer__brand {
@include vspacing(
'margin-bottom' 0.33
);
display: inline-block;
transition: opacity 200ms linear;
&:hover {
opacity: 0.5;
}
}
.o-footer__logo {
width: 152px;
}
// Left column
.o-footer__info {
@include owl-children(space(4));
@include mq(m) {
width: column(4, 10);
}
@include mq(l) {
width: column(5, 12);
}
}
// Right column
.o-footer__nav {
@include vspacing-s(
'margin-top' 0.5
);
@include mq(m) {
margin-left: column(1, 10);
}
@include mq(l) {
margin-left: column(1, 12);
}
}
.o-footer__logo-bar {
width: 100%;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
gap: 100px;
padding: 16px;
img {
width: 10%;
}
@include mq($max: 840) {
flex-direction: column;
padding-top: 50px;
padding-bottom: 50px;
img {
width: 33%;
}
}
}
.o-footer__list {
list-style: none;
margin: 0;
}
.o-footer__link {
display: inline-block;
position: relative;
z-index: 0;
color: map-get($o-footer, 'color');
text-decoration: none;
cursor: pointer;
transition: color 0.3s;
&::before {
content: '';
display: block;
position: absolute;
z-index: -1;
left: -10px;
bottom: 0;
width: 100%;
height: 50%;
background-color: rgba(map-get($o-footer, 'color'), 0.1);
transform: scaleX(0) skew(0deg);
transform-origin: bottom left;
transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
}
&:hover {
&::before {
transform: scaleX(1) skew(-37deg);
}
}
&:focus {
outline-color: palette(feedback, action);
}
}
.o-footer__social {
display: flex;
list-style: none;
margin: space(4) 0 0;
}
.o-footer__channel {
display: flex;
justify-content: center;
align-items: center;
width: 24px;
height: 24px;
margin-right: space(2);
}
.o-footer__icon {
flex: auto;
display: block;
height: 100%;
background-repeat: no-repeat;
background-position: center;
transition-property: opacity;
transition-duration: 0.3s;
.facebook & {
background-image: url("/img/social/facebook.svg");
height: 21px;
}
.instagram & {
background-image: url("/img/social/instagram.svg");
}
.twitter & {
background-image: url("/img/social/twitter.svg");
height: 20px;
}
.linkedin & {
background-image: url("/img/social/linkedin.svg");
height: 18px;
}
&:hover {
opacity: 0.5;
}
&:focus {
outline-color: palette(feedback, action);
}
}