Employee Card: Default

No notes defined.

<div class="sds-employeeCard sds-box -insetLg -boxSunken">

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

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

    </div>
    <div class="sds-employeeCard__text sds-stackXs">
        <div class="h4">HENNES Philippe</div>
        <p>Corporate Banking</p>
    </div>

    <div class="sds-btnGroup -large -hasVerticalSpacing -wrap">

        <a href="" class="sds-btnLabelOutside -truncated">

            <span class="sds-btn -iconBtn -btnSecondary sds-btnLabelOutside__icon stretched-link" aria-labelledby="btn-label-secondary-1-employee-card">

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

            </span>

            <span class="sds-btnLabelOutside__text" id="btn-label-secondary-1-employee-card">+352 4015-4119</span>
        </a>

        <a href="" class="sds-btnLabelOutside -truncated">

            <span class="sds-btn -iconBtn -btnSecondary sds-btnLabelOutside__icon stretched-link" aria-labelledby="btn-label-secondary-2-employee-card">

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

            </span>

            <span class="sds-btnLabelOutside__text" id="btn-label-secondary-2-employee-card">support.cba@spuerkeess.lu</span>
        </a>
    </div>

</div>
<div class="{{ namespace }}employeeCard{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image-extra-large" %}
	<div class="{{ namespace }}employeeCard__text {{ namespace }}stackXs">
		<div class="h4">{{ title }}</div>
		<p>{{ text }}</p>
	</div>
	{% if contact %}
		<div class="{{ namespace }}btnGroup -large -hasVerticalSpacing -wrap">
			{% render "@btn-label-outside--secondary",{
				id: "btn-label-secondary-1-employee-card",
				classes: ["-truncated"],
				icon: "icon-phone",
				text: "+352 4015-4119"
			},true %}
			{% render "@btn-label-outside--secondary",{
				id: "btn-label-secondary-2-employee-card",
				classes: ["-truncated"],
				icon: "icon-message",
				text: "support.cba@spuerkeess.lu"
			},true %}
		</div>
	{% endif %}
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}employeeCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	display: flex;
    	flex-direction: column;
    	@include spacer-component-stack("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 */
    
    	// employeeCard__childElement
    	&__text {
    
    		// follows same logic as parent
    
    		display: flex;
    		flex-direction: column;
    		justify-content: center;
    		align-items: flex-start;
    
    		&::after {
    
    			content: "";
    			@extend %brandLine;
    			margin-top: map-deep-get($token-spacer-stack-max-map, "sm");
    			margin-bottom: map-deep-get($token-spacer-stack-max-map, "sm");
    
    			@include media-breakpoint-up("lg") {
    
    				margin-top: map-deep-get($token-spacer-stack-max-map, "md");
    
    			}
    		}
    
    	}
    
    
    	/* modifiers */
    
    	// employeeCard -row
    	&.-row {
    
    		// follows same logic as base element
    
    		display: flex;
    		flex-direction: row;
    		align-items: center;
    		@include unset-spacer-component-stack();
    		gap: map-deep-get($token-spacer-stack-max-map, "md");
    
    		#{$self}__text {
    
    			&::after {
    
    				content: none;
    
    			}
    
    		}
    
    	}
    
    	&.-separatorHorizontal {
    
    		background-color: transparent;
    		padding: 0;
    		flex-wrap: nowrap;
    
    		&::before {
    
    			content: "";
    			@extend %brandLine;
    			margin-right: map-deep-get($token-spacer-inline-map, "sm");
    
    		}
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/spk-employee-card/_employee-card.scss
  • Filesystem Path: components/spuerkeess-site/molecules/employee-card/_employee-card.scss
  • Size: 1.9 KB