If you use a class selector, as in your example, you can relate the following classes:
.a > .bd ~ .ce
Selects an element that has like class="ce"
which is a brother (ie comes, directly or not, after) an element that has like class="bd"
which is a child of some element of class="a"
Or, for example, if you want .ce to .ce after an element with class b or d :
.a > .b ~ .ce, .a > .d ~ .ce
Selects an element that has like class="ce"
which is a child of an element with class="b" or class="d" (or both)
which is a child of some element of class="a"
Both selectors mean that .b , .d and .ce are all child elements of .a . I should also think that it gives you the intersection of the class selector you are looking for.
source share