/* variables specific to current element */ $message-font-size: map-deep-get($token-font-size-map, "body", "s"); .#{$namespace}message { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include spacer-component-inset("md"); border-radius: map-deep-get($token-radius-map, "16"); @include custom-prop-fallback("background-color","sys-color-background-primary-10"); @include custom-prop-fallback("color","sys-color-text-primary-vivid"); font-size: $message-font-size; /* 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 */ // message__childElement &__header { display: flex; align-items: stretch; @include spacer-component-inline("sm"); } &__iconAlign { // follows same logic as parent display: flex; flex-direction: column; justify-content: center; } &__heading + * { margin-top: map-deep-get($token-spacer-stack-max-map, "xs"); } &__btn { align-self: flex-start; margin-top: map-deep-get($token-spacer-stack-max-map, "md"); } &__option { display: flex; align-items: flex-start; &::before { display: flex; align-items: center; height: $message-font-size * map-deep-get($token-font-line-height-map, "xxl"); content: map-deep-get($token-icon-map, "arrownext"); @include icon-base; margin-right: map-deep-get($token-spacer-unit-map, "8"); font-size: map-deep-get($token-font-size-map, "body", "xl"); } } /* modifiers */ // message -light &.-light { // follows same logic as base element @include custom-prop-fallback("background-color","sys-color-elevation-surface-flat"); } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }