/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}recaptcha { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ width: max-content; /* Pseudo Elements */ &::before { } &::after { } /* Include elements that are linked to the current element but have to reside at the root level of the stylesheet (e.g: keyframes) */ @at-root { } /* children - write selector in full in comments in order to facilitate search */ // recaptcha__childElement &__selectorShape { // follows same logic as parent cursor: pointer; /* if button */ &[aria-pressed="true"] { border: $border-width*2 solid; color: map-deep-get($token-color-brand-map, "secondary", "100"); } } &__inner { @include spacer-component-inline("sm"); } INPUT:checked + #{$self}__selectorShape { box-shadow: inset 0 0 0 $border-width*2 map-deep-get($token-color-brand-map, "secondary", "100") !important; color: map-deep-get($token-color-brand-map, "secondary", "100"); } /* modifiers */ // recaptcha -isDisabled [disabled] + #{$self}__selectorShape { color: map-deep-get($token-color-brand-map, "fade", "100") !important; pointer-events: none; cursor: not-allowed; } &__error { padding-left: 0; } &__hint { margin-top: map-deep-get($token-spacer-stack-max-map, "xxs"); color: map-deep-get($token-color-brand-map, "secondary", "60"); display: flex; justify-content: space-between; } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }