Skip to content

Commit e8f22ce

Browse files
authored
[DOC] Improve CSS for "toggle source" hovering over one more method signatures
This commit improves the behavior of showing the "toggle source" element on mouseover. For example, when a method has one more signatures by using `:call-seq:`, ```ruby # :call-seq: # foo {|element| ... } -> self # foo -> new_enumeration def foo end ``` The current CSS doesn't show "toggle source" even when hovering the second signature `foo -> new_enumeration`. But this change will show "toggle source" always when hovering over any signature. For details about the `.method-header` element, see `lib/rdoc/generator/template/darkfish/class.rhtml`: https://github.com/ruby/rdoc/blob/0e060c69f51ec4a877e5cde69b31d47eaeb2a2b9/lib/rdoc/generator/template/darkfish/class.rhtml#L101-L124 For example, see https://docs.ruby-lang.org/en/3.2/Array.html#method-i-delete
1 parent b93687f commit e8f22ce

File tree

1 file changed

+1
-1
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+1
-1
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ main .method-click-advice {
567567
line-height: 20px;
568568
background: url(../images/zoom.png) no-repeat right top;
569569
}
570-
main .method-heading:hover .method-click-advice {
570+
main .method-header:hover .method-click-advice {
571571
visibility: visible;
572572
}
573573

0 commit comments

Comments
 (0)