/* variables specific to current element */ .#{$namespace}dot { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @extend %dot; flex-shrink: 0; /* 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 */ // dot__childElement &__childElement { // follows same logic as parent } /* modifiers */ // dot -primary &.-primary100 { // follows same logic as base element @include custom-prop-fallback("background-color", "sys-color-background-status-danger-100"); } // dot -success &.-success100, &.-success120 { // follows same logic as base element @include custom-prop-fallback("background-color", "sys-color-background-status-success-120"); } // dot -faded &.-faded100 { // follows same logic as base element @include custom-prop-fallback("background-color", "sys-color-background-neutral-100"); } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }