Does anybody know of a solution to limit the child depth when selecting an element with CSS?

Example:

.my-class div div:end(styles:here)

This would prevent having to add CSS classes to every single second div in the page while preventing styles from being passed on down to the third fourth etc. child.

Edit
Report