.region--content .block:not(#block-globalrs-content) {
background: var(--secondaryColor);
padding: var(--majoris);
}
We can give special directives to element B inside element A the following way.
.a:has(.b) {
display: block !important;
}
Pseudocode explanation:
SELECT ANY ELEMENT WITH THE CLASS a IF IT **HAS** AT LEAST ONE CHILD ELEMENT WITH THE CLASS b THEN GIVE ANY SUCH CHILD ELEMENT THE FOLLOWING **EXCEPTIONAL** CSS DIRECTIVES