diff --git a/README.rst b/README.rst index 76027ed2..7a07ad8d 100644 --- a/README.rst +++ b/README.rst @@ -138,4 +138,3 @@ TODO * Build real demo docs with lots of rst examples * 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. -* Add the ability to set a logo. diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index adb82322..1f565ed0 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -127,6 +127,14 @@ +font-smooth &:hover background: rgba(255,255,255,.1) + img.logo + display: block // display on its own line all the time + margin: 0.85em auto 0 + 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 .wy-nav .wy-menu-vertical header diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 0314a802..fb18809b 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -96,7 +96,12 @@ {# SIDE NAV, TOGGLES ON MOBILE #}