Hi there. I’m trying to add strikethrough on completed tasks in the preview.
The following part didn’t work:
input[checked=true] + .task-list-item{
text-decoration: line-through;
}
I’ve come up with this clumsy solution with the fixed width which I don’t really like:
.task-list-item input[checked=true]::after {
content: "";
width: 70vw;
height: 0.2em;
background: #005493;
position: absolute;
opacity: 0.7;
visibility: visible;
margin-left:16pt;
margin-top:0.75em;
}
Maybe somebody has an idea how to do this in a proper way using text-decoration: line-through;. Thanks.