Style: target first level tasks only

Hey there!
I’d like to style the first level below a project, is there a way to do that? I’ve looked at the docs and some stylesheets but couldn’t find anything like that.

Project:
	- task 1 # first level task: I would like to target only this level in the stylesheet
		some description
		- subtasks

Thanks!

Unfortunately for styling purposes items don’t nest so you don’t do what you want. The best that you can do is style based on item depth:

item[depth=2] {
    color: red;
}

If you don’t nest projects then this would be able to get you want you want.

1 Like

Exactly what I needed. Thank you Jesse!

1 Like