I am trying to set a custom css selector for an input if there is a button present directly below it or simply contained within the c-form. Any ideas what selector I can use? I was thinking of using not selector but I am not sure.
A simple redirection to an existing question would be appreciated. I haven't seen what I want based on my search criteria.
Current Css
c-form input {
width: auto;
}
c-form input:not(c-form>button???) {
width: 100%;
}
Example
<c-form>
<input> --width:auto;
</c-form>
<c-form>
<input> --width:100%;
<button></button>
</c-form>