nav context selection

This commit is contained in:
Chris Eppstein 2010-04-21 09:03:13 -07:00
parent 34fe52c116
commit 5407cd4fb7
67 changed files with 116 additions and 11 deletions

View File

@ -6,6 +6,7 @@ stylesheet: _blueprint.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
meta_description: The Blueprint Framework -- ported to Sass. meta_description: The Blueprint Framework -- ported to Sass.
--- ---

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_buttons.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_colors.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_debug.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_fancy-type.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_form.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_grid.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_ie.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
:markdown :markdown

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_interaction.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_link-icons.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_liquid.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_print.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_reset.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_rtl.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_scaffolding.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_typography.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: blueprint/_utilities.scss
layout: blueprint layout: blueprint
classnames: classnames:
- reference - reference
- blueprint
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -5,6 +5,7 @@ framework: compass
stylesheet: _compass.scss stylesheet: _compass.scss
classnames: classnames:
- reference - reference
- core
meta_description: The Compass Core Framework. meta_description: The Compass Core Framework.
layout: core layout: core
--- ---

View File

@ -6,6 +6,7 @@ stylesheet: compass/_css3.scss
layout: core layout: core
classnames: classnames:
- reference - reference
- core
meta_description: Provides cross browser CSS3 mixins that take advantage of available pre-spec vendor prefixes. meta_description: Provides cross browser CSS3 mixins that take advantage of available pre-spec vendor prefixes.
layout: core layout: core
--- ---

View File

@ -7,6 +7,8 @@ meta_description: Specify the background clip for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the background origin for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the background size for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the border radius for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the box shadow for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the box sizing for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify a columnar layout for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify a downloadable font face for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify linear gradients and radial gradients for all browsers
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Declare an element inline block for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the opacity for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the text shadow for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify the 2D transformation for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ meta_description: Specify a style transition for all browsers.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- css3
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,7 @@ meta_description: Page layout module. So far, this is just the sticky-footer mix
layout: core layout: core
classnames: classnames:
- reference - reference
- core
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,8 @@ stylesheet: compass/layout/_sticky-footer.scss
layout: core layout: core
classnames: classnames:
- reference - reference
- core
- layout
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,7 @@ meta_description: Cute stuff you probably don't need.
layout: core layout: core
classnames: classnames:
- reference - reference
- core
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -6,6 +6,7 @@ stylesheet: compass/_reset.scss
layout: core layout: core
classnames: classnames:
- reference - reference
- core
meta_description: Adds a CSS Reset into your stylesheet. meta_description: Adds a CSS Reset into your stylesheet.
--- ---
- render 'reference' do - render 'reference' do

View File

@ -5,6 +5,8 @@ framework: compass
stylesheet: compass/_utilities.scss stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
meta_description: Provides basic mixins for common styling patterns. meta_description: Provides basic mixins for common styling patterns.
layout: core layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -7,6 +7,8 @@ layout: core
nav_stylesheet: compass/_utilities.scss nav_stylesheet: compass/_utilities.scss
classnames: classnames:
- reference - reference
- core
- utilities
--- ---
- render 'reference' do - render 'reference' do
%p %p

View File

@ -40,11 +40,11 @@ header[role="banner"]
+border-bottom-right-radius(0.5em) +border-bottom-right-radius(0.5em)
=active-compass-nav($id, $url) =active-compass-nav($id, $url)
body[id$="#{$id}"] #compass-nav a[href="#{$url}"] body#{$id} #compass-nav a[href="#{$url}"]
background: #cccccc background: #cccccc
cursor: default cursor: default
+active-compass-nav(-docs, unquote("/docs/")) +active-compass-nav(".docs", "/docs/")
#docs-nav #docs-nav
+pie-clearfix +pie-clearfix
@ -78,8 +78,8 @@ header[role="banner"]
background-color: #eeeeee background-color: #eeeeee
border-color: #dddddd border-color: #dddddd
=active-docs($class, $url) =active-docs($type, $url)
.#{$class} #docs-nav a[href="#{$url}"] body#{$type} #docs-nav a[href="#{$url}"]
&:link, &:visited &:link, &:visited
+trailing-border(1px, 0.25) +trailing-border(1px, 0.25)
cursor: default cursor: default
@ -87,12 +87,9 @@ header[role="banner"]
border-color: #cccccc border-color: #cccccc
border-bottom-color: white border-bottom-color: white
+active-docs(home, "index.php") +active-docs("#home", "/docs/")
+active-docs(core, "core.php") +active-docs(".core", "/docs/reference/compass/")
+active-docs(css3, "core.php") +active-docs(".blueprint", "/docs/reference/blueprint/")
+active-docs(utils, "core.php")
+active-docs(gradient, "core.php")
+active-docs(demo, "core.php")
#search-docs #search-docs
position: absolute position: absolute

View File

@ -7,7 +7,7 @@ include Nanoc3::Helpers::Rendering
include Nanoc3::Helpers::Breadcrumbs include Nanoc3::Helpers::Breadcrumbs
def body_class(item) def body_class(item)
(item[:classnames] || []).join(" ") (["docs"] + (item[:classnames] || [])).join(" ")
end end
def body_id(item) def body_id(item)