diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-11-29 13:37:21 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-11-29 13:42:15 -0500 |
commit | e54d00b5d0e4c974619dd919697894825e6ecdc4 (patch) | |
tree | 5eaf65bca7fd4028c95fba7128b3db70767b920e /lib | |
parent | texpdf, use of monospace in headings causes table of contents breakage, fix (diff) |
html & css: ocn (object numbers) now link to themselves
* jumps to top of browser
* provides link url
(requested, Ben Armstrong (live-manual))
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/css.rb | 4 | ||||
-rw-r--r-- | lib/sisu/v2/html_format.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v2/css.rb b/lib/sisu/v2/css.rb index 38913431..9856c0d0 100644 --- a/lib/sisu/v2/css.rb +++ b/lib/sisu/v2/css.rb @@ -261,6 +261,10 @@ WOK color: #000000; background-color: #f9f9aa; } + a.lnkocn:link { + color: #777777; + text-decoration: none; + } /* a:hover { border-bottom: 2px solid #777777; diff --git a/lib/sisu/v2/html_format.rb b/lib/sisu/v2/html_format.rb index c4758c5f..89ee812f 100644 --- a/lib/sisu/v2/html_format.rb +++ b/lib/sisu/v2/html_format.rb @@ -82,7 +82,7 @@ module SiSU_HTML_Format else ocn_class='ocn' @ocn.gsub(/^(\d+|)$/, - %{<label class="#{ocn_class}"><a name="#{@ocn}">\\1</a></label>}) + %{<label class="#{ocn_class}"><a name="#{@ocn}" href="##{@ocn}" class="lnk#{ocn_class}">\\1</a></label>}) end end def name |