/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}videoCard { /* 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 */ //videoCard__header &__header { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } // videoCard__play &__play { // follows same logic as parent position: absolute; z-index: z("low"); top: 50%; left: 50%; transform: translate(-50%,-50%); } // videoCard__content &__content { @include spacer-component-inset("xl"); text-align: center; } // videoCard__body &__body { @include spacer-component-stack("xs"); } &__footer { margin-top: map-deep-get($token-spacer-stack-max-map, "xl"); display: flex; justify-content: center; } &__linkWrapper { margin-top: map-deep-get($token-spacer-stack-max-map, "md"); } &__link { @include link-underline(); @extend .#{$namespace}link; } /* modifiers */ // videoCard -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }