/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}chartDisplay { /* 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 */ // chartDisplay__row &__row { // follows same logic as parent @include make-row(); justify-content: center; margin-bottom: -($grid-gutter-width); } &__col { @include make-col-ready(); margin-bottom: $grid-gutter-width; &.-chart { @include make-col-auto(); } &.-chartLegends { width: 272px; flex-grow: 1; } } &__chart { min-width: 180px; max-width: 240px; margin: auto; } /* modifiers */ // chartDisplay -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }