mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
clipboard: fix malused Fontawesome style #649
This commit is contained in:
parent
f8d0ec0b6e
commit
4416ab4c7c
2 changed files with 1 additions and 2 deletions
|
@ -1174,7 +1174,6 @@ span > .copy-to-clipboard-button {
|
||||||
|
|
||||||
.copy-to-clipboard-button > i {
|
.copy-to-clipboard-button > i {
|
||||||
font-size: .859625rem;
|
font-size: .859625rem;
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only show copy to clipboard on hover for code blocks if configured */
|
/* only show copy to clipboard on hover for code blocks if configured */
|
||||||
|
|
|
@ -602,7 +602,7 @@ function initCodeClipboard(){
|
||||||
var button = document.createElement( 'span' );
|
var button = document.createElement( 'span' );
|
||||||
button.classList.add( 'copy-to-clipboard-button' );
|
button.classList.add( 'copy-to-clipboard-button' );
|
||||||
button.setAttribute( 'title', window.T_Copy_to_clipboard );
|
button.setAttribute( 'title', window.T_Copy_to_clipboard );
|
||||||
button.innerHTML = '<i class="fas fa-copy"></i>';
|
button.innerHTML = '<i class="far fa-copy"></i>';
|
||||||
button.addEventListener( 'mouseleave', function() {
|
button.addEventListener( 'mouseleave', function() {
|
||||||
this.removeAttribute( 'aria-label' );
|
this.removeAttribute( 'aria-label' );
|
||||||
this.classList.remove( 'tooltipped', 'tooltipped-w', 'tooltipped-se', 'tooltipped-sw' );
|
this.classList.remove( 'tooltipped', 'tooltipped-w', 'tooltipped-se', 'tooltipped-sw' );
|
||||||
|
|
Loading…
Reference in a new issue