@use "sass:math"; /* variables specific to current element */ $card-stepper-line-position-offset: -(map-deep-get($token-spacer-unit-map, "16") + math.div(map-deep-get($token-spacer-unit-map, "40"), 2)); .#{$namespace}cardStepper { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ /* 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 */ // cardStepper__childElement &__item { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; width: 100%; @include make-col-ready(); @include make-col(3); &:first-child, &:last-child { #{$self}__numberWrapper { &::before { width: calc(50% + #{$grid-gutter-width}); transform: translateY(-50%); } } } &:first-child { #{$self}__numberWrapper { &::before { left: 50%; } } } &:last-child { #{$self}__numberWrapper { &::before { right: 50%; left: auto; } } } } &__img { width: 180px; } &__numberCircle { background-color: map-deep-get($token-color-brand-map, "secondary", "10"); outline: map-deep-get($token-spacer-unit-map, "8") solid map-deep-get($token-color-grayscale-map, "0") !important; } &__numberWrapper { position: relative; z-index: z("zero"); width: 100%; text-align: center; &::before { content: ""; width: calc(100% + #{$grid-gutter-width}); left: 50%; height: $border-width; position: absolute; z-index: z("negative"); top: 50%; transform: translate(-50%); background-color: map-deep-get($design-tokens, "sys-color-background-primary-15"); } } &__action { margin-top: map-deep-get($token-spacer-unit-map, "64"); } /* modifiers */ // cardStepper -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }