/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}avatarText { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ display: flex; align-items: center; @include spacer-component-inline("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 */ // avatarText__meta &__meta { // follows same logic as parent @include custom-prop-fallback("color", "sys-color-text-primary-muted"); } &__link { } /* modifiers */ // avatarText -altStyle &.-small { // follows same logic as base element @include spacer-component-inline("sm"); } &.-largeBtn { display: block; align-items: flex-start; position: relative; @include media-breakpoint-up(md) { display: flex; } #{$self}__content { margin-right: auto; } #{$self}__link { position: absolute; top: 0; right: 0; width: calc(100% - #{$avatar-large-dimensions-global}); text-align: right; @include media-breakpoint-up(md) { position: static; width: auto; margin-top: map-deep-get($token-spacer-stack-max-map, "md"); text-align: left; } } #{$self}__btn { margin-top: map-deep-get($token-spacer-stack-max-map, "md"); @include media-breakpoint-up(md) { margin-top: 0; } } } &.-medium { @include spacer-component-inline("md"); } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }