We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is sometimes necessary to add a CSS file with attributes such as media (for print, dark mode, etc.). As of today, this is not possible when using sphinx_rtd_theme because attributes seem to be ignored (excepting title): https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html#L27
media
sphinx_rtd_theme
title
Create a custom CSS file and add it to your project like this:
app.add_css_file("css/my_customization.css", media="print")
In the example above, media attribute is ignored on the rendered pages.
N/A
All attributes given to CSS files should be taken into account.
The text was updated successfully, but these errors were encountered:
css_tag
Done in #1519
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem
It is sometimes necessary to add a CSS file with attributes such as
media
(for print, dark mode, etc.). As of today, this is not possible when usingsphinx_rtd_theme
because attributes seem to be ignored (exceptingtitle
): https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html#L27Reproducible Project
Create a custom CSS file and add it to your project like this:
In the example above,
media
attribute is ignored on the rendered pages.Error Logs/Results
N/A
Expected Results
All attributes given to CSS files should be taken into account.
Environment Info
The text was updated successfully, but these errors were encountered: