File: D:/HostingSpaces/SBogers10/gggg.komma.nl/resources/sass/6-Organisms/_organisms.footer.scss
// Component settings: Footer
// ------------------------------------------
$o-footer: (
'bgColor': palette(primary, 700),
'textColor': palette(neutral, 0),
'logoWidth': 192px,
);
// ------------------------------------------
.o-footer {
@include z(z-footer);
color: map-get($o-footer, 'textColor');
background-color: map-get($o-footer, 'bgColor');
background-image: linear-gradient(75deg, palette(primary, 700) 50%, palette(primary, 500) 125%);
flex: 1 0 auto;
}
.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: map-get($o-footer, 'logoWidth');
}
// 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__list {
list-style: none;
margin: 0;
}
.o-footer__link {
@include disableOutlineForMouse;
display: inline-block;
position: relative;
z-index: 0;
color: map-get($o-footer, 'textColor');
text-decoration: none;
cursor: pointer;
&::before {
@include border-radius(s);
opacity: 0;
content: '';
display: block;
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: space(-1);
right: space(-1);
background-color: rgba(invert(map-get($o-footer, 'textColor')), 0.08);
transition: opacity 150ms linear;
}
&:hover {
&::before {
opacity: 1;
}
}
&:focus {
outline-color: currentColor;
outline-style: solid;
outline-offset: 1px;
outline-width: 2px;
}
}
.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);
}
}