From 4cc2b919fa0ac33c40ef7a67597ef751ce48846c Mon Sep 17 00:00:00 2001 From: Slackhead Date: Mon, 21 May 2018 17:31:54 +0100 Subject: [PATCH] Change caret style --- qutebrowser/javascript/caret.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/qutebrowser/javascript/caret.js b/qutebrowser/javascript/caret.js index 7e862befc..009fdfc87 100644 --- a/qutebrowser/javascript/caret.js +++ b/qutebrowser/javascript/caret.js @@ -860,11 +860,22 @@ window._qutebrowser.caret = (function() { " position: absolute;" + " z-index: 2147483647;" + " min-height: 10px;" + - " background-color: #000;" + + " min-width: 0.6em;" + + " background: inherit;" + + " color: inherit;" + + " mix-blend-mode: difference;" + + " filter: invert(50%);" + + " animation: blink 1s step-end infinite;" + + "}"; + const blink = "@keyframes blink {" + + "50% { visibility: hidden; }" + "}"; const node = document.createElement("style"); node.innerHTML = style; document.body.appendChild(node); + const node2 = document.createElement("style"); + node2.innerHTML = blink; + document.body.appendChild(node2); }; /**