@use "sass:math"; /* variables specific to current element */ $transaction-edit-block-inset: map-deep-get($token-spacer-inset-map, "lg"); $transaction-edit-block-stack-level: "md"; $transaction-edit-block-stack: map-deep-get($token-spacer-inset-map, $transaction-edit-block-stack-level); .#{$namespace}transactionEditBlock { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include spacer-component-stack($transaction-edit-block-stack-level); /* 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 */ // transactionEditBlock__item &__item { // follows same logic as parent padding: $transaction-edit-block-inset; } &__amountCol { width: $transaction-block-amount-price-col-global; position: relative; &::before { content: ""; width: $border-width*2; position: absolute; z-index: z("low"); top: -($transaction-edit-block-inset*2) - $transaction-edit-block-stack; bottom: 50%; transform: translateX(-50%); background-color: $border-color; left: math.div($item-connector-dimensions-global, 2); } } &__infoCol { @include spacer-component-inline("md"); } &__fixedWrapper { @include spacer-component-inline("lg"); } /* modifiers */ // transactionEditBlock -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }