more sensible nav markup/structure

This commit is contained in:
Eric Meyer 2010-04-26 17:06:56 -06:00
parent 8d5e6406fa
commit feb6549a02
2 changed files with 28 additions and 35 deletions

View File

@ -56,12 +56,14 @@ header[role="banner"]
height: $base-rhythm-unit height: $base-rhythm-unit
border-color: #cccccc border-color: #cccccc
background-color: #eeeeee background-color: #eeeeee
.container
+container
+pie-clearfix
overflow: visible
ul ul
+horizontal-list +horizontal-list
+container
position: relative
z-index: 2
overflow: visible overflow: visible
position: relative
li li
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
@ -94,29 +96,19 @@ header[role="banner"]
+active-docs(".blueprint", "/docs/reference/blueprint/") +active-docs(".blueprint", "/docs/reference/blueprint/")
#version #version
// XXX This is placeholder styling. Susify me.
color: #999
+adjust-font-size-to(14px) +adjust-font-size-to(14px)
z-index: 3 +float(left)
margin-left: 1.5em
color: #999
.number .number
color: #666 color: #666
float: right
margin-right: 400px
#search-docs #search-docs
position: absolute
z-index: 1
top: 0
left: 0
width: 100%
color: #999 color: #999
form
+container
p p
+columns(3) +columns(3)
+omega +omega
+leader(.25) margin: 0
+trailer(0)
label label
+float(left) +float(left)
width: columns(1,3) + gutter(3)*.5 width: columns(1,3) + gutter(3)*.5

View File

@ -31,24 +31,25 @@
%li %li
%a{:href => "/docs/tutorials/"} tutorials %a{:href => "/docs/tutorials/"} tutorials
%nav#docs-nav{:role => "navigation"} %nav#docs-nav{:role => "navigation"}
%ul .container
%li %ul
%a{:href => "/docs/"} introduction
%li
%a{:href => "/docs/reference/compass/"} core
%li
%a{:href => "/docs/reference/blueprint/"} blueprint
/
%li %li
%a{:href => "/docs/plugins/"} plugins %a{:href => "/docs/"} introduction
#version %li
Current Version: %a{:href => "/docs/reference/compass/"} core
%a.number(href="/CHANGELOG/")= compass_version %li
#search-docs %a{:href => "/docs/reference/blueprint/"} blueprint
%form /
%p %li
%label{:for => "search"} search %a{:href => "/docs/plugins/"} plugins
%input#search{:name => "search", :type => "text", :value => "", :placeholder => "Search"} #version
Current Version:
%a.number(href="/CHANGELOG/")= compass_version
#search-docs
%form
%p
%label{:for => "search"} search
%input#search{:name => "search", :type => "text", :value => "", :placeholder => "Search"}
- if @item[:content_for_module_nav] - if @item[:content_for_module_nav]
%nav#module-nav= @item[:content_for_module_nav] %nav#module-nav= @item[:content_for_module_nav]
#page= yield #page= yield