Stock Card: Negative

No notes defined.

<div class="sds-stockCard">
    <div class="sds-stockCard__row">
        <p>Global Diversified SI EQ. FD</p>

        <span class="sds-badge badge -primary10 -stock">

            <span class="sds-icon sds-icon-arrowlower" aria-hidden="true"></span>

            0,22%

        </span>

    </div>
    <div class="sds-stockCard__row">
        <p class="sds-stockCard__meta sds-textHelper">161 unités • 208,38 €</p>
        <p class="sds-stockCard__meta  sds-textHelper">33.549,18 €</p>
    </div>
</div>
<{{ eltType}} class="{{ namespace }}stockCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}stockCard__row">
		<p>Global Diversified SI EQ. FD</p>
		{% if positive %}
		{% render "@badge--success-10-icon",{text: "0,22%"},true %}
		{% elseif negative %}
		{% render "@badge--primary-10-icon",{text: "0,22%"},true %}
		{% endif %}
	</div>
	<div class="{{ namespace }}stockCard__row">
		<p class="{{ namespace }}stockCard__meta {{ namespace }}textHelper">161 unités • 208,38 €</p>
		<p class="{{ namespace }}stockCard__meta  {{ namespace }}textHelper">33.549,18 €</p>
	</div>
</{{ eltType}}>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}stockCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	@include spacer-component-stack("sm");
    
    	/* 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 */
    
    	// stockCard__row
    	&__row {
    		display: flex;
    		align-items: center;
    		justify-content: space-between;
    		@include spacer-component-inline("md");
    	}
    
    	// stockCard__meta
    	&__meta {
    
    		// follows same logic as parent
    
    		@include custom-prop-fallback("color","sys-color-text-primary-muted");
    
    	}
    
    
    	/* modifiers */
    
    	// stockCard -hasInteraction
    	&.-hasInteraction {
    
    		// follows same logic as base element
    
    		padding: map-deep-get($token-spacer-inset-map, "sm");
    		border-radius: map-deep-get($token-radius-map, "8");
    
    		&:hover {
    			@media (hover: hover) {
    				@include custom-prop-fallback("background-color", "comp-box-background-color")
    			}
    		}
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-stock-card/_stock-card.scss
  • Filesystem Path: components/snet/molecules/stock-card/_stock-card.scss
  • Size: 1.4 KB