marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Use-case: watch for child selector #281

Closed dragontheory closed 4 years ago

dragontheory commented 4 years ago

Is this possible with css-element-queries?

The class .loaded is dynamically loaded into the parent .results and triggers the parents sibling .details to move left 300px.

.details {     
     position: absolute;     
     right: -300px;
}
.results .loaded {     
     .details {          
          right: 0;     
     }
}

Thanks!

marcj commented 4 years ago

I don't see any css-element-query rules in your css nor a question related to this library.