-
Notifications
You must be signed in to change notification settings - Fork 16
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
Overwriting CSS for PDF #98
Comments
[EDITED]
|
Thank you so much for attempting to help me out! I'm having permissions errors installing sass at the moment, so it's difficult to test out these instructions to their fullest extent. I'll keep working on that. Before I clicked to open GitHub and saw that you had updated your instructions, I was simply trying to add CSS files via the My question is, whether I compile the SCSS to CSS or not, how is the Also, to be clear, I'm attempting to overwrite a rule in I believe these CSS additions are:
and
I'll keep working on this and get back to you. Again, thank you so much! |
Okay, coming back to this to let you know that your suggestions worked great once I figured out my npm issues! I had to use For anyone else with this problem, you can also overwrite the scss itself, not just the variables. I took the scss available in https://github.com/useblocks/sphinx-simplepdf/tree/main/sphinx_simplepdf/themes/simplepdf_theme/static/styles/sources and edited it to suit my needs in my custom scss file. Also, as an edit to step four in @sachin-suresh-rapyuta's fantastic help above, make sure you're using Furthermore, I finally realized why my doc had an extra blank page before the first h2 header. It's being caused by the I hope to come back and add some docs for the css overwrite, so I'll leave this issue open, but here's the confirmation that this works for anyone else wondering and scouring the issues looking for answers. |
Thanks for the corrections @kathatherine. I updated the steps. I am glad my small solution worked. |
Hi, I can't tell from the documentation if this is possible, but is there a way with this extension to overwrite any of the CSS being created by the
.scss
files?Based on https://sphinx-simplepdf.readthedocs.io/en/latest/configuration.html, it appears that you can only change the variables outlined in https://github.com/useblocks/sphinx-simplepdf/blob/main/sphinx_simplepdf/themes/simplepdf_theme/static/styles/sources/_variables.scss.
Is this the case? If you can do more CSS changes than that, I'd love to know how and I'd be happy to help update the documentation to add that information.
If not, it would be great if that feature could be added. Thanks for the extension!
The text was updated successfully, but these errors were encountered: