Skip to content

Commit

Permalink
fix(#43): Footer bar is not show when enable body bg_image
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Mar 29, 2020
1 parent 1a65a25 commit f0e92ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/css/_common/components/footer/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
background-color: $footer-bg-color;

if (hexo-config('footer.bg_image.enable') && hexo-config('footer.bg_image.url')) {
z-index: $z-index-2;
z-index: $z-index0;
background: url(hexo-config('footer.bg_image.url')) no-repeat center / cover;
}

Expand Down
4 changes: 2 additions & 2 deletions source/css/_common/components/header/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh

&-banner {
position: relative;
z-index: $z-index0;
width: 100%;
height: 100%;

Expand All @@ -202,7 +203,7 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh
position: absolute;
top: 0;
left: 0;
z-index: $z-index0;
z-index: $z-index-1;
width: 100%;
height: 100%;
background-color: alpha(#000, hexo-config('header.mask.opacity'));
Expand All @@ -213,7 +214,6 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh
position: absolute;
top: 50%;
left: 0;
z-index: $z-index0;
padding: 0 .5rem;
width: 100%;
text-align: center;
Expand Down

0 comments on commit f0e92ae

Please sign in to comment.