-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Custom Background Image and Side Bar Image #1660
Comments
I happened to consider the same question last week and have already implemented changing the background image of the sidebar. You can visit my blog huanyushi.github.io to see the effect. I have documented the specific setup process on my blog, which you can view Chirpy Blog Customization (However, it's written in Chinese). To be specific, you need to add code in /* set background figure for side bar */
#sidebar {
padding-left: 0;
padding-right: 0;
position: fixed;
top: 0;
left: 0;
height: 100%;
overflow-y: auto;
width: 260px;
z-index: 99;
/* background: var(--sidebar-bg); */
background-image: url( ... ); /* <- url of your background image */
background-size: cover; /* <- customize the image size */
background-repeat: no-repeat; /* <- no repeat */
background-position: top; /* <- postion */
border-right: 1px solid var(--sidebar-border-color);
-ms-overflow-style: none;
scrollbar-width: none;
} Note that when you change the background image, also consider the color of the fonts; they might also need adjustments. Additionally, I didn't modify the background of the entire blog, but the setup methods are similar. |
okk,我去试试 |
Checklist
Is your feature request related to a problem? Please describe
no
Describe the solution you'd like
I hope that we can customize the transparent background image and sidebar transparent image.
Describe alternatives you've considered
It would be better if we could set the blur and acrylic texture.
Additional context
No response
The text was updated successfully, but these errors were encountered: