small badge styl

This commit is contained in:
Dave Snider 2013-10-23 16:38:10 -07:00
parent 0ad4e021f9
commit 120fdc68b8
2 changed files with 27 additions and 0 deletions

View File

@ -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;

View File

@ -1,5 +1,7 @@
{% if READTHEDOCS %}
{# Add rst-badge-small after rst-versions for small badge style. #}
<div class="rst-versions" data-toggle="rst-versions">
<span class="rst-badge-small icon icon-book" data-toggle="rst-current-version"> Read the Docs <span class="icon icon-caret-down"></span></span>
<span class="rst-current-version {% if current_version != "latest" %}rst-out-of-date{% endif %}" data-toggle="rst-current-version">
<span class="float-left icon icon-book"> Read the Docs</span>
v: {{ current_version }}