diff --git a/README.rst b/README.rst index bb6f3ec05..488bc1b13 100644 --- a/README.rst +++ b/README.rst @@ -157,4 +157,3 @@ TODO ==== * Update to font-awesome 4.0 and have it build from bower, not the copy/paste hack I have now. * 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 ac160a146..dbf4a207c 100644 --- a/demo_docs/source/conf.py +++ b/demo_docs/source/conf.py @@ -106,7 +106,9 @@ # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +html_theme_options = { + # '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. html_theme_path = ["../.."] diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index adb823221..b8d44f01a 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -127,6 +127,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 1e05b1eff..6bdb7113f 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -96,7 +96,16 @@ {# SIDE NAV, TOGGLES ON MOBILE #}