X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=editor.coffee;h=cbbe9c341d290ff2c9aa8775a8a4b645e0a280fa;hb=c951e0ff067bf026175ccd32890642dd05416602;hp=a5cd8d6fb2d4635d21b82cb246b072975c15f7a7;hpb=2c684978b6657acd19ac5a1a6016ed5761a260d2;p=peach-html5-editor.git diff --git a/editor.coffee b/editor.coffee index a5cd8d6..cbbe9c3 100644 --- a/editor.coffee +++ b/editor.coffee @@ -242,17 +242,19 @@ outer_css = (args) -> ret += '}' ret += '#cursor {' ret += 'position: absolute;' - ret += 'height: 1em;' # FIXME adjust for hight of text ret += 'width: 2px;' - ret += 'background: #444;' - ret += '-webkit-animation: blink 1s steps(2, start) infinite;' - ret += 'animation: blink 1s steps(2, start) infinite;' + ret += 'background: linear-gradient(0deg, rgba(0,0,0,1), rgba(255,255,255,1), rgba(0,0,0,1), rgba(255,255,255,1), rgba(0,0,0,1), rgba(255,255,255,1), rgba(0,0,0,1), rgba(255,255,255,1), rgba(0,0,0,1));' + ret += 'background-size: 200% 200%;' + ret += '-webkit-animation: blink 1s linear normal infinite;' + ret += 'animation: blink 1s linear normal infinite;' ret += '}' ret += '@-webkit-keyframes blink {' - ret += 'to { visibility: hidden; }' + ret += '0%{background-position:0% 0%}' + ret += '100%{background-position:0% -100%}' ret += '}' - ret += '@keyframes blink {' - ret += 'to { visibility: hidden; }' + ret += '@keyframes blink { ' + ret += '0%{background-position:0% 0%}' + ret += '100%{background-position:0% -100%}' ret += '}' ret += '.ann_box {' ret += 'z-index: 5;'