Hero Heading

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>
  • Content:
    /* 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 {
    
    		@include fluid-type($min_width, $max_width, $h1-page-cover-font-size-min, $h1-page-cover-font-size, true);
    		line-height: map-deep-get($token-font-line-height-map,"s");
    		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 {
    	}
    
    }
  • URL: /components/raw/hero-heading/_hero-heading.scss
  • Filesystem Path: components/base-components/atoms/hero-heading/_hero-heading.scss
  • Size: 1.4 KB