Display the current version on the docs.
This commit is contained in:
parent
e713fdb66f
commit
458a19361d
@ -2,4 +2,4 @@
|
|||||||
:patch: 0
|
:patch: 0
|
||||||
:major: 0
|
:major: 0
|
||||||
:minor: 10
|
:minor: 10
|
||||||
:build: rc3
|
:build: rc4
|
||||||
|
@ -66,16 +66,16 @@ header[role="banner"]
|
|||||||
top: -$base-rhythm-unit * 0.5
|
top: -$base-rhythm-unit * 0.5
|
||||||
margin-bottom: -$base-rhythm-unit * 0.5
|
margin-bottom: -$base-rhythm-unit * 0.5
|
||||||
position: relative
|
position: relative
|
||||||
a
|
a
|
||||||
&:link, &:visited
|
&:link, &:visited
|
||||||
display: block
|
display: block
|
||||||
padding: 0 $side-gutter-width
|
padding: 0 $side-gutter-width
|
||||||
border: 1px solid #eeeeee
|
border: 1px solid #eeeeee
|
||||||
+leading-border(1px, 0.5)
|
+leading-border(1px, 0.5)
|
||||||
+trailing-border(1px, 0.25)
|
+trailing-border(1px, 0.25)
|
||||||
border-bottom: 0
|
border-bottom: 0
|
||||||
+border-top-radius(0.5em)
|
+border-top-radius(0.5em)
|
||||||
background: #dddddd
|
background: #dddddd
|
||||||
&:hover, &:focus, &:active
|
&:hover, &:focus, &:active
|
||||||
background-color: #eeeeee
|
background-color: #eeeeee
|
||||||
border-color: #dddddd
|
border-color: #dddddd
|
||||||
@ -93,6 +93,16 @@ header[role="banner"]
|
|||||||
+active-docs(".core", "/docs/reference/compass/")
|
+active-docs(".core", "/docs/reference/compass/")
|
||||||
+active-docs(".blueprint", "/docs/reference/blueprint/")
|
+active-docs(".blueprint", "/docs/reference/blueprint/")
|
||||||
|
|
||||||
|
#version
|
||||||
|
// XXX This is placeholder styling. Susify me.
|
||||||
|
color: #999
|
||||||
|
+adjust-font-size-to(14px)
|
||||||
|
z-index: 3
|
||||||
|
.number
|
||||||
|
color: #666
|
||||||
|
float: right
|
||||||
|
margin-right: 400px
|
||||||
|
|
||||||
#search-docs
|
#search-docs
|
||||||
position: absolute
|
position: absolute
|
||||||
z-index: 1
|
z-index: 1
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
/
|
/
|
||||||
%li
|
%li
|
||||||
%a{:href => "/docs/plugins/"} plugins
|
%a{:href => "/docs/plugins/"} plugins
|
||||||
|
#version
|
||||||
|
Current Version:
|
||||||
|
%a.number(href="/CHANGELOG/")= compass_version
|
||||||
#search-docs
|
#search-docs
|
||||||
%form
|
%form
|
||||||
%p
|
%p
|
||||||
|
@ -106,3 +106,8 @@ def tutorial_item(path)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def compass_version
|
||||||
|
v = Compass.version
|
||||||
|
"#{v[:major]}.#{v[:minor]}.#{v[:teeny]}.#{v[:build]}"
|
||||||
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user