/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}dismissibleAccountCard { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ display: flex; align-items: center; @include custom-prop-fallback("background-color", "sys-color-elevation-surface-sunken"); border-radius: map-deep-get($token-radius-map, "8"); @include spacer-component-inset("sm"); @include spacer-component-inline("md"); /* 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 */ // dismissibleAccountCard___meta &__meta { // follows same logic as parent @include custom-prop-fallback("color", "sys-color-text-primary-muted"); } &__content { padding-right: map-deep-get($token-spacer-unit-map, "16"); margin-right: auto; } &__info { display: flex; align-items: center; margin-left: auto; @include spacer-component-inline("md"); } /* modifiers */ // dismissibleAccountCard -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }