Skip to content

Commit

Permalink
Merge pull request #16 from js2me/develop
Browse files Browse the repository at this point in the history
images fix
  • Loading branch information
js2me authored Jan 31, 2018
2 parents 618820d + cbd0799 commit f7f9ca9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "",
"assets":[
"assets",
"favicon.ico"
],
"styles": [
"sass/styles.scss",
"sass/buttons.scss",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<img src="{{imageUrl}}" alt="">
</ng-template>
<ng-template #defaultImageBlock>
<img src="../../../../assets/default-user-photo.png" alt="">
<img src="/assets/default-user-photo.png" alt="">
</ng-template>
</div>
2 changes: 1 addition & 1 deletion src/app/shared/layout/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
max-height: $header-height;
content: '';
background-position: center;
background-image: url(../../../assets/background-header.jpg);
background-image: url('/assets/background-header.jpg');
filter: grayscale(50%) contrast(100%);
transition: filter 650ms ease;
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions src/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body, html {
body {
font-family: $default-font-family;
color: $font-color;
background: url('../assets/background.png');
background: url('/assets/background.png');
user-select: none;
/* overflow: hidden; */
display: block;
Expand Down Expand Up @@ -62,7 +62,7 @@ button.close {
margin-bottom: 24px;
span {
font-size: 26px;
background: url(../assets/background-header.jpg);
background: url(/assets/background-header.jpg);
background-position-y: top;
background-position-x: left;
color: $second-font-color;
Expand Down

0 comments on commit f7f9ca9

Please sign in to comment.