@use "sass:math"; /* variables specific to current element */ $section-title-bottom-padding: map-deep-get($token-spacer-unit-map, "24"); $section-title-timeline-line-height: map-deep-get($token-sizes-unit-map, "16"); .#{$namespace}sectionTitle { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ position: relative; /* 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 */ &__inner { display: flex; align-items: flex-start; justify-content: space-between; @include spacer-component-inline("sm"); } &__col { &.-status { // follows same logic as base element text-align: right; } } // sectionTitle__text &__text { // follows same logic as parent display: flex; flex-direction: column; } &__toggleWrapper { position: absolute; z-index: z("zero"); top: 0; right: 0; bottom: 0; left: 0; } &__toggle { &[aria-expanded="true"] > * { &::before { content: $icon-minus } } } &__aboveClickArea { position: relative; z-index: z("low"); } &__textMain { @extend .h4; @include custom-prop-fallback-override("color", "sys-color-text-primary-vivid"); } &__meta { @include custom-prop-fallback("color","sys-color-text-primary-muted"); } /* modifiers */ // sectionTitle -altStyle &.-isTimelineItem { padding-top: map-deep-get($token-spacer-unit-map, "8"); padding-bottom: $section-title-bottom-padding; margin-bottom: -($section-title-timeline-line-height); // follows same logic as base element &::before { content: ""; position: absolute; z-index: z("negative"); height: $section-title-timeline-line-height; bottom: 0; left: $section-item-horiz-padding-global + $section-item-col-date-width-global + $section-item-horiz-margin-global + math.div($section-item-col-dot-width-global, 2); transform: translateX(-50%); width: 2px; @include custom-prop-fallback("background-color", "sys-color-background-primary-30") } #{$self}__inner { padding-left: $section-item-col-date-width-global; } #{$self}__toggleWrapper { padding: $timeline-item-vert-padding-global; top: -($timeline-item-vert-padding-global); right: -($section-item-horiz-padding-global + $timeline-item-content-negative-margin-global); left: -($section-item-horiz-padding-global + $timeline-item-content-negative-margin-global); > * { margin-top: map-deep-get($token-spacer-unit-map, "2"); } } #{$self}__loader { display: none; } } &.-isTimelineItem.-isLoading { #{$self}__toggle { display: none; } #{$self}__loader { display: block; } } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover { @media (hover: hover) { } } &:focus { } &:active { } &:focus, &:active { } }