.#{$namespace}btnTile { /* Save root element context for easy access if nesting is needed */ $self: &; /* variables specific to current element */ $element-specific-variables: ""; /* properties of current element + media queries */ min-width: 110px; text-align: center; @include spacer-component-inset("sm"); border-radius: map-deep-get($token-radius-map, "16"); @include custom-prop-fallback("color","sys-color-text-primary-vivid"); /* 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 */ /* modifiers */ // btnTile -success100 &.-success100 { #{$self}__icon { @include custom-prop-fallback("color", "sys-color-text-status-success-vivid"); } } // btnTile -primary100 &.-primary100 { #{$self}__icon { @include custom-prop-fallback("color", "sys-color-text-status-danger-vivid"); } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover, &:focus { @media (hover: hover) { @include custom-prop-fallback("background-color", "comp-button-secondary-background-color"); } } &:active { } &:focus, &:active { } }