badge only css

This commit is contained in:
Dave Snider 2013-10-24 12:18:08 -07:00
parent fbea609682
commit 0dc1596e5b
6 changed files with 1829 additions and 122 deletions

View File

@ -0,0 +1,74 @@
.rst-versions
position: fixed
bottom: 0
left: 0
width: $nav-desktop-width
color: $section-background-color
background: darken($menu-background-color, 8%)
border-top: solid 10px $menu-background-color
font-family: $base-font-family
a
color: $link_color
text-decoration: none
.rst-badge-small
display: none
.rst-current-version
padding: $base-line-height / 2
background-color: darken($menu-background-color, 5%)
display: block
text-align: right
font-size: 90%
cursor: pointer
color: $green
z-index: $z-index-tray
+clearfix
.icon
color: $section-background-color
.icon-book
float: left
&.rst-out-of-date
background-color: $red
color: $white
&.shift-up .rst-other-versions
display: block
.rst-other-versions
font-size: 90%
padding: $base-line-height / 2
color: $text-medium
display: none
hr
display: block
height: 1px
border: 0
margin: 20px 0
padding: 0
border-top: solid 1px lighten($menu-background-color, 5%)
dd
display: inline-block
margin: 0
a
display: inline-block
padding: $base-line-height / 4
color: $section-background-color
&.rst-badge
width: auto
bottom: 20px
right: 20px
left: auto
border: none
max-width: $nav-desktop-width
.icon-book
float: none
&.shift-up .rst-current-version
text-align: right
.icon-book
float: left
.rst-current-version
width: auto
height: 30px
line-height: 30px
padding: 0 $base-line-height / 4
display: block
text-align: center

View File

@ -0,0 +1,7 @@
// This file just generates the RTD badge for use on docs not using the RTD theme.
@import wyrm_core/wy_variables
@import bourbon
@import wyrm_core/mixin
@import wyrm_core/font_awesome
@import badge

View File

@ -20,7 +20,7 @@
// Wyrm core styles // Wyrm core styles
@import wyrm_core/alert @import wyrm_core/alert
@import wyrm_core/autocomplete // @import wyrm_core/autocomplete
@import wyrm_core/button @import wyrm_core/button
@import wyrm_core/dropdown @import wyrm_core/dropdown
@import wyrm_core/form @import wyrm_core/form
@ -54,3 +54,4 @@
// Theme specific styles // Theme specific styles
@import breadcrumbs @import breadcrumbs
@import nav @import nav
@import badge

File diff suppressed because it is too large Load Diff

View File

@ -1970,41 +1970,6 @@ ul.icons li .icon-large:before {
background: #e74c3c; background: #e74c3c;
} }
.wy-autocomplete-group {
display: inline-block;
position: relative;
}
.wy-autocomplete-dropdown {
position: absolute;
top: 100%;
left: 0;
float: left;
min-width: 100%;
background: #fcfcfc;
z-index: 100;
border: solid 1px #cfd7dd;
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
}
.wy-autocomplete-dropdown li {
line-height: 32px;
padding: 0px 8px;
cursor: pointer;
}
.wy-autocomplete-dropdown li.on, .wy-autocomplete-dropdown li:hover {
background: #2980b9;
color: white;
}
.wy-autocomplete-dropdown img {
width: 16px;
height: 16px;
margin-right: 8px;
}
.wy-tag-input-group .wy-autocomplete-dropdown {
margin-top: -4px;
}
.btn { .btn {
/* Structure */ /* Structure */
display: inline-block; display: inline-block;
@ -3469,92 +3434,6 @@ a.wy-text-neutral:hover {
height: 0; height: 0;
} }
.rst-versions {
position: fixed;
bottom: 0;
left: 0;
width: 300px;
color: #fcfcfc;
background: #1f1d1d;
border-top: solid 10px #343131;
}
.rst-versions .rst-badge-small {
display: none;
}
.rst-versions .rst-current-version {
padding: 12px;
background-color: #272525;
display: block;
text-align: right;
font-size: 90%;
cursor: pointer;
color: #27ae60;
z-index: 400;
*zoom: 1;
}
.rst-versions .rst-current-version:before, .rst-versions .rst-current-version:after {
display: table;
content: "";
}
.rst-versions .rst-current-version:after {
clear: both;
}
.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;
}
.rst-versions.shift-up .rst-other-versions {
display: block;
}
.rst-versions .rst-other-versions {
font-size: 90%;
padding: 12px;
color: gray;
display: none;
}
.rst-versions .rst-other-versions hr {
border-top: solid 1px #413d3d;
}
.rst-versions .rst-other-versions dd {
display: inline-block;
}
.rst-versions .rst-other-versions dd a {
display: inline-block;
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 .icon-book {
float: none;
}
.rst-versions.rst-badge.shift-up .rst-current-version {
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;
height: 30px;
line-height: 30px;
padding: 0 6px;
display: block;
text-align: center;
}
.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 { .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; margin-bottom: 0;
} }
@ -4373,3 +4252,99 @@ pre.literal-block:after {
margin-left: 0; margin-left: 0;
} }
} }
.rst-versions {
position: fixed;
bottom: 0;
left: 0;
width: 300px;
color: #fcfcfc;
background: #1f1d1d;
border-top: solid 10px #343131;
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
}
.rst-versions a {
color: #2980b9;
text-decoration: none;
}
.rst-versions .rst-badge-small {
display: none;
}
.rst-versions .rst-current-version {
padding: 12px;
background-color: #272525;
display: block;
text-align: right;
font-size: 90%;
cursor: pointer;
color: #27ae60;
z-index: 400;
*zoom: 1;
}
.rst-versions .rst-current-version:before, .rst-versions .rst-current-version:after {
display: table;
content: "";
}
.rst-versions .rst-current-version:after {
clear: both;
}
.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;
}
.rst-versions.shift-up .rst-other-versions {
display: block;
}
.rst-versions .rst-other-versions {
font-size: 90%;
padding: 12px;
color: gray;
display: none;
}
.rst-versions .rst-other-versions hr {
display: block;
height: 1px;
border: 0;
margin: 20px 0;
padding: 0;
border-top: solid 1px #413d3d;
}
.rst-versions .rst-other-versions dd {
display: inline-block;
margin: 0;
}
.rst-versions .rst-other-versions dd a {
display: inline-block;
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 .icon-book {
float: none;
}
.rst-versions.rst-badge.shift-up .rst-current-version {
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;
height: 30px;
line-height: 30px;
padding: 0 6px;
display: block;
text-align: center;
}

View File

@ -14,3 +14,4 @@ $(document).ready(function() {
}); });
}); });