Account Card: Whitelisted

No notes defined.

<div class="sds-accountCard sds-showCustomIndicatorHover">
    <label class="sds-accountCard__inner">
        <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

        <div class="sds-avatar centeredBgi -avatarSm">

            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

        </div>

        <span class="sds-accountCard__content sds-stackXs">
            <div>
                Jil Schmit

                <span class="sds-accountCard__whitelisted sds-icon sds-icon-badgevalid"></span>

            </div>
            <span class="sds-textHelper sds-accountCard__meta">
                compte courant
            </span>
        </span>

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

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

        </div>

    </label>
</div>
<div class="{{ namespace }}accountCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<label class="{{ namespace }}accountCard__inner">
		{% render "@radio-dot",{
			classes: [namespace+"accountCard__checkItem"],
			inputModifiers: [namespace + "accountCard__input"],
			checked: checkedOptions
		},true %}
		{% if avatar %}
		{% render "@avatar--image-small" %}
		{% endif %}
		<span class="{{ namespace }}accountCard__content {{ namespace }}stackXs">
			<div>
			Jil Schmit
			{% if whitelisted %}
				<span class="{{ namespace }}accountCard__whitelisted {{ namespace }}icon {{ namespace }}icon-badgevalid"></span>
			{% endif %}
			</div>
			<span class="{{ namespace }}textHelper {{ namespace }}accountCard__meta">
				compte courant
			</span>
		</span>
		{% if amount %}
			{% render "@amount--large-positive" %}
		{% else %}
			{% render "@badge--primary-tonal",{text: "non visible"},true %}
		{% endif %}
	</label>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}accountCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	border-radius: map-deep-get($token-radius-map, "8");
    	@include spacer-component-inset("sm");
    
    	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 */
    
    	&__inner {
    
    		width: 100%;
    		cursor: pointer;
    
    		display: flex;
    		align-items: center;
    
    		@include spacer-component-inline("md");
    
    		margin: 0;
    
    	}
    	
    	&__input {
    		left: map-deep-get($token-spacer-unit-map, "16");
    	}
    
    
    
    	// accountCard__meta
    	&__meta {
    
    		// follows same logic as parent
    
    		@include custom-prop-fallback("color", "sys-color-text-primary-muted")
    
    	}
    	
    	&__content {
    
    		margin-right: auto;
    
    	}
    
    	&__whitelisted {
    
    		&:before {
    
    			font-size: 1em;
    			@include custom-prop-fallback("color", "sys-color-text-highlight-vivid");
    
    		}
    
    	}
    
    
    	/* modifiers */
    
    	// accountCard -altStyle
    	&.-altStyle {
    
    		// follows same logic as base element
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    			@include custom-prop-fallback("background-color", "comp-box-sunken-background-color");
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-account-card/_account-card.scss
  • Filesystem Path: components/snet/molecules/form-elements/account-card/_account-card.scss
  • Size: 1.6 KB