Merge pull request #1072 from ppwwyyxx/master
Make codeblock fold/unfold use a larger clickable area
This commit is contained in:
commit
63cef9061d
|
@ -90,6 +90,10 @@ figure.highlight
|
|||
min-width: inherit
|
||||
border-radius: inherit
|
||||
|
||||
figure.highlight.foldable
|
||||
div.level-left
|
||||
cursor: pointer // clicking the codeblock filename can toggle folding
|
||||
|
||||
/* ---------------------------------
|
||||
* Fix Gist Snippet
|
||||
* --------------------------------- */
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
toggleFold(this, fold === 'folded');
|
||||
});
|
||||
|
||||
$('figure.highlight figcaption .fold').click(function() {
|
||||
$('figure.highlight figcaption .level-left').click(function() {
|
||||
const $code = $(this).closest('figure.highlight');
|
||||
toggleFold($code.eq(0), !$code.hasClass('folded'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue