Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置了 body 背景图片后,底部栏不显示(被覆盖) #43

Closed
impressionyang opened this issue Mar 28, 2020 · 3 comments
Closed
Labels
🐞 Bug Something isn't working ☑ Verified Have Verified

Comments

@impressionyang
Copy link

I want to create a new issue

Stun Information

Stun Version: v1.7.0

Hexo Version: v4.2.0

Platform: Arch Linux

Browser: Chrome

Expected behaviour

能够在显示footer背景的同时显示页脚信息

  • 正常页脚显示信息

Actual behaviour

什么都没有显示

  • 实际显示

Steps to reproduce the behaviour

设置

footer:
  # Background image in the footer.
  bg_image:
    enable: true
    # In theme directory (source/images): /images/avatar.png
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
    url: /images/wallpaper/d_starts.svg
  # Mask effect of the background image.

我使用的页脚背景图

Feature Request


@impressionyang
Copy link
Author

impressionyang commented Mar 28, 2020

然后我自己在_layout.pug里面改了下代码

footer#footer.footer
        div(style=`background: url(/images/wallpaper/d_starts.svg) no-repeat center/cover;`).footer-inner
          include ./_partials/footer/footer.pug

抱歉改变了您的项目一致性,等你改了之后再恢复过来

欢迎来访问我的博客哦

地址:https://impressionyang.github.io

@liuyib liuyib added the 💬 Question Further information is requested label Mar 28, 2020
@liuyib
Copy link
Owner

liuyib commented Mar 28, 2020

找到原因了:启用 body 上的背景图片后,由于 z-index 设置错误,使得底部背景图被覆盖了。
下个版本会修复,感谢反馈 🙌

@liuyib liuyib added 🐞 Bug Something isn't working ☑ Verified Have Verified 🚧 Work in Progress Work in progress and removed 💬 Question Further information is requested labels Mar 28, 2020
@liuyib
Copy link
Owner

liuyib commented Mar 29, 2020

已修复,见 commit#43。下个版本就可以正常使用了。

@liuyib liuyib closed this as completed Mar 29, 2020
@liuyib liuyib changed the title footer设置图片背景就不显示了,pug里面也没见有键值配对bg_image 设置了 body 背景图片后,底部栏不显示(被覆盖) Mar 29, 2020
@liuyib liuyib removed the 🚧 Work in Progress Work in progress label Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working ☑ Verified Have Verified
Projects
None yet
Development

No branches or pull requests

2 participants