/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}blogFilters { /* 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 */ // blogFilters__childElement &__btn { // follows same logic as parent @include custom-prop-fallback("background-color", "comp-button-secondary-background-color"); @include custom-prop-fallback("color", "comp-button-secondary-text-color"); font-size: $badge-font-size; font-weight: $badge-font-weight; border-radius: $badge-border-radius; transition: $badge-transition; padding: $badge-padding-y $badge-padding-x !important; line-height: 1; @include media-breakpoint-up("lg") { border-radius: $btn-base-border-radius-global; padding: $input-padding-x $input-padding-x*2 !important; @include spacer-component-inline("sm"); font-weight: $btn-base-font-weight-global; font-size: $btn-base-font-size-global; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: $btn-base-height-global; outline-offset: -($border-width*2) !important; line-height: inherit; } &.-isSelected { outline: $border-width*2 solid !important; outline-offset: $border-width*2; } &.-secondary { &:hover, &:focus-visible { @media (hover: hover) { @include custom-prop-fallback("background-color", "comp-button-secondary-hovered-background-color", true, true); } } } &.-primary { @include custom-prop-fallback("background-color", "sys-color-background-secondary-10"); @include custom-prop-fallback("color", "sys-color-background-secondary-160"); &:hover, &:focus-visible { @media (hover: hover) { @include custom-prop-fallback("background-color", "sys-color-background-secondary-20",true,true); } } } } /* modifiers */ // blogFilters -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }