/* variables specific to current element */ $opening-hours-list-right-offset: $icon-circle-regular-dimensions-global + map-deep-get($token-spacer-inline-map, "md"); .#{$namespace}openingHours { /* 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 */ &__header { display: flex; flex-direction: column; gap: map-deep-get($token-spacer-stack-min-map, "md"); @include media-breakpoint-up("md") { gap: map-deep-get($token-spacer-stack-max-map, "xs"); } } // openingHours__childElement &__collapseTrigger { // follows same logic as parent margin-left: auto; &[aria-expanded="true"] { [class*="icon"] { transform: rotate(180deg); } } } &__list { margin-top: 0 !important; @include media-breakpoint-up("md"){ padding-right: $opening-hours-list-right-offset; } } /* modifiers */ // openingHours -altStyle &.-altStyle { // follows same logic as base element } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }