/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}splitBtn { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ position: relative; /* 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 */ // splitBtn__toggle &__toggle#{$self}__toggle { // follows same logic as parent //font-size: map-deep-get($token-button-size-map, "big", "font-size"); line-height: map-deep-get($token-button-size-map, "big", "desktop", "line-height"); border-radius: map-deep-get($token-button-size-map, "big", "desktop" ,"border-radius"); height: auto; width: map-deep-get($token-button-size-map, "big", "desktop", "min-height"); &[aria-expanded="true"] { [class*="#{$namespace}icon"] { transform: rotate(180deg); } } } &__actionMenu { margin: 0 0 map-deep-get($token-spacer-unit-map, "8") 0; } &__popoverIndicator { width: map-deep-get($token-button-size-map, "big","desktop", "min-height"); height: map-deep-get($token-button-size-map, "big","desktop", "min-height"); top: -(map-deep-get($token-spacer-unit-map, "8")); right: 0; margin-left: -32px; } /* modifiers */ // splitBtn -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }