/* variables specific to current element */ /* @TODO LEGACY DO NOT USE*/ $section-item-horiz-padding: $section-item-horiz-padding-global; .#{$namespace}domItemDetail { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ box-shadow: map-deep-get($token-shadow-map, "detail"); position: relative; // necessary for shadow to show above next element margin: 0 (-($timeline-item-horiz-padding-global + $section-item-horiz-padding)); /* 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 */ // domItemDetail__header &__header { margin-bottom: map-deep-get($token-spacer-unit-map, "48"); position: relative; } &__text { font-size: map-deep-get($token-font-size-map, "body", "xl"); &.-success100 { @include custom-prop-fallback("color", "sys-color-text-status-success-vivid"); } } &__leftContent, &__rightContent { margin-bottom: map-deep-get($token-spacer-unit-map, "24"); } &__leftContent { text-align: left; } &__rightContent { text-align: right; } &__content { display: flex; align-items: flex-start; justify-content: space-between; text-align: center; margin-bottom: map-deep-get($token-spacer-unit-map, "24"); } /* modifiers */ // domItemDetail -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }