diff --git a/sphinx_rtd_theme/static/theme.css b/sphinx_rtd_theme/static/theme.css index 2a3d30fb..63a7382b 100644 --- a/sphinx_rtd_theme/static/theme.css +++ b/sphinx_rtd_theme/static/theme.css @@ -3502,6 +3502,9 @@ a.wy-text-neutral:hover { .rst-versions .rst-current-version .icon, .rst-versions .rst-current-version .wy-inline-validate.wy-inline-validate-success .wy-input-context, .wy-inline-validate.wy-inline-validate-success .rst-versions .rst-current-version .wy-input-context, .rst-versions .rst-current-version .wy-inline-validate.wy-inline-validate-danger .wy-input-context, .wy-inline-validate.wy-inline-validate-danger .rst-versions .rst-current-version .wy-input-context, .rst-versions .rst-current-version .wy-inline-validate.wy-inline-validate-warning .wy-input-context, .wy-inline-validate.wy-inline-validate-warning .rst-versions .rst-current-version .wy-input-context, .rst-versions .rst-current-version .wy-inline-validate.wy-inline-validate-info .wy-input-context, .wy-inline-validate.wy-inline-validate-info .rst-versions .rst-current-version .wy-input-context, .rst-versions .rst-current-version .wy-tag-input-group .wy-tag .wy-tag-remove, .wy-tag-input-group .wy-tag .rst-versions .rst-current-version .wy-tag-remove, .rst-versions .rst-current-version .rst-content .admonition-title, .rst-content .rst-versions .rst-current-version .admonition-title, .rst-versions .rst-current-version .rst-content h1 .headerlink, .rst-content h1 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content h2 .headerlink, .rst-content h2 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content h3 .headerlink, .rst-content h3 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content h4 .headerlink, .rst-content h4 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content h5 .headerlink, .rst-content h5 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content h6 .headerlink, .rst-content h6 .rst-versions .rst-current-version .headerlink, .rst-versions .rst-current-version .rst-content dl dt .headerlink, .rst-content dl dt .rst-versions .rst-current-version .headerlink { color: #fcfcfc; } +.rst-versions .rst-current-version .icon-book { + float: left; +} .rst-versions .rst-current-version.rst-out-of-date { background-color: #e74c3c; color: white; @@ -3534,8 +3537,14 @@ a.wy-text-neutral:hover { border: none; max-width: 300px; } +.rst-versions.rst-badge .icon-book { + float: none; +} .rst-versions.rst-badge.shift-up .rst-current-version { - text-align: left; + text-align: right; +} +.rst-versions.rst-badge.shift-up .rst-current-version .icon-book { + float: left; } .rst-versions.rst-badge .rst-current-version { width: auto; diff --git a/sphinx_rtd_theme/versions.html b/sphinx_rtd_theme/versions.html index ff356a7f..cd269a58 100644 --- a/sphinx_rtd_theme/versions.html +++ b/sphinx_rtd_theme/versions.html @@ -1,8 +1,8 @@ {% if READTHEDOCS %} {# Add rst-badge after rst-versions for small badge style. #} -
+
- Read the Docs + Read the Docs v: {{ current_version }} {% if current_version != "latest" %}(old) {% endif %}