Amount Arrow: Default

No notes defined.

<div class="sds-amountArrow">
    <div class="sds-amountArrow__content sds-stackXxs">
        <div class="sds-amount -amountPositive">

            <div class="sds-amount__body">
                <span class="sds-amount__value">{+#.###,##}</span>

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

            </div>

        </div>

        <p class="sds-amountArrow__desc sds-metaColor sds-textHelperSmall">{ Description }</p>

    </div>
</div>
<div class="{{ namespace }}amountArrow{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}amountArrow__content {{ namespace }}stackXxs">
		{% render "@amount-body--positive-md", {}, true %}
		{% if meta %}
			<p class="{{ namespace }}amountArrow__desc {{ namespace }}metaColor {{ namespace }}textHelperSmall">{{ meta | safe }}</p>
		{% endif %}
	</div>
</div>
  • Content:
    @use "sass:math";
    
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}amountArrow {
    
    	--comp-amount-arrow-inline: var(--ui-space-inline-static-1000);
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    
    	/* properties of current element  + media queries */
    
    	position: relative;
    	z-index: z("zero");
    	display: flex;
    	align-items: flex-start;
    
    
    	/* Pseudo Elements */
    
    	&::before,
    	&::after {
    		content: "";
    		height: $border-width*2;
    		margin-top: 0.775em;
    		@include custom-prop-fallback("background-color", "comp-line-divider-border-color");
    	}
    
    	&::before {
    	}
    
    	&::after {
    		flex: 1 1  var(--comp-amount-arrow-inline);
    	}
    
    	/*
    	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 */
    
    	// amountArrow__content
    	&__content {
    
    		display: inline-flex;
    		flex-direction: column;
    		padding-right: var(--comp-amount-arrow-inline);
    
    		&::after {
    			content: "";
    			position: absolute;
    			right: 0;
    			top: 0.775em;
    			transform: translateY(calc(-50% + #{math.div(map-get($design-tokens,"comp-line-divider-divider-width"), 2)})) rotate(-45deg);
    			width: 10px;
    			height: 10px;
    			border: $border-width*2 solid;
    			@include custom-prop-fallback("border-right-color", "comp-line-divider-border-color");
    			@include custom-prop-fallback("border-bottom-color", "comp-line-divider-border-color");
    			border-left-color: transparent;
    			border-top-color: transparent;
    		}
    	}
    
    	// amountArrow__desc
    
    
    	/* modifiers */
    
    	&.-amountArrowCentered {
    		justify-content: center;
    
    		&::before,
    		&::after {
    			flex: 1 1  map-get($design-tokens,"ui-space-inline-static-1000");
    		}
    
    		#{$self}__content {
    			padding: 0 var(--comp-amount-arrow-inline);
    		}
    
    	}
    
    	&.-amountArrowOffsetLeft {
    		&::before {
    			flex: 0 1  map-get($design-tokens,"comp-amount-arrow-offset-left-width");
    		}
    
    		#{$self}__content {
    			padding: 0 var(--comp-amount-arrow-inline);
    		}
    
    	}
    
    	/* random parent element */
    	/*
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
    
  • URL: /components/raw/amount-arrow/_amount-arrow.scss
  • Filesystem Path: components/token-based/content/amount/amount-arrow/_amount-arrow.scss
  • Size: 2.3 KB