/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}leaseOfferImage { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ position: relative; z-index: z("zero"); /* 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 */ // leaseOfferImage__bgImg &__bgImg { // follows same logic as parent height: 100%; position: absolute; object-fit: cover; top: 0; right: 0; bottom: 0; left: 0; width: 100%; z-index: z("negative"); } /* modifiers */ // leaseOfferImage -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }