Skip to content

Commit

Permalink
logos by css
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Haehnlein committed Jan 8, 2020
1 parent 4c8f17a commit 2a5aa9d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,14 @@
routerLink="/home"
class="logo"
data-testing-id="header-home-link-desktop"
>
<img src="assets/img/logo.png" alt="Logo" />
</a>
></a>
<a
*ngIf="showMobileLogoLink"
rel="home"
routerLink="/home"
class="mobile-logo"
data-testing-id="header-home-link-mobile"
><img src="assets/img/logo_mobile.png" alt="Logo" width="41" height="41"
/></a>
></a>
</div>

<button class="navbar-toggler" type="button" (click)="toggle('navbar')">
Expand Down
Binary file added src/assets/img/logo_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/logo_mobile_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion src/theme/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,20 @@ header {
}
}

.logo {
display: inline-block;
width: 114px;
height: 40px;
background: url('/assets/img/logo.png') center;
}

.mobile-logo {
padding: 0 $space-default * 2 0 $space-default;
width: 41px;
min-width: 41px;
height: 41px;
margin: 0 $space-default * 2 0 $space-default;
background: url('/assets/img/logo_mobile.png') center no-repeat;
background-size: contain;
}

header .header-checkout {
Expand Down
8 changes: 8 additions & 0 deletions src/theme/themes/blue/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
@import '../../main';

// customizations...

.logo {
background-image: url('/assets/img/logo_blue.png');
}

.mobile-logo {
background-image: url('/assets/img/logo_mobile_blue.png');
}

0 comments on commit 2a5aa9d

Please sign in to comment.