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

建议:侧边栏背景图居中 #473

Open
3 tasks done
Lim-Watt opened this issue May 24, 2024 · 2 comments
Open
3 tasks done

建议:侧边栏背景图居中 #473

Lim-Watt opened this issue May 24, 2024 · 2 comments

Comments

@Lim-Watt
Copy link

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

侧边栏背景图不居中的话,手裁图片太难受了。

文件 source/css/_components/sidebar/sidebar.styl 第22行后面加一句

.l_left
  background-position: center
  background-size: cover
  ...
@Lim-Watt
Copy link
Author

我才发现,大家用stellar侧边栏都是纯色或渐变……

@L33Z22L11
Copy link
Contributor

L33Z22L11 commented May 31, 2024

我之前也留意到了,打算交个PR来着,不过我自己找的背景图的展示效果实在不好,尤其是图片的边角会由于圆角随着blur变得黯淡,所以不了了之。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants