Employee Card: Row Separator Horizontal

No notes defined.

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

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

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

    </div>
    <div class="sds-employeeCard__text">
        <div class="h4">Besoin d&#39;aide ?</div>
        <button type="button" data-toggle="modal" data-target="#" class="text-left text-underline sds-textHelper sds-metaColor">Contactez votre conseiller</button>
    </div>
</div>
<div class="{{ namespace }}employeeCard {{ namespace }}box -insetLg -boxSunken{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image-extra-large" %}
	<div class="{{ namespace }}employeeCard__text">
		<div class="h4">{{ title }}</div>
		<button type="button" data-toggle="modal" data-target="#{{ modalID }}" class="text-left text-underline {{ namespace }}textHelper {{ namespace }}metaColor">{{ text }}</button>
	</div>
</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