diff --git a/README.rst b/README.rst index d06078fd..90d38952 100644 --- a/README.rst +++ b/README.rst @@ -173,4 +173,3 @@ you can add something like this to your config. Thanks to Daniel Oaks for this. TODO ==== * Separate some sass variables at the theme level so you can overwrite some basic colors. - diff --git a/demo_docs/source/conf.py b/demo_docs/source/conf.py index 56c44d0a..ea8e4b7e 100644 --- a/demo_docs/source/conf.py +++ b/demo_docs/source/conf.py @@ -107,7 +107,8 @@ html_theme = 'sphinx_rtd_theme' # further. For a list of options available for each theme, see the # documentation. html_theme_options = { - # 'sticky_navigation' : True # Set to False to disable the sticky nav while scrolling. + # 'sticky_navigation': True # Set to False to disable the sticky nav while scrolling. + # 'logo_only': True, # if we have a html_logo below, this shows /only/ the logo with no title text } # Add any paths that contain custom themes here, relative to this directory. diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index 1e906124..d85de529 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -128,6 +128,17 @@ +font-smooth &:hover background: rgba(255,255,255,.1) + img.logo + display: block // display on its own line all the time + margin: 0 auto + height: auto // undo badge styling above + width: auto + border-radius: 0 + max-width: 100% // shrink on mobile, if appropriate + background: rgba(0,0,0,0) // make hover background of parent show up properly + &.icon + img.logo + margin-top: 0.85em // space it away from the title text .wy-nav .wy-menu-vertical header diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 1feffcb0..6adb2a96 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -86,9 +86,23 @@