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

Arbitrary background color for cover page #40

Closed
Leopoldthecoder opened this issue Dec 27, 2016 · 9 comments
Closed

Arbitrary background color for cover page #40

Leopoldthecoder opened this issue Dec 27, 2016 · 9 comments

Comments

@Leopoldthecoder
Copy link
Contributor

Leopoldthecoder commented Dec 27, 2016

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?

@QingWei-Li
Copy link
Member

QingWei-Li commented Dec 27, 2016

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.

@Leopoldthecoder
Copy link
Contributor Author

Awesome!

@QingWei-Li
Copy link
Member

image

1.4.0 is now released!

@Leopoldthecoder
Copy link
Contributor Author

@QingWei-Li
Copy link
Member

你大爷

@Leopoldthecoder
Copy link
Contributor Author

别闹,今天就试试

@mazeitor
Copy link

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

@ed1chandler
Copy link

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.

@pdao1
Copy link

pdao1 commented Jul 18, 2023

Maybe things changed since, but ![color](linear-gradient(to left bottom, #b3ffc8 0%, #eeffb3 100%))
doesn't work.

I did manage a workaround to just write/overwrite direct to css class for gradient bg:

placed this styles in the index.html

.cover.show {
background: linear-gradient(to left top, #821617 0%, #B31F29 20%, #FEC443 100%) !important;

}

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

No branches or pull requests

5 participants