/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}header { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ position: sticky; z-index: z("fixed"); top: 0; transition: transform 0.15s linear; /* 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 */ &__nav { position: relative; z-index: z("low"); } // header__subNav &__subNav { // follows same logic as parent @include custom-prop-fallback("background-color","sys-color-elevation-surface-flat"); backdrop-filter: blur(calc(var(--comp-subheader-effect-blur) * 1px)); min-height: $nav-sub-nav-height-mobile-global; display: flex; align-items: center; @include containerPaddingInline(); @include media-breakpoint-up(lg){ min-height: $nav-sub-nav-height-desktop-global; } } &__subNavContainer { @include contentSectionDimensions(); width: 100%; @media (orientation: landscape) { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-left); } } &__stepper { @include media-breakpoint-up(lg) { display: none; } } /* modifiers */ // header -headroomUnpinned &.-headroomUnpinned { // follows same logic as base element transform: translateY(-#{map-deep-get($token-sizes-component-map, "topbar-height-mobile")}); } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }