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

[Feature Request]文章页怎么设置半透明 #353

Open
Ezgx opened this issue Oct 1, 2022 · 4 comments
Open

[Feature Request]文章页怎么设置半透明 #353

Ezgx opened this issue Oct 1, 2022 · 4 comments

Comments

@Ezgx
Copy link

Ezgx commented Oct 1, 2022

文章页怎么设置半透明

@YunYouJun
Copy link
Owner

@Ezgx
Copy link
Author

Ezgx commented Oct 7, 2022

自定义 CSS 背景。

https://yun.yunyoujun.cn/guide/config.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%B7%E5%BC%8F

但是你这个主题好像没有适用的文章页面半透明背景css

@YunYouJun
Copy link
Owner

image

新建 source/_data/style/xxx.styl

:root {
  --post-block-bg-color: rgba(255,255,255,0.5);
}

@Ezgx
Copy link
Author

Ezgx commented Oct 12, 2022

image

新建 source/_data/style/xxx.styl

:root {
  --post-block-bg-color: rgba(255,255,255,0.5);
}

建了文件后需要在_config.yun.yml里引入吗

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