/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}inputRecap { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include custom-prop-fallback("background-color", "sys-color-elevation-surface-sunken"); @include spacer-component-inset("md"); border-radius: map-deep-get($token-radius-map, "16"); /* 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 */ // inputRecap__operation &__operation { // follows same logic as parent height: $input-height; display: flex; align-items: center; justify-content: flex-end; position: relative; left: map-deep-get($token-spacer-inline-map, "lg"); } &__total { margin-top: map-deep-get($token-spacer-stack-max-map, "md"); padding-top: map-deep-get($token-spacer-stack-max-map, "md"); border-top: $border-width*2 solid; @include custom-prop-fallback("border-color", "sys-color-border-primary-moderate"); display: flex; justify-content: space-between; align-items: baseline; } /* modifiers */ // inputRecap -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }