@use "sass:math"; /* variables specific to current element */ $header-padding: map-deep-get($token-spacer-unit-map, "64"); .#{$namespace}searchHeader { /* 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 */ // searchHeader__container &__container { padding: $header-padding math.div($header-padding,2); background-color: map-deep-get($token-color-brand-map, "secondary", "160"); } &__title { color: map-deep-get($token-color-grayscale-map, "0"); } &__search { transform: translateY(-50%); } /* modifiers */ // searchHeader -fullWidthOutOfBounds &.-fullWidthOutOfBounds { // follows same logic as base element #{$self}__container { position: relative; @include media-breakpoint-up(xxl){ &::after { content: ""; position: absolute; z-index: z("negative"); top: 0; bottom: 0; left: 0; width: calc(50vw + ((#{map-deep-get($token-breakpoints-map, xxl)} - #{$snet-frame-menu-open-width-global})*0.5) - #{math.div($snet-frame-menu-open-width-global,2)}); background-color: inherit; } } } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }