sol2/sass/_theme_badge.sass

94 lines
1.9 KiB
Sass
Raw Normal View History

2013-10-25 03:18:08 +08:00
.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
2013-11-02 14:10:23 +08:00
z-index: $z-index-tray
2013-10-25 03:18:08 +08:00
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
+clearfix
2014-02-01 00:58:37 +08:00
.fa
2013-10-25 03:18:08 +08:00
color: $section-background-color
2014-02-01 00:58:37 +08:00
.fa-book
2013-10-25 03:18:08 +08:00
float: left
.icon-book
float: left
2013-10-25 03:18:08 +08:00
&.rst-out-of-date
background-color: $red
2014-01-08 11:11:54 +08:00
color: $white
&.rst-active-old-version
background-color: $yellow
2014-01-08 11:11:54 +08:00
color: $black
2013-10-25 03:18:08 +08:00
&.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
2013-11-02 14:10:23 +08:00
border-top: solid 1px lighten($menu-background-color, 5%)
2013-10-25 03:18:08 +08:00
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
2014-02-01 00:58:37 +08:00
.fa-book
2013-11-02 14:10:23 +08:00
float: none
2013-10-25 03:18:08 +08:00
&.shift-up .rst-current-version
text-align: right
2014-02-01 00:58:37 +08:00
.fa-book
2013-10-25 03:18:08 +08:00
float: left
.icon-book
float: left
2013-10-25 03:18:08 +08:00
.rst-current-version
width: auto
height: 30px
line-height: 30px
padding: 0 $base-line-height / 4
display: block
text-align: center
2013-10-26 06:36:49 +08:00
+media($tablet)
.rst-versions
width: 85%
display: none
&.shift
display: block
img
width: 100%
height: auto
2013-10-25 03:18:08 +08:00