/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}modal { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ /* 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 */ // modal__stickyBodyHeader &__stickyBodyHeader { // follows same logic as parent top: -($modal-inner-padding-mobile); z-index: z("low"); background-color: map-deep-get($token-color-grayscale-map, "0"); padding-top: map-deep-get($token-spacer-inset-map, "md"); padding-bottom: map-deep-get($token-spacer-inset-map, "md"); margin-top: -(map-deep-get($token-spacer-inset-map, "md")); @include media-breakpoint-up(sm) { top: -24px; } &.-inContentFlow {} } // modal__stickyBodyHeaderSearch &__stickyBodyHeaderSearch { margin-top: -(map-deep-get($token-spacer-stack-max-map, "md")); } /* modifiers */ // modal -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }