/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}accountCard { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ border-radius: map-deep-get($token-radius-map, "8"); @include spacer-component-inset("sm"); position: relative; /* 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 */ &__inner { width: 100%; cursor: pointer; display: flex; align-items: center; @include spacer-component-inline("md"); margin: 0; } &__input { left: map-deep-get($token-spacer-unit-map, "16"); } // accountCard__meta &__meta { // follows same logic as parent @include custom-prop-fallback("color", "sys-color-text-primary-muted") } &__content { margin-right: auto; } &__whitelisted { &:before { font-size: 1em; @include custom-prop-fallback("color", "sys-color-text-highlight-vivid"); } } /* modifiers */ // accountCard -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { @include custom-prop-fallback("background-color", "comp-card-sunken-background-color"); } } &:focus { } &:active { } &:focus, &:active { } }