Style based on number of child elements

Adds a faded style to the container if there are 7 or more items.

        
nav:has(:nth-child(7)) {
    background-image: linear-gradient();
}