Skip to content

Commit c1951eb

Browse files
committed
style: Update CSS for .selection, .decoration
1 parent 4f2ada0 commit c1951eb

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

packages/test-case-component/src/styles.css

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,22 @@ pre.shiki {
8484

8585
@keyframes blink {
8686
0%,
87-
60% {
88-
border-color: #667f;
87+
50% {
88+
background: #667f;
8989
}
90-
61%,
90+
51%,
9191
100% {
92-
border-color: #6670;
92+
background: #6670;
9393
}
9494
}
9595

9696
.selection {
97-
/* display: inline-block; */
98-
border-right: 2px solid #00b;
99-
animation: blink 1400ms infinite;
100-
padding: 0px 0.5px 0px 0;
101-
margin: 0 0px 0 -1px;
97+
position: absolute;
98+
width: 2px;
10299
height: var(--line-height);
100+
background: #00b;
101+
animation: blink 1000ms infinite;
102+
/* margin-left: -3px; */
103103
}
104104

105105
.selection:not(:empty) {
@@ -108,12 +108,19 @@ pre.shiki {
108108
}
109109
.decoration {
110110
display: inline-block;
111+
line-height: 0;
112+
font-size: 0;
113+
/* vertical-align: middle; */
111114
/* padding: 0px 0.5px 0px 0.5px; */
112115
/* margin: 0 0px 0 -1px; */
113116
/* height: var(--line-height); */
114117
/* width: 100%; */
115118
}
116119

120+
.decoration:empty {
121+
display: block;
122+
}
123+
117124
.full {
118125
width: 100%;
119126
}

0 commit comments

Comments
 (0)