Skip to content

Commit

Permalink
[css-ui-4] Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal committed Dec 14, 2024
1 parent ca9c45d commit f673507
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions css-ui-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ Shape of the insertion caret: 'caret-shape'</h4>
<pre contentEditable=true style="background: black; color: white; font-family: monospace; padding: 1ex; caret-shape: underscore;">
user@host:css-ui-4 $ ls -a
. .. Overview.bs Overview.html
user@host:css-ui-4 $
user@host:css-ui-4 $&nbsp;
</pre>
</div>

Expand Down Expand Up @@ -1462,17 +1462,25 @@ Shape of the insertion caret: 'caret-shape'</h4>
white-space: pre;
background: repeating-linear-gradient(#030 0px, #030 1px, #020 1px, #020 3px);
}

.old-screen[contentEditable] {
caret: block manual;
animation: caret-old 2s infinite;
}
.old-screen span {
display:inline-block;
white-space: pre;
caret: block manual;
animation: caret-old-ref 2s infinite;

}
@keyframes caret-old-ref {
from, 50% { background-color: green; }
75%, to { background-color: transparent; }
}
@keyframes caret-old {
from, 50% { caret-color: green; }
75%, to { caret-color: transparent; }
}
</style>
<div class="old-screen" style="height: 100px">&gt; <span>&nbsp;</span></div>

Expand Down

0 comments on commit f673507

Please sign in to comment.