No notes defined.
<div class="sds-heroHeading">
<h1 class="sds-heroHeading__separator sds-heroHeading__main">Logement</h1>
<p class="sds-heroHeading__sub h1">Heading subtext</p>
</div>
<div class="{{ namespace }}heroHeading{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<h1 class="{{ namespace }}heroHeading__separator{% if main %} {{ namespace }}heroHeading__main{% else %} {{ headingLvl }}{% endif %}">{{ title }}</h1>
{% if subEltType %}
<{{ subEltType }} class="{{ namespace }}heroHeading__sub {% if subHeadingLvl %} {{ subHeadingLvl }}{% endif %}{% for mod in subClasses %} {{ mod }}{% endfor %}">{{ subTitle }}</{{ subEltType }}>
{% endif %}
</div>
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}heroHeading {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
@include spacer-component-stack-static("md");
/* 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 */
&__main {
@extend %headingPageCover;
margin-bottom: 0 !important; // override for old styles
}
&__separator {
&::after {
content: "";
@extend %brandLine;
margin-top: map-deep-get($token-spacer-stack-max-map, "md");
}
}
&__sub {
@extend .#{$namespace}headingLight;
}
// heroHeading__subTitle
&__subTitle {
// follows same logic as parent
}
/* modifiers */
// heroHeading -altStyle
&.-altStyle {
// follows same logic as base element
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}