Small changes to footer and navigation

This commit is contained in:
Erik Tiekstra
2021-09-09 06:44:19 +02:00
parent a0b73d5800
commit 0dbd471bce
5 changed files with 13 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
<footer class="footer"> <footer class="footer">
<div class="footer__logo-wrapper"> <div class="footer__logo-wrapper">
<a class="footer__logo-link" href="/"> <digi-logo af-color="secondary"></digi-logo>
<img class="footer__logo" src="/assets/logo/arbetsformedlingen-light.svg" alt="Arbetsförmedlingen" />
</a>
</div> </div>
</footer> </footer>

View File

@@ -1,15 +1,12 @@
@import 'variables/gutters';
.footer { .footer {
background-color: var(--digi--ui--color--background--profile); background-color: var(--digi--ui--color--background--profile);
padding: var(--digi--layout--gutter); padding: $digi--layout--gutter--l $digi--layout--gutter;
&__logo-wrapper { &__logo-wrapper {
height: 100%; ::ng-deep .digi-logo {
display: flex; --digi-logo--padding: 0;
align-items: center;
} }
&__logo {
height: 2rem;
vertical-align: middle;
} }
} }

View File

@@ -1,9 +1,10 @@
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { FooterComponent } from './footer.component'; import { FooterComponent } from './footer.component';
@NgModule({ @NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [FooterComponent], declarations: [FooterComponent],
imports: [CommonModule, RouterModule], imports: [CommonModule, RouterModule],
exports: [FooterComponent], exports: [FooterComponent],

View File

@@ -26,6 +26,10 @@
&__logo-link { &__logo-link {
text-decoration: none; text-decoration: none;
::ng-deep .digi-logo {
--digi-logo--padding: 0;
}
} }
&__logo { &__logo {

View File

@@ -43,6 +43,5 @@
&__footer { &__footer {
grid-area: footer; grid-area: footer;
background-color: var(--digi--ui--color--primary); background-color: var(--digi--ui--color--primary);
min-height: 10rem;
} }
} }