Skip to content

Commit 1dd0278

Browse files
committed
Rename method-click-advice to method-source-toggle
1 parent daf6b06 commit 1dd0278

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/rdoc/generator/template/darkfish/class.rhtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
</span>
111111
<%- if i == 0 and method.token_stream then -%>
112112
<div class="method-controls">
113-
<details class="method-click-advice">
113+
<details class="method-source-toggle">
114114
<summary>Source</summary>
115115
</details>
116116
</div>
@@ -127,7 +127,7 @@
127127
<span class="method-args"><%= h method.param_seq %></span>
128128
<%- if method.token_stream then -%>
129129
<div class="method-controls">
130-
<details class="method-click-advice">
130+
<details class="method-source-toggle">
131131
<summary>Source</summary>
132132
</details>
133133
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ main .method-heading :link,
626626
main .method-heading :visited {
627627
color: inherit;
628628
}
629-
main .method-click-advice {
629+
main .method-source-toggle {
630630
position: absolute;
631631
top: 2px;
632632
right: 0px;
@@ -743,7 +743,7 @@ main .attribute-access-type {
743743
position: static;
744744
}
745745

746-
main .method-click-advice {
746+
main .method-source-toggle {
747747
position: static;
748748
display: inline-block;
749749
}

lib/rdoc/generator/template/darkfish/js/darkfish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function showSource( e ) {
3434
};
3535

3636
function hookSourceViews() {
37-
document.querySelectorAll('.method-click-advice').forEach(function (codeObject) {
37+
document.querySelectorAll('.method-source-toggle').forEach(function (codeObject) {
3838
codeObject.addEventListener('click', showSource);
3939
});
4040
};

0 commit comments

Comments
 (0)