/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}tableInputs { /* 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 */ @include media-breakpoint-between(xs,md) { THEAD { @include sr-only(); } TABLE { width: 100%; } TR, TH, TD { display: block; width: 100%; } TR TD:last-of-type { padding-bottom: map-deep-get($token-spacer-stack-max-map, "xl"); } } TR { position: relative; } TBODY TR TH:first-of-type { @include media-breakpoint-up(lg) { padding-left: 0; } } TH, TD { padding-bottom: map-deep-get($token-spacer-stack-max-map, "md"); @include media-breakpoint-up(lg) { padding-bottom: map-deep-get($token-spacer-stack-max-map, "lg"); padding-left: map-deep-get($token-spacer-stack-max-map, "lg"); } } &__rowTitle { @include media-breakpoint-up(lg) { display: none; } } &__rowTitleLabel { display: none; @include media-breakpoint-up(lg) { display: block; } } &__rowAction { position: absolute; top: 0; right: 0; } &__cellLabel { @include media-breakpoint-up(lg) { @include sr-only(); } } // tableInputs__select &__select { // follows same logic as parent min-width: map-deep-get($token-sizes-unit-map, "80"); } /* modifiers */ // tableInputs -hasActions &.-hasActions { // follows same logic as base element TR { padding-top: map-deep-get($token-spacer-inset-map, "sm"); @include media-breakpoint-up("lg") { padding-top: 0; } } TD:last-of-type { @include media-breakpoint-between(xs,md) { padding-bottom: 0; } } #{$self}__rowAction { @include media-breakpoint-up("lg") { position: static; } } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }