Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 492 Bytes

exception.md

File metadata and controls

26 lines (20 loc) · 492 Bytes

Not

.region--content .block:not(#block-globalrs-content) {
	background: var(--secondaryColor);
	padding: var(--majoris);
}

Has

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