From 120fdc68b86663f300394b6c63644048c3a13fac Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Wed, 23 Oct 2013 16:38:10 -0700 Subject: [PATCH] small badge styl --- sphinx_rtd_theme/static/theme.css | 25 +++++++++++++++++++++++++ sphinx_rtd_theme/versions.html | 2 ++ 2 files changed, 27 insertions(+) diff --git a/sphinx_rtd_theme/static/theme.css b/sphinx_rtd_theme/static/theme.css index 129894b5..72a28346 100644 --- a/sphinx_rtd_theme/static/theme.css +++ b/sphinx_rtd_theme/static/theme.css @@ -3478,6 +3478,9 @@ a.wy-text-neutral:hover { background: #1f1d1d; border-top: solid 10px #343131; } +.rst-versions .rst-badge-small { + display: none; +} .rst-versions .rst-current-version { padding: 12px; background-color: #272525; @@ -3523,6 +3526,28 @@ a.wy-text-neutral:hover { padding: 6px; color: #fcfcfc; } +.rst-versions.rst-badge { + width: auto; + bottom: 20px; + right: 20px; + left: auto; + border: none; + max-width: 300px; +} +.rst-versions.rst-badge .rst-badge-small { + background-color: #272525; + width: auto; + height: 30px; + line-height: 30px; + padding: 0 6px; + display: block; + text-align: center; + font-size: 12px; + cursor: pointer; +} +.rst-versions.rst-badge .rst-current-version { + display: none; +} .rst-content .note p.last, .rst-content .note p.first, .rst-content .attention p.last, .rst-content .attention p.first, .rst-content .caution p.last, .rst-content .caution p.first, .rst-content .danger p.last, .rst-content .danger p.first, .rst-content .error p.last, .rst-content .error p.first, .rst-content .hint p.last, .rst-content .hint p.first, .rst-content .important p.last, .rst-content .important p.first, .rst-content .tip p.last, .rst-content .tip p.first, .rst-content .warning p.last, .rst-content .warning p.first { margin-bottom: 0; diff --git a/sphinx_rtd_theme/versions.html b/sphinx_rtd_theme/versions.html index b5ae9ad9..16c3daf6 100644 --- a/sphinx_rtd_theme/versions.html +++ b/sphinx_rtd_theme/versions.html @@ -1,5 +1,7 @@ {% if READTHEDOCS %} +{# Add rst-badge-small after rst-versions for small badge style. #}
+ Read the Docs Read the Docs v: {{ current_version }}