From 87f9c08e9481bd34ebd6c09bf52b4b19aff8513a Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Mon, 30 Sep 2024 23:30:58 -0400 Subject: [PATCH] Clean up the "toggle source" link --- .../generator/template/darkfish/class.rhtml | 12 ++++++------ .../generator/template/darkfish/css/rdoc.css | 16 +++++----------- .../generator/template/darkfish/images/zoom.png | Bin 692 -> 0 bytes rdoc.gemspec | 1 - 4 files changed, 11 insertions(+), 18 deletions(-) delete mode 100644 lib/rdoc/generator/template/darkfish/images/zoom.png diff --git a/lib/rdoc/generator/template/darkfish/class.rhtml b/lib/rdoc/generator/template/darkfish/class.rhtml index 6c64ba6c98..b182be2732 100644 --- a/lib/rdoc/generator/template/darkfish/class.rhtml +++ b/lib/rdoc/generator/template/darkfish/class.rhtml @@ -103,14 +103,14 @@ <%- if (call_seq = method.call_seq) then -%> <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
+ <%- if i == 0 and method.token_stream then -%> + Toggle source + <%- end -%> <%= h(call_seq.strip. gsub( /^\w+\./m, '')). gsub(/(.*)[-=]>/, '\1→') %> - <%- if i == 0 and method.token_stream then -%> - click to toggle source - <%- end -%>
<%- end -%> <%- elsif method.has_call_seq? then -%> @@ -119,11 +119,11 @@ <%- else -%>
- <%= h method.name %><%= h method.param_seq %> <%- if method.token_stream then -%> - click to toggle source + Toggle source <%- end -%> + <%= h method.name %><%= h method.param_seq %>
<%- end -%> diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 7a42e62522..657b2a14b1 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -628,18 +628,12 @@ main .method-heading :visited { color: inherit; } main .method-click-advice { - position: absolute; - top: 2px; - right: 5px; - font-size: 12px; color: #9b9877; - visibility: hidden; - padding-right: 20px; - line-height: 20px; - background: url(../images/zoom.png) no-repeat right top; -} -main .method-header:hover .method-click-advice { - visibility: visible; + display: inline-block; + float: right; + font-size: 12px; + font-weight: normal; + line-height: 25px; } main .method-alias .method-heading { diff --git a/lib/rdoc/generator/template/darkfish/images/zoom.png b/lib/rdoc/generator/template/darkfish/images/zoom.png deleted file mode 100644 index 908612e394525fc2e52a7e9b94689c25ce167381..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 692 zcmV;l0!#ggP)m+BBgry{~j2fHLegbHP( zrgXNbr0}2;^nywdjLjZe?uxtrd3D(pZH@fFFc0{BW_~jxoO1w7-VX;6vK@ROA$$R6 zEmo;Ht-Mj|>5jUy{bQ^V5@53LRI8AgLpUm|m+15sqcz@QtVSo|oz7ArM8?pIn+>gN z0b=4_b5O|4A*;Q+vc9Vqr~%3V155*NV~@gTz}KSUiKB-uJzjMZ>5%Q#n24H!V{ zTY(LLAE*NAHZ}C#wnj%Bw5OFIkRhkkAW#kDC3j9Wm0YXRaXlyyp>#mVfYG)eC;@ab zDb=T-BCAY4LI(Z@GOTr2V_A{pRwSmz+8Be>CjAw(=gnbVWAeguvZa93JmL(EDxv1m z0OP4q=fpAK1Mq!C2`OkEn37o;m#wF#(t(8Pu#S?2f#x<~4EO{@fmm`p9veD6RZ_jp z@Au4};q&`XuKEYgIiB4((kgxOs#YdqJw0fY>9^K_agEu5+$#k;w#%I2N>n_?)YIqu z`tq&#_^p?-%K*U0^}|7+9U(&k0?s;=r=uCZ%)H9_edH8wK}gB(nUB1FFk+2Ol%BXV zHoFY`D~2x|2