Distribution Item: Meta

No notes defined.

<div class="sds-distributionItem">

    <div class="sds-amount -highlight100 -amountXl">
        <span class="sds-amount__value">7,20</span>

        <span class="sds-amount__currency">%</span>

    </div>

    <div class="sds-distributionItem__content">
        <p>{Financial Insturment Name}</p>

        <p class="sds-distributionItem__meta sds-textHelper">{LU##########}</p>

    </div>

</div>
<div class="{{ namespace }}distributionItem{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% if amountHighlight %}
	{% render "@amount--highlight",{
		classes: amountClasses,
		text: amountText,
		currency: itemCurrency
	},true %}
	{% else %}
	{% render "@amount--large",{
		classes: amountClasses,
		text: amountText,
		currency: itemCurrency
	},true %}
	{% endif %}
	<div class="{{ namespace }}distributionItem__content">
		<p>{{ text or "{Financial Insturment Name}" }}</p>
		{% if meta %}
		<p class="{{ namespace }}distributionItem__meta {{ namespace }}textHelper">{{ meta or "{LU##########}" }}</p>
		{% endif %}
	</div>
	{% if icon %}
		<img class="{{ namespace }}distributionItem__icon img-fluid" src="{{ src }}" alt="{{ alt or "img alt" }}">
	{% endif %}
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}distributionItem {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	display: flex;
    	align-items: center;
    	@include spacer-component-inline("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 */
    
    	// distributionItem__content
    	&__content {
    
    		// follows same logic as parent
    
    		@include spacer-component-stack("xs");
    
    	}
    
    	&__meta {
    
    		@include custom-prop-fallback("color","sys-color-text-primary-muted");
    
    	}
    
    	&__icon {
    
    		margin-left: auto;
    
    	}
    
    
    	/* modifiers */
    
    	// distributionItem -legendHighlight
    	&.-legendHighlight {
    
    		// follows same logic as base element
    
    		@include custom-prop-fallback("color","sys-color-text-highlight-vivid");
    
    	}
    
    	&.-legendSecondary {
    
    		// follows same logic as base element
    
    		@include custom-prop-fallback("color","sys-color-text-primary-vivid");
    
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-distribution-item/_distribution-item.scss
  • Filesystem Path: components/snet/molecules/distribution-item/_distribution-item.scss
  • Size: 1.4 KB