From 953f8cf44a94ab78941881b97bba68f09c7cdaa6 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 18 Aug 2017 15:09:12 +0300 Subject: [PATCH] added header-bg image --- src/app/core/scss/partials/_page-layouts.scss | 13 ++++++------- .../mail/sidenavs/main/main-sidenav.component.html | 2 +- .../todo/sidenavs/main/main-sidenav.component.html | 2 +- .../carded/fullwidth-2/fullwidth-2.component.html | 2 +- .../carded/fullwidth/fullwidth.component.html | 2 +- .../left-sidenav-2/left-sidenav-2.component.html | 4 ++-- .../carded/left-sidenav/left-sidenav.component.html | 4 ++-- .../right-sidenav-2/right-sidenav-2.component.html | 4 ++-- .../right-sidenav/right-sidenav.component.html | 4 ++-- 9 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/app/core/scss/partials/_page-layouts.scss b/src/app/core/scss/partials/_page-layouts.scss index 60675e91..40dc010c 100644 --- a/src/app/core/scss/partials/_page-layouts.scss +++ b/src/app/core/scss/partials/_page-layouts.scss @@ -10,6 +10,9 @@ $header-height-sm: 100px !default; $carded-header-height-without-toolbar: $carded-header-height - $carded-toolbar-height; $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-toolbar-height; +// Top bg image +$top-bg-image: url('assets/images/backgrounds/header-bg.png'); + .page-layout { position: relative; overflow-x: hidden; @@ -31,6 +34,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too right: 0; left: 0; height: $carded-header-height; + background-image: $top-bg-image; @include media-breakpoint('sm') { height: $carded-header-height-sm; @@ -269,13 +273,8 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too min-width: 100%; // Top bg - .top-bg { - position: absolute; - z-index: 1; - top: 0; - right: 0; - left: 0; - height: $header-height; + .header { + background-image: $top-bg-image; } // Fullwidth diff --git a/src/app/main/content/apps/mail/sidenavs/main/main-sidenav.component.html b/src/app/main/content/apps/mail/sidenavs/main/main-sidenav.component.html index e47e329e..d0e364e4 100644 --- a/src/app/main/content/apps/mail/sidenavs/main/main-sidenav.component.html +++ b/src/app/main/content/apps/mail/sidenavs/main/main-sidenav.component.html @@ -1,5 +1,5 @@ -
+