##// END OF EJS Templates
toggle heading-link visibility with CSS alone
MinRK -
Show More
@@ -515,14 +515,8 b' var IPython = (function (IPython) {'
515 .addClass('anchor-link')
515 .addClass('anchor-link')
516 .attr('href', '#' + link)
516 .attr('href', '#' + link)
517 .html('¶')
517 .html('¶')
518 .hide()
519 )
518 )
520 );
519 );
521 r.hover(function() {
522 r.find("a.anchor-link").show();
523 }, function() {
524 r.find("a.anchor-link").hide();
525 });
526 };
520 };
527
521
528
522
@@ -27,4 +27,9 b' a.heading-anchor {'
27 a.anchor-link:link {
27 a.anchor-link:link {
28 text-decoration: none;
28 text-decoration: none;
29 padding: 0px 20px;
29 padding: 0px 20px;
30 visibility: hidden;
30 }
31 }
32
33 h1:hover .anchor-link {
34 visibility: visible;
35 } No newline at end of file
@@ -1037,7 +1037,8 b' div.text_cell{padding:5px 5px 5px 5px;}'
1037 div.text_cell_input{color:#000000;border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;}
1037 div.text_cell_input{color:#000000;border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;}
1038 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:5px;color:#000000;}
1038 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:5px;color:#000000;}
1039 a.heading-anchor{text-decoration:none;color:inherit;}
1039 a.heading-anchor{text-decoration:none;color:inherit;}
1040 a.anchor-link:link{text-decoration:none;padding:0px 20px;}
1040 a.anchor-link:link{text-decoration:none;padding:0px 20px;visibility:hidden;}
1041 h1:hover .anchor-link{visibility:visible;}
1041 .toolbar{padding:3px 15px;border-bottom:1px #ababab solid;}.toolbar button{margin-top:2px;margin-bottom:2px;}
1042 .toolbar{padding:3px 15px;border-bottom:1px #ababab solid;}.toolbar button{margin-top:2px;margin-bottom:2px;}
1042 .toolbar select,.toolbar label{height:19px;vertical-align:middle;margin-right:2px;margin-bottom:0;display:inline;font-size:92%;margin-left:0.3em;margin-right:0.3em;padding:0px;}
1043 .toolbar select,.toolbar label{height:19px;vertical-align:middle;margin-right:2px;margin-bottom:0;display:inline;font-size:92%;margin-left:0.3em;margin-right:0.3em;padding:0px;}
1043 .toolbar select{width:auto;}
1044 .toolbar select{width:auto;}
General Comments 0
You need to be logged in to leave comments. Login now