Move setting opacity into js
This commit is contained in:
@@ -626,10 +626,10 @@ export class SearchAddon implements ITerminalAddon {
|
|||||||
}
|
}
|
||||||
if (!element.classList.contains('xterm-find-result-decoration')) {
|
if (!element.classList.contains('xterm-find-result-decoration')) {
|
||||||
element.classList.add('xterm-find-result-decoration');
|
element.classList.add('xterm-find-result-decoration');
|
||||||
// decoration's clientWidth = actualCellWidth
|
|
||||||
element.style.left = `${element.clientWidth * result.col}px`;
|
element.style.left = `${element.clientWidth * result.col}px`;
|
||||||
element.style.width = `${element.clientWidth * result.term.length}px`;
|
element.style.width = `${element.clientWidth * result.term.length}px`;
|
||||||
element.style.backgroundColor = color;
|
element.style.backgroundColor = color;
|
||||||
|
element.style.opacity = '0.6';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,10 +179,6 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xterm-find-result-decoration {
|
|
||||||
opacity: 0.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.xterm-decoration-overview-ruler {
|
.xterm-decoration-overview-ruler {
|
||||||
z-index: 7;
|
z-index: 7;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user