Heading Block

No notes defined.

<div class="sds-headingBlock">
    <div class="h4 text-truncate"></div>
    <div class="sds-headingBlock__alignEnd">
        <a href="" class="sds-btn -btnSecondary -btnSmall flex-shrink-0">

            <span class="sds-btn__text">button text</span>

        </a>
    </div>
</div>
<div class="{{ namespace }}headingBlock{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ lvl}} text-truncate">{{ heading }}</div>
	<div class="{{ namespace }}headingBlock__alignEnd">
		{% render "@btn-secondary--small",{
			text: meta,
			classes: ["flex-shrink-0"],
			eltType: "a"
		},true %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}headingBlock {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	display: flex;
    	align-items: center;
    	justify-content: space-between;
    
    	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 */
    
    	// headingBlock__meta
    	&__meta#{$self}__meta {
    
    		// follows same logic as parent
    
    		color: map-deep-get($token-color-brand-map, "secondary", "60");
    
    	}
    
    	&__alignEnd {
    
    		display: flex;
    		align-items: center;
    		margin-left: map-deep-get($token-spacer-unit-map, "16");
    		flex-shrink: 0;
    
    		@include spacer-component-inline("md");
    
    	}
    
    
    	/* modifiers */
    
    	// headingBlock -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/cpb-heading-block/_heading-block.scss
  • Filesystem Path: components/corporate-bridge/molecules/heading-block/_heading-block.scss
  • Size: 1.3 KB