-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Arbitrary background color for cover page #40
Comments
I will add a new feature to support custom background color or image. likes ![logo](_media/icon.svg)
# docsify <small>1.3.3</small>
> A magical documentation site generator.
- Simple and lightweight (~12kb gzipped)
- Multiple themes
- Not build static html files
[GitHub](https://github.com/QingWei-Li/docsify/)
[Get Started](#quick-start)
![](background.png)
<!-- or -->
![color](red)
<!-- or -->
![color](linear-gradient(to left bottom, #b3ffc8 0%, #eeffb3 100%)) Just use markdown to add the image syntax at the bottom. |
Awesome! |
哦 |
你大爷 |
别闹,今天就试试 |
hi, I am trying this configuration to have an image as background and also the gradient on it, but the results are not like the screenshot you posted. the version i am using is 4.6.10. anyone can help ? thanks |
I'm in the same boat. My background image is stuck at a fixed size no matter what I do. How do you duplicate the full-screen responsive background image as shown in the image above? Thanks. |
Maybe things changed since, but ![color](linear-gradient(to left bottom, #b3ffc8 0%, #eeffb3 100%)) I did manage a workaround to just write/overwrite direct to css class for gradient bg: placed this styles in the index.html
} |
Currently the background of cover page is generated randomly. In some cases, when put together, the generated color and the coloring of project's logo don't quite match. Any thoughts on letting users configure their own background colors?
Another thing,
Math.floor(Math.random() * 255)
makes it impossible for hue to be greater than 255, thus the background color may never be purple or pink. Is this on purpose?The text was updated successfully, but these errors were encountered: