-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Add CSS to default HTML template #6601
Conversation
2f9b5ca
to
2adde29
Compare
ab72641
to
b84f8b2
Compare
I'd have to think more about this, it's an interesting idea. Note: the styles partial should have access to the same variables. |
26d87d1
to
6317352
Compare
18d262d
to
35b05b5
Compare
2e52661
to
85d96b6
Compare
I have now tried this. The output is beautiful, and it adapts well to smaller screens. |
Thanks, will do! |
I decided to merge this; comments were favorable. It was mentioned that this might give rise to endless requests for tweaks in the styling -- that is a danger, but we'll see! |
Two things that inspired this:
Maybe this has been discussed before, but what about including something like this in the default HTML template?
I also quickly looked into moving this into thestyles.html
partial, but there we don't have access to all those variables I assume?TODO:
fontcolor
,backgroundcolor
(andstyle
), although I suppose we could add a few more... considering how many we have for the LaTeX template... to allow even more customizations out of the box.--css
was used? But I cannot imagine any scenario where you'd use--standalone
, but wouldn't want any CSS whatsoever.