mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-07-05 23:20:31 +00:00
theme: fix copy-to-clipboard hove #175
This commit is contained in:
parent
f053f5a4bf
commit
7c04fdc473
3 changed files with 4 additions and 5 deletions
static/js
|
@ -364,7 +364,7 @@ jQuery(function() {
|
|||
}
|
||||
|
||||
code.addClass('copy-to-clipboard-inline');
|
||||
code.after('<span class="copy-to-clipboard" title="Copy to clipboard" />');
|
||||
code.after('<span class="copy-to-clipboard" title="Copy to clipboard"><i class="fas fa-copy"></i>');
|
||||
code.next('.copy-to-clipboard').on('mouseleave', function() {
|
||||
$(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue