mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont show border on parent elements when hovering over child elements
This commit is contained in:
parent
b131d9226d
commit
c62f144bd7
@ -43,8 +43,9 @@
|
||||
for (let elem of document.body.getElementsByTagName('*')) {
|
||||
var style = window.getComputedStyle(elem);
|
||||
if (style.display === 'block' || style.display === 'flex-box' || style.display === 'box') {
|
||||
elem.classList.add("calibre_toc_hover");
|
||||
elem.onclick = onclick;
|
||||
elem.addEventListener('click', onclick);
|
||||
elem.addEventListener('mouseover', function(ev) { this.classList.add('calibre_toc_hover'); ev.stopPropagation(); });
|
||||
elem.addEventListener('mouseout', function(ev) { this.classList.remove('calibre_toc_hover'); ev.stopPropagation(); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user