/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}accountSelector { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ @include spacer-component-inset-horiz-greater("sm","md"); border-radius: map-deep-get($token-radius-map, "16"); display: inline-flex; align-items: flex-start; position: relative; z-index: z("dropdown"); /* 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 */ // accountSelector__number &__number { // follows same logic as parent @include custom-prop-fallback("color", "sys-color-text-primary-muted") } &__content { min-width: 185px; max-width: 230px; } &__actions { margin-left: map-deep-get($token-spacer-inline-map, "lg"); margin-top: map-deep-get($token-spacer-unit-map, "4"); &.show { &::after { content: ""; position: absolute; z-index: z("negative"); top: 0; left: 0; width: 100%; height: 100%; @include custom-prop-fallback("background-color", "sys-color-elevation-surface-flat"); border-radius: map-deep-get($token-radius-map, "16"); } } } &__btn { &[aria-expanded="true"] { border-color: transparent !important; > *::before { content: map-deep-get($token-icon-map, "chevronup") } } } &__dropdown { width: 520px; @include spacer-component-inset("lg"); box-shadow: map-deep-get($token-shadow-map, "detail"); top: calc(100% + #{map-deep-get($token-spacer-stack-max-map, "sm")}); max-height: calc(100vh - (#{$nav-topbar-height-global} + #{map-deep-get($token-sizes-component-map, "panel-header-height")} * 1.75)); overflow-y: auto; } &__dropdownHeading { margin-bottom: map-deep-get($token-spacer-stack-max-map, "lg"); } &__dropdownSection { margin-left: (-(map-deep-get($token-spacer-inline-map, "sm"))); margin-right: (-(map-deep-get($token-spacer-inline-map, "sm"))); } /* modifiers */ // accountSelector -altStyle &.-isDisabled { // follows same logic as base element #{$self}__content { * { @include custom-prop-fallback("color", "sys-color-background-neutral-120"); } } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }