Skip to content

Commit

Permalink
Rename method-click-advice to method-source-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Sep 8, 2024
1 parent be83509 commit 05dced9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/rdoc/generator/template/darkfish/class.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</span>
<%- if i == 0 and method.token_stream then -%>
<div class="method-controls">
<details class="method-click-advice">
<details class="method-source-toggle">
<summary>Source</summary>
</details>
</div>
Expand All @@ -127,7 +127,7 @@
<span class="method-args"><%= h method.param_seq %></span>
<%- if method.token_stream then -%>
<div class="method-controls">
<details class="method-click-advice">
<details class="method-source-toggle">
<summary>Source</summary>
</details>
</div>
Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ main .method-heading :link,
main .method-heading :visited {
color: inherit;
}
main .method-click-advice {
main .method-source-toggle {
position: absolute;
top: 2px;
right: 0px;
Expand Down Expand Up @@ -739,7 +739,7 @@ main .attribute-access-type {
position: static;
}

main .method-click-advice {
main .method-source-toggle {
position: static;
display: inline-block;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/template/darkfish/js/darkfish.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function showSource( e ) {
};

function hookSourceViews() {
document.querySelectorAll('.method-click-advice').forEach(function (codeObject) {
document.querySelectorAll('.method-source-toggle').forEach(function (codeObject) {
codeObject.addEventListener('click', showSource);
});
};
Expand Down

0 comments on commit 05dced9

Please sign in to comment.