Created
December 23, 2022 13:12
-
-
Save vrtmrz/8b638347f56d1dad25414953bb95d7b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* iAWriter-ish style. */ | |
.cursorWrapper .x-cursor { | |
opacity: 1; | |
background: #00bbff; | |
width: 3px; | |
left: -1px; | |
top: calc( -6px - var(--header-height)); | |
height: calc(12px + var(--cursor-height)); | |
transition: opacity; | |
} | |
/* Disable movement effect */ | |
.cursorWrapper .x-cursor::after { | |
display: none; | |
} | |
/* Blinking */ | |
.cursorWrapper .x-cursor0, | |
.cursorWrapper .x-cursor1 { | |
animation: blink1 1s 0s both infinite; | |
} | |
@keyframes blink1 { | |
0% { | |
opacity: 1; | |
} | |
45% { | |
opacity: 1; | |
} | |
50% { | |
opacity: 0.2; | |
} | |
95% { | |
opacity: 0; | |
} | |
100% { | |
opacity: 0.2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment