/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}slider { /* 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 */ // slider__inner &__inner { max-width: 100%; } // slider__navigation &__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation { // follows same logic as parent display: none; @include media-breakpoint-up(lg) { margin-top: map-deep-get($token-spacer-stack-max-map, "3xl"); margin-left: 0; margin-right: 0; display: flex; align-items: center; justify-content: space-between; } } #{$self}__prev, #{$self}__next { @extend .#{$namespace}icon; @extend .#{$namespace}iconBtn; @extend .-iconBtnBase; @extend .-iconBtnSecondary; } /* modifiers */ // slider -inverted &.-inverted { // follows same logic as base element #{$self}__pagination { > * { @include custom-prop-fallback("background-color", "comp-page-controls-background-color"); &[class*="active-main"] { @include custom-prop-fallback("background-color", "comp-page-controls-active-background-color"); } } } #{$self}__prev, #{$self}__next { @extend .-iconBtnCtaSecondary; &[disabled] { background-color: map-deep-get($token-icon-btn-cta-map, "secondary", "default", "background-color"); } } } &.-overflowVisible { #{$self}__inner { overflow: visible; } } &.-navigationVisible { #{$self}__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation { display: flex; align-items: center; } } &.-navigationSmallSpacing { #{$self}__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation#{$self}__navigation { margin-top: map-deep-get($token-spacer-stack-max-map, "lg"); } } &.-wysiwyg { .swiper-slide { width: auto; max-width: 100%; } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }