From cbd0799e64a130349ed9d5dcf5ee5da65bbb5508 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 31 Jan 2018 09:34:38 +0300 Subject: [PATCH] images fix --- .angular-cli.json | 4 ++++ .../shared/components/user-photo/user-photo.component.html | 2 +- src/app/shared/layout/header.component.scss | 2 +- src/sass/styles.scss | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.angular-cli.json b/.angular-cli.json index 3158f2d..94cd6f2 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -14,6 +14,10 @@ "tsconfig": "tsconfig.app.json", "testTsconfig": "tsconfig.spec.json", "prefix": "", + "assets":[ + "assets", + "favicon.ico" + ], "styles": [ "sass/styles.scss", "sass/buttons.scss", diff --git a/src/app/shared/components/user-photo/user-photo.component.html b/src/app/shared/components/user-photo/user-photo.component.html index 0cbae19..23a29c3 100644 --- a/src/app/shared/components/user-photo/user-photo.component.html +++ b/src/app/shared/components/user-photo/user-photo.component.html @@ -4,6 +4,6 @@ - + diff --git a/src/app/shared/layout/header.component.scss b/src/app/shared/layout/header.component.scss index d027bb5..f6a0bdb 100644 --- a/src/app/shared/layout/header.component.scss +++ b/src/app/shared/layout/header.component.scss @@ -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; diff --git a/src/sass/styles.scss b/src/sass/styles.scss index 37b60b9..39b37d6 100644 --- a/src/sass/styles.scss +++ b/src/sass/styles.scss @@ -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; @@ -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;