Then as far as I know, that's not possible. I don't really see the point in it either, just use a .string class without any number in both your rule and your element's class list, it'd accomplish the same end result.

If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

If you want different rules at each level then you have to write different rules for each level. But I think it's more likely you want specific rules for the first level or two and then the same rules for every level after (eg, expand down at the top and expand right for the rest). And that's certainly doable: a rule for the first level, a rule for the second level, then a rule for any level below the second level.

Advice: do away with the built-up classnames (menu-depth-X and those sub- prefixes) and use one term for each. The hierarchy is not determined by the class name but by its location relative to others.