From ae38e0db8cb6eba45ffb6c1a3e76c1b20efba696 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 24 Feb 2016 13:37:12 -0500 Subject: [PATCH] fix cursor blink in firefox, tweak --- editor.coffee | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/editor.coffee b/editor.coffee index e3b922e..df8ad8a 100644 --- a/editor.coffee +++ b/editor.coffee @@ -174,17 +174,15 @@ css += 'height: 1em;' css += 'width: 2px;' css += 'margin-left: -1px;' css += 'margin-right: -1px;' -css += 'background: #000;' -css += '-webkit-animation: 1s blink step-end infinite;' -css += 'animation: 1s blink step-end infinite;' +css += 'background: #444;' +css += '-webkit-animation: blink 1s steps(2, start) infinite;' +css += 'animation: blink 1s steps(2, start) infinite;' css += '}' -css += '@-webkit-keyframes "blink" {' -css += 'from, to { background: #000; }' -css += '50% { background: transparent; }' +css += '@-webkit-keyframes blink {' +css += 'to { visibility: hidden; }' css += '}' -css += '@keyframes "blink" {' -css += 'from, to { background: #000; }' -css += '50% { background: transparent; }' +css += '@keyframes blink {' +css += 'to { visibility: hidden; }' css += '}' # key codes: -- 1.7.10.4