Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/source/_static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion docs/source/_templates/docs-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>

<div id="version-search-wrapper">

{% include "version-switcher.html" %}

<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get">
<form id="search-box" class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="{{ theme_search_bar_text }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" >
</form>

</div>

<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
<div class="bd-toc-item active">
{% if "python/api" in pagename or "python/generated" in pagename %}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_templates/version-switcher.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="dropdown">
<div id="version-button" class="dropdown">
<button type="button" class="btn btn-secondary btn-sm navbar-btn dropdown-toggle" id="version_switcher_button" data-toggle="dropdown">
{{ release }}
<span class="caret"></span>
Expand Down