diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-11-29 13:43:36 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-11-29 13:45:22 -0500 |
commit | 371dfc5c468e44a329543322a968285b40f62253 (patch) | |
tree | a99a1177aec9c98c95812065ea5c8e5b7f5b0d6f /lib | |
parent | html & css: ocn (object numbers) now link to themselves (diff) |
epub: ocn (object numbers) now link to themselves
* jumps to top of viewer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/epub_format.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v2/epub_format.rb b/lib/sisu/v2/epub_format.rb index 761d771e..e016b011 100644 --- a/lib/sisu/v2/epub_format.rb +++ b/lib/sisu/v2/epub_format.rb @@ -82,7 +82,7 @@ module SiSU_EPUB_Format else ocn_class='ocn' @ocn.gsub(/^(\d+|)$/, - %{<label class="#{ocn_class}">\\1</label>}) + %{<label class="#{ocn_class}"><a href="#o\\1" class="lnk#{ocn_class}">\\1</a></label>}) end end def name @@ -142,6 +142,10 @@ module SiSU_EPUB_Format color: #003399; text-decoration: underline; } + a.lnkocn:link { + color: #777777; + text-decoration: none; + } div { margin-left: 0; margin-right: 0; |