Skip to content

Commit

Permalink
Improve table formatting in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Jul 21, 2021
1 parent 6bf9066 commit ddfde11
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/_static/table.css
@@ -0,0 +1,15 @@
/* Slightly modified table styles from Furo theme*/

table.docutils {
border-radius: 0.2rem;
border-spacing: 0;
border-collapse: collapse;
box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);
}

table.docutils td {text-align: left}
table.docutils tr{transition:background-color .125s}
table.docutils tr:hover{
background-color:rgba(0,0,0,.035);
box-shadow:inset 0 .05rem 0 #fff
}
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -103,7 +103,7 @@
# HTML general settings
# html_favicon = join('images', 'favicon.ico')
html_js_files = ['collapsible_container.js']
html_css_files = ['collapsible_container.css']
html_css_files = ['collapsible_container.css', 'table.css']
html_show_sphinx = False
pygments_style = 'friendly'
pygments_dark_style = 'material'
Expand Down

0 comments on commit ddfde11

Please sign in to comment.