/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}leaseSlider { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ padding-top: calc($badge-selector-height-global + map-deep-get($token-spacer-stack-max-map, "xl")); @include media-breakpoint-up(md) { padding-top: 0; } /* 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 */ // leaseSlider__action &__action { // follows same logic as parent width: 100%; @include media-breakpoint-up("md") { width: auto; } } &__colorOptionsWrapper { position: absolute; top: -$badge-selector-height-global - map-deep-get($token-spacer-stack-max-map, "xl"); left: 0; @include media-breakpoint-up(md) { top: auto; left: auto; position: relative; overflow: hidden; padding-right: $grid-gutter-width !important; } } &__slide { width: auto; max-width: 100%; IMG { aspect-ratio: 16/10; } } &__colorNav { height: $badge-selector-height-global + $border-width*4; overflow: hidden; width: 100%; position: relative; &::before, &::after { width: map-deep-get($token-sizes-unit-map, "64"); } } &__colorNavWrapper { overflow-x: auto; padding-bottom: $badge-selector-height-global*0.5; display: flex; } &__colorNavInner { display: flex; flex-wrap: nowrap; flex-grow: 1; @include spacer-component-inline("sm"); > *:first-of-type { margin-left: auto; } > *:last-of-type { margin-right: auto; } } &__colorSelector { @include custom-prop-fallback("background-color", "comp-button-secondary-background-color"); flex-shrink: 0; } &__navigation { padding-left: map-deep-get($token-spacer-inset-map, "sm"); padding-right: map-deep-get($token-spacer-inset-map, "sm"); @include media-breakpoint-up("md"){ padding-left: 0; padding-right: 0; margin-top: 0 !important; } } &__disclaimer { margin-bottom: map-deep-get($token-spacer-stack-max-map, "xl"); @include media-breakpoint-up("md") { position: absolute; top: 0; left: 0; @include make-col(3); } } /* modifiers */ // leaseSlider -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }