Permalink
Browse files

Add jump-to-top link

  • Loading branch information...
1 parent 897119b commit 99f72107b2b1898f414433de3635a8c84fc89af1 @drbrain drbrain committed Feb 5, 2011
@@ -15,7 +15,7 @@
<script src="<%= rel_prefix %>/js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
-<body class="<%= klass.type %>">
+<body id="top" class="<%= klass.type %>">
<div id="metadata">
<div id="home-metadata">
@@ -176,9 +176,12 @@
</div><!-- description -->
<% klass.each_section do |section, constants, attributes| %>
- <div id="<%= section.aref %>">
+ <div id="<%= section.aref %>" class="documentation-section">
<% if section.title then %>
- <h2 class="section-header"><%= section.title %></h2>
+ <h2 class="section-header">
+ <%= section.title %>
+ <a href="#top">&uarr; top</a>
+ </h2>
<% end %>
<% if section.comment then %>
@@ -371,6 +371,23 @@ ul.link-list .type {
color: #666;
}
+.documentation-section h2 {
+ position: relative;
+}
+
+.documentation-section h2 a {
+ position: absolute;
+ top: 8px;
+ right: 10px;
+ font-size: 12px;
+ color: #9b9877;
+ visibility: hidden;
+}
+
+.documentation-section h2:hover a {
+ visibility: visible;
+}
+
/* @group Method Details */
#documentation .method-source-code {

0 comments on commit 99f7210

Please sign in to comment.