Completed tasks on Minimal Theme to fade/strikethrough again?

Things I have tried

Have searched google & forums to see if anyone else has tried to do this or posted snippets. Only found this Strikethrough for completed/checked tasks which seems to refer to an older version of Obsidian and didn’t help.

What I’m trying to do

I’m a big fan of the Minimal Theme and love so much about it, but I would like it to be visually clearer which tasks I have checked off when in Preview. In the original Obsidian look, the colour of the task text changes to be closer to the background colour, and the text is shown with a strikethrough.

Total CSS noob so there is probably an easy way to do this but I haven’t found it! Any advice much appreciated.

1 Like

Try this css snippet:

.markdown-preview-view ul > li.task-list-item.is-checked {
  opacity: 50%;
  text-decoration: line-through;
}

You can use both (opacity and text-decoration) or only one. And ‘play’ with the values.

2 Likes

Perfect, thank you! :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.