mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
Fix caret animation to work with all styles
This commit is contained in:
parent
845a19a615
commit
c432e94839
|
@ -321,7 +321,6 @@ a:hover {
|
|||
@extend #caret, .block;
|
||||
background: transparent;
|
||||
border: 1px solid var(--caret-color);
|
||||
animation-name: caretOutlineFlash;
|
||||
}
|
||||
|
||||
#caret.underline{
|
||||
|
@ -348,19 +347,10 @@ a:hover {
|
|||
|
||||
@keyframes caretFlash {
|
||||
0%, 100% {
|
||||
background: transparent;
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
background: var(--caret-color);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes caretOutlineFlash {
|
||||
0%, 100% {
|
||||
border-color: transparent;
|
||||
}
|
||||
50% {
|
||||
border-color: var(--caret-color);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ function showCaret() {
|
|||
|
||||
function stopCaretAnimation() {
|
||||
$("#caret").css("animation-name", "none");
|
||||
$("#caret").css("background-color", "var(--caret-color)");
|
||||
$("#caret").css("opacity", "1");
|
||||
}
|
||||
|
||||
function startCaretAnimation() {
|
||||
|
|
Loading…
Reference in a new issue