/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}actionsList { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ display: flex; flex-direction: column; /* 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 */ // actionsList__childElement &__heading { // follows same logic as parent padding-bottom: map-deep-get($token-spacer-unit-map, "16"); //margin-bottom: map-deep-get($token-spacer-unit-map, "16"); display: flex; align-items: center; justify-content: space-between; @include custom-prop-fallback("background-color", "sys-color-elevation-surface-flat") } &__title { @extend .h3; } &__body { @include spacer-component-stack("sm"); display: flex; flex-direction: column; flex-grow: 1; } &__bodyItem { margin-left: -(map-deep-get($token-spacer-unit-map, "8")); margin-right: -(map-deep-get($token-spacer-unit-map, "8")); flex-grow: 1; } &__bodyEmpty { text-align: center; padding: map-deep-get($token-spacer-unit-map, "40") 0; } &__footer { border-top: $border-width solid; @include custom-prop-fallback("border-top-color","sys-color-border-primary-moderate"); padding-top: map-deep-get($token-spacer-unit-map, "16"); margin-top: map-deep-get($token-spacer-unit-map, "16"); } &__meta { @include custom-prop-fallback("color", "sys-color-text-primary-muted") } /* modifiers */ // actionsList -isListItem &.-isListItem { // follows same logic as base element & + & { margin-top: map-deep-get($token-spacer-stack-max-map, "lg"); } #{$self}__heading { padding-bottom: map-deep-get($token-spacer-unit-map, "8"); //margin-bottom: map-deep-get($token-spacer-unit-map, "8"); } #{$self}__title { @extend .h4; } } &.-stickyHeading { #{$self}__heading { position: sticky; top: $nav-topbar-height-global; z-index: z("low"); @extend .#{$namespace}outOfBounds; padding-left: map-deep-get($token-spacer-inline-map, "sm"); padding-right: map-deep-get($token-spacer-inline-map, "sm"); padding-top: map-deep-get($token-spacer-inline-map, "sm"); } } &.-stickyHeadingTop { #{$self}__heading { top: 0; } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }