Amount Card

No notes defined.

<!-- Default -->
<div class="sds-amountCard">
    <div class="sds-stackXs">
        <div class="sds-label">
            Label

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

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

        </div>
    </div>
</div>

<!-- Info -->
<div class="sds-amountCard -info">
    <div class="sds-stackXxs">
        <p class="sds-amountCard__meta sds-textHelper">Revenu disponible</p>
        <div class="sds-amount -amountXl -secondary100">
            <span class="sds-amount__value">1.550</span>

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

        </div>
    </div>

    <a href="#!" tabindex="0" class="sds-infoDot" data-trigger="focus" data-container="body" data-placement="left" data-toggle="popover" title="Popover title" data-content="Le détail de la / des transactions (bénéficiaire et communication) sera masqué dans les mouvements des transactions (sur S-Net Pro et dans les extraits de compte)">
        <span class="sds-icon sds-icon-infocirclefill"></span>
    </a>

</div>

<!-- Timesheet -->
<div class="sds-amountCard -info">
    <div class="sds-stackXxs">
        <p class="sds-amountCard__meta sds-textHelper">Solde restant</p>
        <div class="sds-amount -amountXl -secondary100">
            <span class="sds-amount__value">16</span>

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

            <span class="sds-amount__frequency">
                +04h51m
            </span>

        </div>
    </div>
</div>

<!-- Default -->
<div class="{{ namespace }}amountCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}stackXs">
		{% render "@label--div" %}
		{% render "@amount--body-xxl" %}
	</div>
</div>

<!-- Info -->
<div class="{{ namespace }}amountCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}stackXxs">
		<p class="{{ namespace }}amountCard__meta {{ namespace }}textHelper">{{ helper }}</p>
		{% render "@amount--xtra-large-secondary-100",{
			currency: currency,
			text: amount
		}, true %}
	</div>
	{% if info %}
		{% render '@info-dot--left' %}
	{% endif %}
</div>

<!-- Timesheet -->
<div class="{{ namespace }}amountCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}stackXxs">
		<p class="{{ namespace }}amountCard__meta {{ namespace }}textHelper">{{ helper }}</p>
		{% render "@amount--xtra-large-secondary-100",{
			currency: currency,
			text: amount,
			frequency: frequency
		}, true %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}amountCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	@include custom-prop-fallback("background-color", "sys-color-elevation-surface-sunken");
    	border-radius: map-deep-get($token-radius-map, "16");
    	@include spacer-component-inset("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 */
    
    	// amountCard__meta
    	&__meta {
    
    		// follows same logic as parent
    
    		@include custom-prop-fallback("color", "sys-color-text-primary-muted")
    
    	}
    
    
    	/* modifiers */
    
    	// amountCard -altStyle
    	&.-info {
    
    		display: flex;
    		align-items: flex-start;
    		justify-content: space-between;
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-amount-card/_amount-card.scss
  • Filesystem Path: components/snet/organisms/amount-card/_amount-card.scss
  • Size: 1.2 KB