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

How do I consistently add an extra CSS file to override the existing stylesheets #474

Closed
vharsh opened this issue Oct 5, 2017 · 2 comments
Labels
Support Support question

Comments

@vharsh
Copy link

vharsh commented Oct 5, 2017

I tried overriding the default colour of the ReadTheDocs theme.
I saw different results

CSS files seen locally

  • "_static/css/theme.css"
  • "_static/theme_overrides.css"

CSS files seen on ReadTheDocs

  • "_static/theme_overrides.css"
    Please suggest a consistent way so that I can add a custom CSS, which is applied both locally & and online.
@vharsh vharsh changed the title How do I add an extra CSS file to override the existing style How do I consistently add an extra CSS file to override the existing stylesheets Oct 5, 2017
@Blendify Blendify added the Support Support question label Oct 5, 2017
@Blendify
Copy link
Member

Blendify commented Oct 5, 2017

Have a look at http://www.sphinx-doc.org/en/stable/extdev/appapi.html#sphinx.application.Sphinx.add_stylesheet

@Blendify Blendify closed this as completed Oct 5, 2017
@kiwiroy
Copy link

kiwiroy commented Oct 6, 2017

The set css_files from this post on theme modification worked, although adding @import url("//media.readthedocs.org/css/sphinx_rtd_theme.css"); to the top of _static/theme_overrides.css also appeared functional.

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

No branches or pull requests

3 participants