I used this code to make sure nothing overflows responsive divs:
.responsive * {width:100%}
However I have some sub elements that I want to exclude them and their children from the above rule. So I updated the rule to this:
.responsive * :not(.fixedSize,.fixedSize *){max-width:100%;}
the above code seems to exclude everything.
div {width:200px;border:1px solid #ff0000;line-height:40px;}
input {width:300px;}
.responsive * :not(.fixedSize,.fixedSize *){max-width:100%;}
<div class="responsive">
<input>
<div class="fixedSize">
<input>
<div>
</div>
Edit:
I alseo tried this but not working yet:
.responsive * :not(.fixedSize):not(.fixedSize *){max-width:100%;}