diff --git a/doc-src/content/reference/compass/css3.haml b/doc-src/content/reference/compass/css3.haml index 9c11b14f..e1415e3b 100644 --- a/doc-src/content/reference/compass/css3.haml +++ b/doc-src/content/reference/compass/css3.haml @@ -7,6 +7,7 @@ layout: core classnames: - reference - core + - css3 meta_description: Provides cross browser CSS3 mixins that take advantage of available pre-spec vendor prefixes. layout: core --- diff --git a/doc-src/content/reference/compass/layout.haml b/doc-src/content/reference/compass/layout.haml index 28c7a751..401ecb14 100644 --- a/doc-src/content/reference/compass/layout.haml +++ b/doc-src/content/reference/compass/layout.haml @@ -8,6 +8,7 @@ layout: core classnames: - reference - core + - layout --- - render 'reference' do %p diff --git a/doc-src/content/reference/compass/misc.haml b/doc-src/content/reference/compass/misc.haml index e3efe038..d07eb35a 100644 --- a/doc-src/content/reference/compass/misc.haml +++ b/doc-src/content/reference/compass/misc.haml @@ -8,6 +8,7 @@ layout: core classnames: - reference - core + - misc --- - render 'reference' do %p diff --git a/doc-src/content/reference/compass/reset.haml b/doc-src/content/reference/compass/reset.haml index 2c55a229..d8c77a24 100644 --- a/doc-src/content/reference/compass/reset.haml +++ b/doc-src/content/reference/compass/reset.haml @@ -7,6 +7,7 @@ layout: core classnames: - reference - core + - reset meta_description: Adds a CSS Reset into your stylesheet. --- - render 'reference' do diff --git a/doc-src/content/stylesheets/screen.sass b/doc-src/content/stylesheets/screen.sass index 3981ba77..02887c9c 100644 --- a/doc-src/content/stylesheets/screen.sass +++ b/doc-src/content/stylesheets/screen.sass @@ -193,6 +193,18 @@ article + #page +leader(1.5) +=active-module($type, $url) + body#{$type} #module-nav a[href^="#{$url}"] + &:link, &:visited + text-decoration: underline + +text-shadow + ++active-module(".core.css3", "/docs/reference/compass/css3/") ++active-module(".core.layout", "/docs/reference/compass/layout/") ++active-module(".core.misc", "/docs/reference/compass/misc/") ++active-module(".core.reset", "/docs/reference/compass/reset/") ++active-module(".core.utilities", "/docs/reference/compass/utilities/") + #local-nav +leader(1,14px) ul @@ -204,6 +216,12 @@ article margin-bottom: ($base_rhythm_unit*.5 - $px2em*1px) * (14/16) a:hover +text-shadow + a.selected + font-weight: bold + a.selected:before + content: "»" + a.selected:after + content: "«" #code +full(12) diff --git a/doc-src/layouts/core.haml b/doc-src/layouts/core.haml index 9a08d172..15b59b99 100644 --- a/doc-src/layouts/core.haml +++ b/doc-src/layouts/core.haml @@ -1,3 +1,5 @@ - render 'main' do + - content_for :module_nav do + %ul= item_tree(reference_item(:stylesheet => "_compass.scss"), :depth => 1, :omit_self => true, :headings => false) %aside(role="sidebar")= render 'partials/sidebar', :default_stylesheet => "_compass.scss" %article= yield \ No newline at end of file diff --git a/doc-src/layouts/main.haml b/doc-src/layouts/main.haml index a18f06ae..6c4d24a0 100644 --- a/doc-src/layouts/main.haml +++ b/doc-src/layouts/main.haml @@ -44,6 +44,8 @@ %p %label{:for => "search"} search %input#search{:name => "search", :type => "text", :value => "", :placeholder => "Search"} + - if @item[:content_for_module_nav] + %nav#module-nav= @item[:content_for_module_nav] = yield %script(src="/docs/javascripts/jquery-1.3.2.min.js") %script(src="/docs/javascripts/jquery-ui-1.7.2.custom.min.js") diff --git a/doc-src/lib/default.rb b/doc-src/lib/default.rb index 3ad99636..0e9c3c69 100644 --- a/doc-src/lib/default.rb +++ b/doc-src/lib/default.rb @@ -57,7 +57,7 @@ end def item_tree(item, options = {}) crumb = item[:crumb] || item[:title] - options[:heading_level] ||= 1 + options[:heading_level] ||= 1 if options.fetch(:headings, true) child_html = "" if options.fetch(:depth,1) > 0 if item.children.any? @@ -65,7 +65,7 @@ def item_tree(item, options = {}) item.children.sort_by{|c| c[:crumb] || c[:title]}.each do |child| child_opts = options.dup child_opts[:depth] -= 1 if child_opts.has_key?(:depth) - child_opts[:heading_level] += 1 + child_opts[:heading_level] += 1 if child_opts[:heading_level] child_opts.delete(:omit_self) child_html << item_tree(child, child_opts) end @@ -79,8 +79,6 @@ def item_tree(item, options = {}) suffix = nil if item.identifier == @item.identifier css_class = %Q{class="selected"} - prefix = "»" - suffix = "«" end contents = unless options[:omit_self] hl = if options[:heading_level] @@ -88,7 +86,7 @@ def item_tree(item, options = {}) else "span" end - %Q{
  • <#{hl}>#{prefix}#{crumb}#{suffix}
  • } + %Q{
  • <#{hl}>#{crumb}
  • } end %Q{#{contents}#{child_html}} end