Improve CSS for "toggle source" hovering over one more method signatures #1020
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the behavior of showing the "toggle source" element on mouseover.
For example, when a method has one more signatures by using
:call-seq:
,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, seelib/rdoc/generator/template/darkfish/class.rhtml
:rdoc/lib/rdoc/generator/template/darkfish/class.rhtml
Lines 101 to 124 in 0e060c6
For example, see https://docs.ruby-lang.org/en/3.2/Array.html#method-i-delete
Test locally
:call-seq:
temporarily like this:bundle exec rake rerdoc
to buildopen _site/RDoc.html