Action Card: Default

No notes defined.

<div class="sds-actionCard">
    <div class="sds-actionCard__inner">

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

            <img class="img-fluid" src="../../media/snet/avatars/nopic/avatarNoPicMan.svg" alt="">

        </div>

        <div class="sds-actionCard__text sds-stackXxs">
            <div class="sds-actionCard__title sds-textBodyLg">Conseiller Prêt Immobilier</div>

        </div>
    </div>

</div>
<div class="{{ namespace }}actionCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
    <div class="{{ namespace }}actionCard__inner">
        {% if iconCircle %}
            {% render '@icon-circle-regular--info-100',  { icon : icon }, true %}
        {% else %}
            {% render '@avatar--image' + size, { img : "/snet/avatars/nopic/avatarNoPicMan.svg"}, true %}
        {% endif %}
        <div class="{{ namespace }}actionCard__text {{ namespace }}stackXxs">
            <div class="{{ namespace }}actionCard__title {{ namespace }}textBodyLg">{{ title }}</div>
            {% if description %}
                <p>{{ description | safe }}</p>
            {% endif %}
        </div>
    </div>
    {% if action %}
        {% render '@icon-btn-secondary', {
			icon : "icon-edit",
			classes: [namespace + "actionCard__action"]
		}, true %}
    {% endif %}
</div>
  • Content:
    .#{$namespace}actionCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    
    	/* variables specific to current element */
    
    	$element-specific-variables: "";
    
    
    	/* properties of current element  + media queries */
    	display: flex;
    	align-items: flex-start;
    	justify-content: space-between;
    
    
    	/* 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 */
    
    	// actionCard__inner
    	&__inner {
    
    		display: flex;
    		align-items: center;
    		@include spacer-component-inline("md");
    
    	}
    
    	&__title {
    
    		font-weight: map-deep-get($token-font-weight-map, "semi-bold");
    
    	}
    
    	// actionCard__action
    	&__action {
    
    		margin-left: map-deep-get($token-spacer-stack-max-map, "md");
    
    	}
    
    	/* modifiers */
    
    	// actionCard -action
    	&.-action {
    
    		#{$self}__inner {
    
    			align-items: flex-start;
    			@include spacer-component-inline("lg");
    
    		}
    
    		#{$self}__action {
    
    			margin-left: map-deep-get($token-spacer-stack-max-map, "lg");
    
    		}
    
    	}
    
    	&.-top {
    
    		#{$self}__inner {
    
    			align-items: flex-start;
    
    		}
    
    	}
    
    	/* random parent element */
    	/*
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-action-card/_action-card.scss
  • Filesystem Path: components/snet/molecules/action-card/_action-card.scss
  • Size: 1.5 KB