From 57486aeb726bb30056919ebd68c2aca702011ec1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 24 Sep 2007 15:07:58 +0100 Subject: toc, css, distinguish "Document Information (metadata)" link from other links, made smaller --- lib/sisu/v0/css.rb | 5 ++++- lib/sisu/v0/html.rb | 9 ++++++--- lib/sisu/v0/html_format_css.rb | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/sisu/v0/css.rb b/lib/sisu/v0/css.rb index 13e5e026..febf0cd1 100644 --- a/lib/sisu/v0/css.rb +++ b/lib/sisu/v0/css.rb @@ -422,7 +422,7 @@ WOK text-align: right; } - h1, h2, h3, h4, h5, h6 { + h0, h1, h2, h3, h4, h5, h6 { display: block; font-family: #{fonts}; font-weight: bold; @@ -642,6 +642,9 @@ WOK h6 { font-size: 100%; } + h0 { + font-size: 80%; + } h1.norm, h2.norm, h3.norm { font-size: 110%; margin-left: 10mm; diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb index 2894fa27..89c6d463 100644 --- a/lib/sisu/v0/html.rb +++ b/lib/sisu/v0/html.rb @@ -390,12 +390,11 @@ WOK end toc={} format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) - toc[:seg]=format_toc.lev1 title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/ m=/#{$1}/ para.gsub!(m,'') if para=~/^\d~\s+Document Information/ - %{#{linkname}} + %{#{linkname}} else linkname end else @@ -406,7 +405,11 @@ WOK %{#{linkname}} end format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) - toc[:scr]=format_toc.lev1 + if para =~/^\d~\s+Document Information/ + toc[:seg]=toc[:scr]=format_toc.lev0 + else + toc[:seg]=toc[:scr]=format_toc.lev1 + end toc end def level_2 diff --git a/lib/sisu/v0/html_format_css.rb b/lib/sisu/v0/html_format_css.rb index 9ef61a02..497e883c 100644 --- a/lib/sisu/v0/html_format_css.rb +++ b/lib/sisu/v0/html_format_css.rb @@ -469,6 +469,9 @@ module SiSU_HTML_Format_type def lev6 lev('h6','toc') end + def lev0 #docinfo + lev('h0','toc') + end end end __END__ -- cgit v1.2.3