Skip to content

Commit f673507

Browse files
committed
[css-ui-4] Fix examples
1 parent ca9c45d commit f673507

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

css-ui-4/Overview.bs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ Shape of the insertion caret: 'caret-shape'</h4>
14131413
<pre contentEditable=true style="background: black; color: white; font-family: monospace; padding: 1ex; caret-shape: underscore;">
14141414
user@host:css-ui-4 $ ls -a
14151415
. .. Overview.bs Overview.html
1416-
user@host:css-ui-4 $
1416+
user@host:css-ui-4 $&nbsp;
14171417
</pre>
14181418
</div>
14191419

@@ -1462,17 +1462,25 @@ Shape of the insertion caret: 'caret-shape'</h4>
14621462
white-space: pre;
14631463
background: repeating-linear-gradient(#030 0px, #030 1px, #020 1px, #020 3px);
14641464
}
1465+
1466+
.old-screen[contentEditable] {
1467+
caret: block manual;
1468+
animation: caret-old 2s infinite;
1469+
}
14651470
.old-screen span {
14661471
display:inline-block;
14671472
white-space: pre;
1468-
caret: block manual;
14691473
animation: caret-old-ref 2s infinite;
14701474

14711475
}
14721476
@keyframes caret-old-ref {
14731477
from, 50% { background-color: green; }
14741478
75%, to { background-color: transparent; }
14751479
}
1480+
@keyframes caret-old {
1481+
from, 50% { caret-color: green; }
1482+
75%, to { caret-color: transparent; }
1483+
}
14761484
</style>
14771485
<div class="old-screen" style="height: 100px">&gt; <span>&nbsp;</span></div>
14781486

0 commit comments

Comments
 (0)