/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}accountInfo { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ display: flex; align-items: center; @include spacer-component-inline("md"); min-width: 0; // for truncate to take effect in flex context /* 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 */ //accountInfo__content &__content { @include spacer-component-stack("xs"); min-width: 0; } &__title { display: flex; align-items: baseline; } // accountInfo__meta &__meta { // follows same logic as parent @include custom-prop-fallback("color","sys-color-text-primary-muted"); font-size: map-deep-get($token-font-size-map, "body", "s"); line-height: 1; @include text-truncate(); //@supports (-webkit-line-clamp: 2) { // white-space: normal; // display: -webkit-box; // -webkit-line-clamp: 2; // -webkit-box-orient: vertical; //} } &__whitelisted { vertical-align: baseline; margin-left: map-deep-get($token-spacer-inline-map, "xs"); &:before { font-size: 1em; @include custom-prop-fallback("color","sys-color-text-status-success-vivid"); } } /* modifiers */ // accountInfo -metaSmall &.-metaSmall { // follows same logic as base element #{$self}__content { @include spacer-component-stack("xxs"); } #{$self}__meta {@extend %textHelperSmall;} } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }