File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
lib/rdoc/generator/template/darkfish Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 15
15
< script src ="<%= rel_prefix %> /js/darkfish.js " type ="text/javascript " charset ="utf-8 "> </ script >
16
16
17
17
</ head >
18
- < body class ="<%= klass . type %> ">
18
+ < body id =" top " class ="<%= klass . type %> ">
19
19
20
20
< div id ="metadata ">
21
21
< div id ="home-metadata ">
176
176
</ div > <!-- description -->
177
177
178
178
<% klass . each_section do |section , constants , attributes | %>
179
- < div id ="<%= section . aref %> ">
179
+ < div id ="<%= section . aref %> " class =" documentation-section " >
180
180
<% if section . title then %>
181
- < h2 class ="section-header "> <%= section . title %> </ h2 >
181
+ < h2 class ="section-header ">
182
+ <%= section . title %>
183
+ < a href ="#top "> ↑ top</ a >
184
+ </ h2 >
182
185
<% end %>
183
186
184
187
<% if section . comment then %>
Original file line number Diff line number Diff line change @@ -371,6 +371,23 @@ ul.link-list .type {
371
371
color : # 666 ;
372
372
}
373
373
374
+ .documentation-section h2 {
375
+ position : relative;
376
+ }
377
+
378
+ .documentation-section h2 a {
379
+ position : absolute;
380
+ top : 8px ;
381
+ right : 10px ;
382
+ font-size : 12px ;
383
+ color : # 9b9877 ;
384
+ visibility : hidden;
385
+ }
386
+
387
+ .documentation-section h2 : hover a {
388
+ visibility : visible;
389
+ }
390
+
374
391
/* @group Method Details */
375
392
376
393
# documentation .method-source-code {
You can’t perform that action at this time.
0 commit comments