feat: Blinking cursor
This commit is contained in:
parent
f3c1161d85
commit
d59cd80df1
1 changed files with 34 additions and 0 deletions
34
style.css
34
style.css
|
|
@ -389,6 +389,40 @@ ul.links img {
|
|||
}
|
||||
}
|
||||
|
||||
/* Blinking cursor */
|
||||
|
||||
h1::after {
|
||||
content: '_';
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
animation: blink 1s steps(24, end) infinite;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
h1::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
h1::after {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
/* Dictionary */
|
||||
|
||||
.dictionary-entry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue