/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}pageCover { /* 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 */ // pageCover__title &__title { margin-bottom: 0 !important; // override for old styles &::after { content: ""; @extend %logoSeparator; margin-top: map-deep-get($token-spacer-stack-min-map, "md"); @include media-breakpoint-up(lg) { margin-top: map-deep-get($token-spacer-stack-max-map, "md"); } } } &__insetBlockLg { padding-top: map-deep-get($token-spacer-inset-map, "lg"); padding-bottom: map-deep-get($token-spacer-inset-map, "lg"); @include media-breakpoint-up("xxl") { padding-top: map-deep-get($token-spacer-inset-map, "xl"); padding-bottom: map-deep-get($token-spacer-inset-map, "xl"); } } // pageCover__subTitle &__subTitle { // follows same logic as parent } // pageCover__img &__img { position: relative; &.-gradientBottom { &::before { content: ""; position: absolute; top: 70%; left: 0; right: 0; bottom: 0; @include gradient-directional(rgba(map-deep-get($token-color-grayscale-map, "0"),0), rgba(map-deep-get($token-color-grayscale-map, "0"),1), 0, 70%, -180deg, true); @include gradient-directional(var(--comp-shader-background-color), var(--sys-color-elevation-surface-flat), 0, 70%, -180deg, true); } } &.-gradientBottomRight { &::after { content: ""; position: absolute; top: 0; left: 70%; right: 0; bottom: 0; @include gradient-directional(rgba(map-deep-get($token-color-grayscale-map, "0"),0), rgba(map-deep-get($token-color-grayscale-map, "0"),1), 0, 70%, 90deg, true); @include gradient-directional(var(--comp-shader-background-color), var(--sys-color-elevation-surface-flat), 0, 70%, 90deg, true); } } } // pageCover__textContainer &__textContainer { @include media-breakpoint-up(xl) { margin-left: auto; margin-right: 0; } } &__spotIllu { max-width: 160px; @include media-breakpoint-up("lg") { margin: auto; max-width: none; text-align: center; IMG { width: 100% !important; height: auto !important; } } } &__footer { margin-top: map-deep-get($token-spacer-stack-min-map, "3xl"); @include media-breakpoint-up("") { margin-top: map-deep-get($token-spacer-stack-max-map, "3xl"); } } /* modifiers */ // pageCover -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }