From b02048a9036aeeed234b4282542f762eed62a10c Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 8 Dec 2013 22:17:36 +1000 Subject: [PATCH 1/3] Respect html_logo, and throw it in the sidebar, fixes #24 --- README.rst | 1 - sass/_theme_layout.sass | 8 ++++++++ sphinx_rtd_theme/layout.html | 7 ++++++- sphinx_rtd_theme/static/css/theme.css | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 76027ed2e..7a07ad8d8 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 adb823221..1f565ed09 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 0314a8028..fb18809ba 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -96,7 +96,12 @@ {# SIDE NAV, TOGGLES ON MOBILE #}