/* variables specific to current element */ .#{$namespace}radio { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ cursor: pointer; width: fit-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 */ // radio__shape &__shape { // follows same logic as parent position: absolute; left: 0; top: 0; } // radio__error &__error, &__hint { margin-top: 0; padding-left: $custom-control-label-shape-space; } &__hint { @include custom-prop-fallback("color", "sys-color-text-primary-muted"); } /* modifiers */ // radio -active /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { #{$self}__shape { @include radioInputHovered(); } } } &:focus { } &:active { } &:focus, &:active { } }