Contact Block: Action Card

No notes defined.

<div class="sds-contactBlock">
    <div class="row row-sm align-items-center">
        <div class="col-md-6">
            <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>

                        <p>Conseiller</p>

                    </div>
                </div>

            </div>
        </div>
        <div class="col-md-6">
            <div class="sds-actionCard -action sds-sectionForm__actionCard">
                <div class="sds-actionCard__inner">

                    <span class="sds-iconCircle -info100" aria-hidden="true">

                        <span class="sds-icon sds-icon-pin"></span>

                    </span>

                    <div class="sds-actionCard__text sds-stackXxs">
                        <div class="sds-actionCard__title sds-textBodyLg">Bascharage</div>

                        <p>Avenue de Luxembourg, 135<br>4940, Bascharage</p>

                    </div>
                </div>

                <button type="button" class="sds-btn -iconBtn -btnSecondary sds-actionCard__action">

                    <span class="sds-icon sds-icon-edit"></span>

                </button>

            </div>
        </div>
    </div>
</div>
<div class="{{ namespace }}contactBlock{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
    <div class="row row-sm align-items-center">
        <div class="col-md-6">
            {% render '@snet-action-card--description' %}
        </div>
        <div class="col-md-6">
            {% render '@snet-action-card--icon-circle-action',{
                classes: [ namespace + "sectionForm__actionCard"]
            }, true %}
        </div>
    </div>
</div>
  • Content:
    .#{$namespace}contactBlock {
    
    	/* 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 */
    	background-color: map-deep-get($token-color-brand-map, "secondary", "06");
    	@include spacer-component-inset("lg");
    	border-radius: map-deep-get($token-radius-map, "16");
    
    	/* 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 */
    
    	// contactBlock__childElement
    	&__heading {
    
    		// follows same logic as parent
    
    		padding-bottom: map-deep-get($token-spacer-inset-map, "lg");
    		margin-bottom: map-deep-get($token-spacer-inset-map, "lg");
    		border-bottom: $border-width solid $border-color;
    
    	}
    
    	&__body {
    
    		padding-top: map-deep-get($token-spacer-inset-map, "sm");
    		padding-bottom: map-deep-get($token-spacer-inset-map, "sm");
    
    	}
    
    	&__footer {
    
    		// follows same logic as parent
    
    		padding-top: map-deep-get($token-spacer-inset-map, "lg");
    		margin-top: map-deep-get($token-spacer-inset-map, "lg");
    		border-top: $border-width solid $border-color;
    		text-align: center;
    
    	}
    
    	&__footerLink {
    
    		color: map-deep-get($token-color-brand-map, "primary", "100");
    
    	}
    
    
    	/* modifiers */
    
    	// contactBlock -altStyle
    	&.-recap {
    
    		border-radius: 0;
    		border-top: $border-width solid $border-color;
    		background-color: map-deep-get($token-color-grayscale-map, "0");
    		padding: map-deep-get($token-spacer-inset-map, "lg") 0 0 0;
    
    		#{$self}__heading {
    
    			padding-bottom: 0;
    			border-bottom: none;
    
    		}
    
    		#{$self}__body {
    
    			padding: 0;
    
    		}
    
    		#{$self}__footer {
    
    			padding-top: 0;
    			border-top: none;
    
    		}
    
    		#{$self}__actionCard {
    
    			padding: map-deep-get($token-spacer-inset-map, "md");
    			border-radius: map-deep-get($token-radius-map, "16");
    			border: $border-width solid $border-color;
    
    		}
    
    	}
    
    	/* random parent element */
    	/*
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-contact-block/_contact-block.scss
  • Filesystem Path: components/snet/organisms/contact-block/_contact-block.scss
  • Size: 2.3 KB