GHHG10/CodeServer / opencode /packages /ui /src /components /text-strikethrough.css
GHHG10's picture
download
raw
779 Bytes
/*
* TextStrikethrough — spring-animated strikethrough line
*
* Draws a line-through from left to right using clip-path on a
* transparent-text overlay that carries the text-decoration.
* Grid stacking (grid-area: 1/1) layers the overlay on the base text.
*
* Key trick: -webkit-text-fill-color hides the glyph paint while
* keeping `color` (and therefore `currentColor` / text-decoration-color)
* set to the real inherited text color.
*/
[data-component="text-strikethrough"] {
display: grid;
}
[data-slot="text-strikethrough-line"] {
-webkit-text-fill-color: transparent;
text-decoration-line: line-through;
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
[data-slot="text-strikethrough-line"] {
clip-path: none !important;
}
}

Xet Storage Details

Size:
779 Bytes
·
Xet hash:
693effee384bd3e2f0cc609283977699b721aa52f346ee4c09a1f2d69a818d77

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.