Hi Federico,
2012/6/13 Federico Bruni <[email protected]>:
> What's the best way to add a custom style?
> I can imagine it's been asked before, but I couldn't find anything useful in
> the documentation and in the archives.
>
> Best hint was in conf.py, about the _static directory.
> So I created _static/custom.css and inserted these lines:
>
> @import url("default.css");
>
> div.code.sh.root {
> background: #4D8DFE;
> }
>
> But it doesn't work. What's wrong?
Probably, custom.css is not refer from a HTML page.
It is necessary to write the following codes into "conf.py".:
def setup(app):
app.add_stylesheet('custom.css')
# and costom.css don't need "@import url("default.css");".
# see also:
http://sphinx.pocoo.org/ext/appapi.html#sphinx.application.Sphinx.add_stylesheet
Best regards.
--
Takayuki SHIMIZUKAWA
Sphinx-users.jp
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.