/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}borderedBgList { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include custom-prop-fallback("background-color", "sys-color-elevation-surface-sunken"); border-radius: map-deep-get($token-radius-map, "16"); @include spacer-component-inset-horiz-greater("xs","sm"); margin: 0; @include media-breakpoint-up(md){ @include spacer-component-inset-horiz-greater("sm","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 */ // borderedBgList__item &__item { // follows same logic as parent & + & { border-top: $border-width solid $border-color; margin-top: map-deep-get($token-spacer-unit-map, "4"); padding-top: map-deep-get($token-spacer-unit-map, "4"); @include media-breakpoint-up(md) { margin-top: map-deep-get($token-spacer-unit-map, "8"); padding-top: map-deep-get($token-spacer-unit-map, "8"); } } } &__itemOffset { margin-left: -(map-deep-get($token-spacer-unit-map, "4")); margin-right: -(map-deep-get($token-spacer-unit-map, "4")); @include media-breakpoint-up(md) { margin-left: -(map-deep-get($token-spacer-unit-map, "8")); margin-right: -(map-deep-get($token-spacer-unit-map, "8")); } } &__link { @include spacer-component-inset("xs"); @include spacer-component-inline("md"); border-radius: map-deep-get($token-radius-map, "16"); @include media-breakpoint-up(md) { @include spacer-component-inset("sm"); } &:hover, &:focus { @media (hover: hover) { @include custom-prop-fallback("background-color", "sys-color-background-primary-10"); #{$self}__linkIcon { @include custom-prop-fallback("background-color", "sys-color-background-primary-15"); @include custom-prop-fallback("color", "sys-color-background-primary-100"); } } } } &__text { margin-right: auto; min-width: 0; @include text-truncate(); } &__typeIcon { margin-right: map-deep-get($token-spacer-unit-map, "16"); } &__linkIcon { margin-left:map-deep-get($token-spacer-unit-map, "8"); } /* modifiers */ // borderedBgList -noTruncate &.-noTruncate { // follows same logic as base element #{$self}__text { overflow: visible; text-overflow: inherit; white-space: normal; } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }