File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1413,7 +1413,7 @@ Shape of the insertion caret: 'caret-shape'</h4>
1413
1413
<pre contentEditable=true style="background: black; color: white; font-family: monospace; padding: 1ex; caret-shape: underscore;">
1414
1414
user@host:css-ui-4 $ ls -a
1415
1415
. .. Overview.bs Overview.html
1416
- user@host:css-ui-4 $
1416
+ user@host:css-ui-4 $
1417
1417
</pre>
1418
1418
</div>
1419
1419
@@ -1462,17 +1462,25 @@ Shape of the insertion caret: 'caret-shape'</h4>
1462
1462
white-space: pre;
1463
1463
background: repeating-linear-gradient(#030 0px, #030 1px, #020 1px, #020 3px);
1464
1464
}
1465
+
1466
+ .old-screen[contentEditable] {
1467
+ caret: block manual;
1468
+ animation: caret-old 2s infinite;
1469
+ }
1465
1470
.old-screen span {
1466
1471
display:inline-block;
1467
1472
white-space: pre;
1468
- caret: block manual;
1469
1473
animation: caret-old-ref 2s infinite;
1470
1474
1471
1475
}
1472
1476
@keyframes caret-old-ref {
1473
1477
from, 50% { background-color: green; }
1474
1478
75%, to { background-color: transparent; }
1475
1479
}
1480
+ @keyframes caret-old {
1481
+ from, 50% { caret-color: green; }
1482
+ 75%, to { caret-color: transparent; }
1483
+ }
1476
1484
</style>
1477
1485
<div class="old-screen" style="height: 100px"> > <span> </span></div>
1478
1486
You can’t perform that action at this time.
0 commit comments