/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}advancedSelectItem { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ display: flex; align-items: center; @include spacer-component-inline("md"); text-align: left; // needed if item is button width: 100%; // needed if item is button border-radius: map-deep-get($token-radius-map, "16"); padding: map-deep-get($token-spacer-inset-map, "sm"); /* 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 */ // advancedSelectItem__img &__img { // follows same logic as parent aspect-ratio: 16/10; width: map-deep-get($token-sizes-unit-map, "96"); IMG { object-fit: cover; width: 100%; height: 100%; } } &__meta { @include custom-prop-fallback("color","sys-color-text-primary-muted"); } &__icon { margin-left: auto; @include custom-prop-fallback("color","sys-color-text-primary-muted"); transition: transform 0.15s linear; } /* modifiers */ // advancedSelectItem -altStyle &.-altStyle { // follows same logic as base element } &[data-toggle="dropdown"] { border-bottom: $input-border-width solid; @include custom-prop-fallback("border-color","sys-color-border-primary-moderate"); border-radius: 0; background-color: transparent !important; &:focus { @include custom-prop-fallback("border-bottom-color", "comp-input-active-border-color"); } &[aria-expanded="true"] { @include custom-prop-fallback("border-bottom-color", "comp-input-active-border-color"); #{$self}__icon { transform: rotate(180deg); } } } &[disabled] { pointer-events: none; * { @include custom-prop-fallback("color", "sys-color-background-neutral-120"); opacity: 0.64; } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover, &:focus { @media (hover: hover) { @include custom-prop-fallback("background-color", "sys-color-background-primary-6"); } } &:focus { } &:active { } &:focus, &:active { } }