Skip to content

Commit

Permalink
fix(stark-all): replace stark logo
Browse files Browse the repository at this point in the history
  - small refactor

CLOSES ISSUE: NationalBankBelgium#1115
  • Loading branch information
carlo-nomes committed Feb 7, 2019
1 parent 1f75d0d commit bb3c3d6
Show file tree
Hide file tree
Showing 15 changed files with 84 additions and 565 deletions.
12 changes: 8 additions & 4 deletions packages/stark-core/assets/css/pre-load-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,21 @@

.stark-preload header {
padding: 16px;
background: #143e74 url("/assets/stark-core/logo/stark_header_bg.png") top right no-repeat;
background: #143e74 url(/assets/stark-core/logo/stark_header_bg.png) top right no-repeat;
border-radius: 2px 2px 0 0;
}

.stark-preload header i {
margin: auto;
display: block;
margin: auto;

width: 200px;
height: 60px;
background: url("/assets/stark-core/logo/stark_logo_transparent.svg") no-repeat;
background-size: 100% 100%;

background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}

.stark-preload .content {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions packages/stark-core/assets/logo/dark/stark_logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions packages/stark-core/assets/logo/light/stark_logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/stark-core/assets/logo/stark_logo_black.png
Binary file not shown.
269 changes: 0 additions & 269 deletions packages/stark-core/assets/logo/stark_logo_black.svg

This file was deleted.

269 changes: 0 additions & 269 deletions packages/stark-core/assets/logo/stark_logo_transparent.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
width: 200px;
height: 60px;
margin-top: 0;
background-image: url(/assets/stark-core/logo/stark_logo_transparent.svg);
background-size: 100% 100%;
background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,27 @@
border: solid 1px $divider-color;
box-shadow: $elevation-2;

& header {
header {
padding: 16px;
background-image: url(/assets/images/app-header.png);
background-position: top right;
background-repeat: no-repeat;
border-radius: 2px 2px 0 0;

& i {
i {
margin: auto;
display: block;

width: 200px;
height: 60px;
background: url(/assets/stark-core/logo/stark_logo_transparent.svg) no-repeat;
background-size: 100% 100%;
background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
}

& content {
content {
display: block;
padding: 16px;
background: #fff;
Expand Down
12 changes: 8 additions & 4 deletions showcase/src/app/_app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@
.stark-app-sidebar {
.stark-app-sidenav-menu {
.stark-app-logo {
& i {
i {
display: block;
margin-top: 0;

width: 200px;
height: 60px;
margin-top: 0;
background-image: url(/assets/stark-core/logo/stark_logo_black.svg);
background-size: 100% 100%;

background-image: url(/assets/stark-core/logo/dark/stark_logo_dark.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
}
}
Expand Down
23 changes: 15 additions & 8 deletions showcase/src/app/welcome/pages/home/_home-page.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
//set the header image
.about-background {
background: mat-color($primary-palette, 900) url("/assets/stark-core/logo/stark_logo_transparent.svg") no-repeat center center;
background-size: 250px 75px;
height: 100px;
background-color: mat-color($primary-palette, 900);
background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-repeat: no-repeat;
background-size: 250px 100px;
background-position: center;

display: flex;
align-items: center;
margin-bottom: 20px;
Expand Down Expand Up @@ -73,13 +76,17 @@

@media #{$mobile-only-query} {
.stark-app-bar-page-title {
position: absolute;
top: 60px;
left: 0;
position: absolute;
max-width: 100%;
background-image: url(/assets/stark-core/logo/stark_logo_transparent.svg);
background-size: 100% 100%;
height: 30px;

width: 100px;
height: 30px;
max-width: 100%;

background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
}
11 changes: 7 additions & 4 deletions showcase/src/app/welcome/pages/news/_news-page.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
}

.second-news-image {
background: url("/assets/stark-core/logo/stark_logo_black.svg") no-repeat center center;
width: 180px;
height: 55px;
background-size: 100% 100%;
height: 60px;
width: 200px;

background-image: url(/assets/stark-core/logo/light/stark_logo_light.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}

@media #{$desktop-query} {
Expand Down

0 comments on commit bb3c3d6

Please sign in to comment.