/* variables specific to current element */ $checkbox-collapse-padding: map-deep-get($token-spacer-unit-map, "16"); .#{$namespace}checkboxCollapse { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ padding: $checkbox-collapse-padding; border-radius: map-deep-get($token-radius-map, "16"); border: $border-width solid; @include custom-prop-fallback("border-color","sys-color-border-primary-moderate"); /* 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 */ // checkboxCollapse__inner &__inner { padding-top: map-deep-get($token-spacer-inset-map, "md"); padding-bottom: map-deep-get($token-spacer-inset-map, "sm"); /* SM because the + the value of the parent's padding = 24 */ } &__row { margin-bottom: 0 !important; > [class*="col"] { margin-bottom: 0; } &.row-sm { row-gap: $grid-gutter-width-sm; } } &__triggerZone { display: flex; align-items: center; position: relative; } &__triggerInfoDot { align-self: baseline; } &__checkboxLabel { @extend .stretched-link; &::after { top: -$checkbox-collapse-padding; right: -$checkbox-collapse-padding; bottom: -$checkbox-collapse-padding; left: -$checkbox-collapse-padding; } } /* modifiers */ // checkboxCollapse -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }