/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}stockCard { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include spacer-component-stack("sm"); /* 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 */ // stockCard__row &__row { display: flex; align-items: center; justify-content: space-between; @include spacer-component-inline("md"); } // stockCard__meta &__meta { // follows same logic as parent @include custom-prop-fallback("color","sys-color-text-primary-muted"); } /* modifiers */ // stockCard -hasInteraction &.-hasInteraction { // follows same logic as base element padding: map-deep-get($token-spacer-inset-map, "sm"); border-radius: map-deep-get($token-radius-map, "8"); &:hover { @media (hover: hover) { @include custom-prop-fallback("background-color", "comp-card-background-color") } } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }