Skip to content

Commit

Permalink
dev | add css for material theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Yura52 committed Oct 29, 2021
1 parent 92a64c3 commit 026ece1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions docs/_static/material_theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
dl.py > dt.sig.sig-object.py {
background: #f8f8f8;
border-top: 2px solid dimgray;
scroll-margin-top: 3.5em;
margin-top: initial;
padding-top: initial;
}

h1 > a.headerlink,
h2 > a.headerlink,
h3 > a.headerlink,
h4 > a.headerlink,
h5 > a.headerlink,
dl.py > dt.sig.sig-object.py a.headerlink {
color: dimgrey !important;
display: initial !important;
transition: initial !important;
}

h1 > a.headerlink:hover,
h2 > a.headerlink:hover,
h3 > a.headerlink:hover,
h4 > a.headerlink:hover,
h5 > a.headerlink:hover,
dl.py > dt.sig.sig-object.py a.headerlink:hover {
color: #121212 !important;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
dl.py > dt.sig.sig-object.py:hover a.headerlink {
opacity: initial !important;
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
import sphinx_material # noqa

html_theme = 'sphinx_material'
html_css_files = []
html_css_files = ['material_theme.css']
html_logo = 'images/logo_28x28.svg'
html_theme_options = {
# Full list of options: https://github.com/bashtage/sphinx-material/blob/master/sphinx_material/sphinx_material/theme.conf
Expand Down

0 comments on commit 026ece1

Please sign in to comment.