mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Workaround a problem with cloud_theme and sphinx2
This fixes a problem with sphinx and the cloud theme. Sphinx 2 adds <p> elements in the tables and lists, which causes the theme to look werid.
This commit is contained in:
parent
4c639beb89
commit
98a62c492c
2 changed files with 22 additions and 0 deletions
18
docs/_static/custom.css
vendored
Normal file
18
docs/_static/custom.css
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
th > p:first-child,
|
||||
td > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
th > p:last-child,
|
||||
td > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
li > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
li > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
|
@ -440,3 +440,7 @@ make_events()
|
|||
builtins.__xonsh__.history = None
|
||||
builtins.__xonsh__.env = {}
|
||||
builtins.__xonsh__.commands_cache = CommandsCache()
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.add_stylesheet("custom.css")
|
||||
|
|
Loading…
Add table
Reference in a new issue