/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}heroHeading { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include spacer-component-stack-static("md"); /* 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 */ &__main { @include fluid-type($min_width, $max_width, $h1-page-cover-font-size-min, $h1-page-cover-font-size, true); line-height: map-deep-get($token-font-line-height-map,"s"); margin-bottom: 0 !important; // override for old styles } &__separator { &::after { content: ""; @extend %logoSeparator; margin-top: map-deep-get($token-spacer-stack-max-map, "md"); } } &__sub { @extend .#{$namespace}headingLight; } // heroHeading__subTitle &__subTitle { // follows same logic as parent } /* modifiers */ // heroHeading -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }