fix for badge

This commit is contained in:
Dave Snider 2013-10-23 17:23:06 -07:00
parent 0365a0ad14
commit a8d2d86fdd
2 changed files with 12 additions and 3 deletions

View File

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

View File

@ -1,8 +1,8 @@
{% if READTHEDOCS %}
{# Add rst-badge after rst-versions for small badge style. #}
<div class="rst-versions {# rst-badge #}" data-toggle="rst-versions">
<div class="rst-versions" data-toggle="rst-versions">
<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>
<span class="icon icon-book"> Read the Docs</span>
v: {{ current_version }}
{% if current_version != "latest" %}(old) {% endif %}
<span class="icon icon-caret-down"></span>