From ec6cacf00ad0dcf8a37cdfe2f31e6a06cd2a7262 Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 20 Dec 2012 03:57:08 +0000 Subject: * lib/rdoc/markup/to_html.rb (class RDoc): Added current heading and top links to headings. * lib/rdoc/generator/template/darkfish/rdoc.css: ditto * test/rdoc/test_rdoc_generator_markup.rb: Test for above * test/rdoc/test_rdoc_markup_to_html.rb: ditto * test/rdoc/test_rdoc_comment.rb: Removed trailing whitespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/generator/template/darkfish/rdoc.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/rdoc/generator/template/darkfish/rdoc.css') diff --git a/lib/rdoc/generator/template/darkfish/rdoc.css b/lib/rdoc/generator/template/darkfish/rdoc.css index b965e604e6..35207033de 100644 --- a/lib/rdoc/generator/template/darkfish/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/rdoc.css @@ -28,6 +28,27 @@ h1 { } h2,h3,h4 { margin-top: 1.5em; } +h1 span, +h2 span, +h3 span, +h4 span, +h5 span, +h6 span { + display: none; + padding-left: 1em; + font-size: 50%; + vertical-align: super; +} + +h1:hover span, +h2:hover span, +h3:hover span, +h4:hover span, +h5:hover span, +h6:hover span { + display: inline; +} + :link, :visited { color: #6C8C22; -- cgit v1.2.3