diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index 0edc5c5023a..d7d0bdfdbe1 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -93,6 +93,25 @@ Details: min(15vh, 110px) for the logo size, 8rem for search box etc*/ } } +/* Styling to get the version dropdown and search box side-by-side on wide screens */ + +#version-search-wrapper { + overflow: hidden; + width: inherit; + display: flex; + flex-wrap: wrap; + justify-content: left; + align-items: center; +} + +#version-button { + padding-left: 0.5rem; + padding-right: 1rem; +} + +#search-box { + flex: 1 0 12em; +} /* Fix table text wrapping in RTD theme, * see https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html diff --git a/docs/source/_templates/docs-sidebar.html b/docs/source/_templates/docs-sidebar.html index 9ae2e19031f..fde4435df30 100644 --- a/docs/source/_templates/docs-sidebar.html +++ b/docs/source/_templates/docs-sidebar.html @@ -3,13 +3,17 @@ +
+ {% include "version-switcher.html" %} - +
+